dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21251
Về: [Dhis2-users] what's wrong with the latest trunk version of dhis2?
Hi,
With the latest trunk version, i have the problem with sms config
as well while i'm trying to setup a modem gateway. However, the
error is different from yours:
* INFO 2013-03-06 13:21:06,266 GTW: Motorola Gateway: Opening:
COM14 @9600 (Ser
ialModemDriver.java [Thread-22])
Exception in thread "Thread-22"
java.lang.ExceptionInInitializerError
at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java
:69)
at
org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at
org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
Caused by: java.lang.RuntimeException: CommPortIdentifier class
not found
at
org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java
:76)
... 4 more
Still trying to debug
________________________________
Ngo Thanh Long
HISP Vietnam
________________________________
Từ: Jason Pickering <jason.p.pickering@xxxxxxxxx>
Tới: Lars Helge Øverland <larshelge@xxxxxxxxx>
Cc: DHIS 2 developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Đã gửi 10:54 Thứ Tư, 6 tháng 3 2013
Chủ đề: Re: [Dhis2-devs] [Dhis2-users] what's wrong with the latest trunk version of dhis2?
I experienced the exact same thing as well here, upgrading from a 2.9 database to trunk.
Deleting the SMS_CONFIG "worked" but now my SMS config is missing, and has would need to be reconfigured. I suppose this is a minor complication, but should be included in the release notes unless another solution can be found.
Regards,
Jason
On Fri, Feb 22, 2013 at 11:00 AM, Lars Helge Øverland <larshelge@xxxxxxxxx> wrote:
>Hi,
>
>not sure but you might try running the following SQL command in your database:
>
>
>delete from systemsetting where name='SMS_CONFIG';
>
>
>Then restart DHIS.
>
>
>Lars
>
>
>
>On Fri, Feb 22, 2013 at 2:38 AM, easy <lin_xd@xxxxxxx> wrote:
>
>----info in startup :--------------
>>二月 22, 2013 9:09:23 上午 org.apache.catalina.loader.WebappClassLoader validateJarFile
>>INFO: validateJarFile(D:\apache-tomcat-7.0.37\webapps\dhis\WEB-INF\lib\geronimo-servlet_2.5_
>>spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: java
>>x/servlet/Servlet.class
>>
>>-------------------still error after install a new tomcat 7.37-------
>>
>> 0 0 ? * 1-6 (SpringScheduler.java [localhost-startStop-1])
>>* INFO 2013-02-22 09:10:08,710 Camel context stopped (DHIS2LifecycleStrategy.java [localhos
>>t-startStop-1])
>>* ERROR 2013-02-22 09:10:08,760 Context initialization failed (ContextLoader.java [localhost
>>-startStop-1])
>>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.
>>hisp.dhis.sms.outbound.SmsConfigurationManager': Invocation of init method failed; nested ex
>>ception is org.hibernate.type.SerializationException: could not deserialize
>> at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcess
>>or.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.appl
>>yBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.init
>>ializeBean(AbstractAutowireCapableBeanFactory.java:1479)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
>>eateBean(AbstractAutowireCapableBeanFactory.java:524)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
>>teBean(AbstractAutowireCapableBeanFactory.java:461)
>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
>>tBeanFactory.java:295)
>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
>>on(DefaultSingletonBeanRegistry.java:223)
>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
>>eanFactory.java:292)
>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
>>nFactory.java:194)
>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantia
>>teSingletons(DefaultListableBeanFactory.java:607)
>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryI
>>nitialization(AbstractApplicationContext.java:932)
>> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractAp
>>plicationContext.java:479)
>> at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationCo
>>ntext(ContextLoader.java:383)
>> at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLo
>>ader.java:283)
>> at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextL
>>oaderListener.java:112)
>> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
>> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
>> at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>>Caused by: org.hibernate.type.SerializationException: could not deserialize
>> at org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper
>>.java:250)
>> at org.hibernate.internal.util.SerializationHelper.deserialize(SerializationHelper.j
>>ava:306)
>> at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.fromBytes(Serializa
>>bleTypeDescriptor.java:140)
>> at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTy
>>peDescriptor.java:121)
>> at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTy
>>peDescriptor.java:44)
>> at org.hibernate.type.descriptor.sql.VarbinaryTypeDescriptor$2.doExtract(VarbinaryTy
>>peDescriptor.java:67)
>> at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:65)
>> at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicTyp
>>e.java:261)
>> at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicTyp
>>e.java:257)
>> at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicTyp
>>e.java:247)
>> at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.ja
>>va:332)
>> at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPers
>>ister.java:2873)
>> at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1574)
>> at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1506)
>> at org.hibernate.loader.Loader.getRow(Loader.java:1406)
>> at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:664)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:874)
>> at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:29
>>3)
>> at org.hibernate.loader.Loader.doList(Loader.java:2411)
>> at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2256)
>> at org.hibernate.loader.Loader.list(Loader.java:2219)
>> at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:122)
>> at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1621)
>> at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374)
>> at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:396)
>> at org.hisp.dhis.hibernate.HibernateGenericStore.getObject(HibernateGenericStore.jav
>>a:191)
>> at org.hisp.dhis.hibernate.HibernateGenericStore.getByName(HibernateGenericStore.jav
>>a:311)
>> at org.hisp.dhis.setting.DefaultSystemSettingManager.getSystemSetting(DefaultSystemS
>>ettingManager.java:92)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.
>>java:317)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Refl
>>ectiveMethodInvocation.java:183)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMe
>>thodInvocation.java:150)
>> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Transac
>>tionInterceptor.java:110)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMe
>>thodInvocation.java:172)
>> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.ja
>>va:204)
>> at $Proxy92.getSystemSetting(Unknown Source)
>> at org.hisp.dhis.sms.SmsConfigurationManagerImpl.getSmsConfiguration(SmsConfiguratio
>>nManagerImpl.java:105)
>> at org.hisp.dhis.sms.SmsConfigurationManagerImpl.initializeSmsConfigurables(SmsConfi
>>gurationManagerImpl.java:68)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcess
>>or$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:344)
>> at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcess
>>or$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:295)
>> at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcess
>>or.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
>> ... 28 more
>>Caused by: java.io.InvalidClassException: org.hisp.dhis.sms.config.SmsGatewayConfig; local c
>>lass incompatible: stream classdesc serialVersionUID = -6280874890119231425, local class ser
>>ialVersionUID = 7544035146104281681
>> at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
>> at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>> at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>> at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>> at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>> at java.io.ObjectInputStream.readObject0(Unknown Source)
>> at java.io.ObjectInputStream.readObject(Unknown Source)
>> at java.util.ArrayList.readObject(Unknown Source)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>> at java.io.ObjectInputStream.readSerialData(Unknown Source)
>> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>> at java.io.ObjectInputStream.readObject0(Unknown Source)
>> at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
>> at java.io.ObjectInputStream.readSerialData(Unknown Source)
>> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>> at java.io.ObjectInputStream.readObject0(Unknown Source)
>> at java.io.ObjectInputStream.readObject(Unknown Source)
>> at org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper
>>.java:244)
>> ... 75 more
>>二月 22, 2013 9:10:08 上午 org.apache.catalina.core.StandardContext startInternal
>>SEVERE: Error listenerStart
>>二月 22, 2013 9:10:08 上午 org.apache.catalina.core.StandardContext startInternal
>>SEVERE: Context [/dhis] startup failed due to previous errors
>>* INFO 2013-02-22 09:10:08,810 De-registering jdbc driver: sun.jdbc.odbc.JdbcOdbcDriver@22f
>>79598 (StartupListener.java [localhost-startStop-1])
>>* INFO 2013-02-22 09:10:08,810 De-registering jdbc driver: org.postgresql.Driver@6f6342a1 (
>>StartupListener.java [localhost-startStop-1])
>>二月 22, 2013 9:10:08 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapF
>>orLeaks
>>SEVERE: The web application [/dhis] created a ThreadLocal with key of type [com.sun.xml.bind
>>.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@16ae1d8]) and a value of type
>> [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.adapters.CollapsedStringAd
>>apter=java.lang.ref.WeakReference@10112ca2, class org.apache.camel.model.PackageScanDefiniti
>>on=java.lang.ref.WeakReference@578947eb, class org.apache.camel.spring.CamelContextFactoryBe
>>an=java.lang.ref.WeakReference@75d0c232, class org.apache.camel.spring.CamelProducerTemplate
>>FactoryBean=java.lang.ref.WeakReference@5c7d9d0b, class java.util.ArrayList=java.lang.ref.We
>>akReference@3ad16c9d}]) but failed to remove it when the web application was stopped. Thread
>>s are going to be renewed over time to try and avoid a probable memory leak.
>>二月 22, 2013 9:10:08 上午 org.apache.catalina.startup.HostConfig deployDirectory
>>INFO: Deploying web application directory D:\apache-tomcat-7.0.37\webapps\docs
>>二月 22, 2013 9:10:08 上午 org.apache.catalina.startup.HostConfig deployDirectory
>>
>>
>>_______________________________________________
>>Mailing list: https://launchpad.net/~dhis2-devs
>>Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>Unsubscribe : https://launchpad.net/~dhis2-devs
>>More help : https://help.launchpad.net/ListHelp
>>
>>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~dhis2-users
>Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~dhis2-users
>More help : https://help.launchpad.net/ListHelp
>
>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
References