DBApp problem connection

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
simor
Posts: 11
Joined: Wed May 22, 2013 1:16 pm
Organization: icosnet

DBApp problem connection

Post by simor » Wed Dec 11, 2013 11:54 am

i have this error every time i want to make the collection of data between the reader and the data base


i get this exception

Code: Select all

[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
log4j:WARN No appenders could be found for logger (org.apache.activemq.util.osgi.Activator).
log4j:WARN Please initialize the log4j system properly.
[org.eclipse.equinox.weaving.caching.j9] warning cannot start J9 caching service
osgi> [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ weaving service ...
[org.eclipse.equinox.weaving.caching] info starting standard caching service ...
START RIFIDI INITIALIZTION BUNDLE
ALL RIFIDI CONFIGURATION PATHS RELATIVE TO : C:\Users\Administrator\workspace/Rifidi-SDK/RifidiHome
Cannot find log properties file at file:/C:\Users\Administrator\workspace/Rifidi-SDK/RifidiHome\config/logging.properties Using default log4j properties
16:46:08,148  INFO org.apache.catalina.startup.ClusterRuleSetFactory:68 - Unable to find a cluster rule set in the classpath. Will load the default rule set.
16:46:08,171  INFO org.apache.catalina.startup.ClusterRuleSetFactory:68 - Unable to find a cluster rule set in the classpath. Will load the default rule set.
16:46:08,570  INFO org.apache.coyote.http11.Http11Protocol:182 - Initializing Coyote HTTP/1.1 on http-8080
16:46:08,571  INFO org.apache.catalina.startup.Catalina:538 - Initialization processed in 485 ms
16:46:08,572  INFO org.apache.catalina.core.StandardService:508 - Starting service Catalina
16:46:08,573  INFO org.apache.catalina.core.StandardEngine:432 - Starting Servlet Engine: Apache Tomcat/6.0.18
16:46:08,681  INFO org.apache.coyote.http11.Http11Protocol:209 - Starting Coyote HTTP/1.1 on http-8080
16:46:10,754  INFO org.rifidi.edge.services.EsperManagementServiceImpl:44 - EsperManagementServiceImpl created.
16:46:10,871  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: ReadZones
16:46:10,885  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: SensorStatus
16:46:10,893  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: UniqueTagInterval
16:46:10,902  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: StableSet
16:46:10,913  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: LimitStableSet
16:46:10,922  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: UniqueTagBatchInterval
16:46:11,071  INFO com.espertech.esper.core.service.EPServiceProviderImpl:393 - Initializing engine URI 'default' version 4.7.0
16:46:11,071  INFO com.espertech.esper.core.service.EPServiceProviderImpl:393 - Initializing engine URI 'default' version 4.7.0
16:46:11,958 ERROR org.rifidi.edge.configuration.ConfigurationServiceImpl:122 - javax.xml.bind.UnmarshalException
 - with linked exception:
[java.io.FileNotFoundException: C:\Users\Administrator\workspace\Rifidi-SDK\RifidiHome\config\rifidi.xml (The system cannot find the file specified)]
16:46:13,261  INFO org.springframework.remoting.rmi.RmiServiceExporter:393 - Looking for RMI registry at port '1101'
16:46:13,537  WARN org.springframework.osgi.config.internal.adapter.CustomListenerAdapterUtils:161 - Custom method [public void org.rifidi.edge.api.service.appmanager.AppManagerImpl.bindApp(org.rifidi.edge.api.RifidiApp,java.util.Dictionary)] threw exception when passing service type [com.sun.proxy.$Proxy4]
com.espertech.esper.client.EPStatementException: Named window 'tags_1' has not been declared [on pattern [every tag1=tags_1 ->(timer:interval(0.01 sec)and not tags_1(tag.ID=tag1.tag.ID, readerID=tag1.readerID, antennaID=tag1.antennaID))]delete from tags_1 where tag.ID = tag1.tag.ID AND readerID=tag1.readerID AND antennaID=tag1.antennaID]
	at com.espertech.esper.core.service.StatementContextFactoryDefault.makeContext(StatementContextFactoryDefault.java:91)
	at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createStopped(StatementLifecycleSvcImpl.java:247)
	at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createStoppedAssignName(StatementLifecycleSvcImpl.java:181)
	at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createAndStart(StatementLifecycleSvcImpl.java:135)
	at com.espertech.esper.core.service.EPAdministratorImpl.createEPLStmt(EPAdministratorImpl.java:118)
	at com.espertech.esper.core.service.EPAdministratorImpl.createEPL(EPAdministratorImpl.java:67)
	at org.rifidi.edge.api.AbstractRifidiApp.addStatement(AbstractRifidiApp.java:306)
	at org.rifidi.edge.api.service.RifidiAppService.subscribe(RifidiAppService.java:79)
	at org.rifidi.edge.api.service.tagmonitor.ReadZoneMonitoringServiceImpl.subscribe(ReadZoneMonitoringServiceImpl.java:72)
	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:319)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at com.sun.proxy.$Proxy6.subscribe(Unknown Source)
	at org.rifidi.app.db.DBApp.initialize(DBApp.java:75)
	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:319)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at com.sun.proxy.$Proxy4.initialize(Unknown Source)
	at org.rifidi.edge.api.service.appmanager.AppManagerImpl.startApp(AppManagerImpl.java:142)
	at org.rifidi.edge.api.service.appmanager.AppManagerImpl.addApp(AppManagerImpl.java:111)
	at org.rifidi.edge.api.service.appmanager.AppManagerImpl.bindApp(AppManagerImpl.java:165)
	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.osgi.util.internal.ReflectionUtils.invokeMethod(ReflectionUtils.java:108)
	at org.springframework.osgi.config.internal.adapter.CustomListenerAdapterUtils.invokeCustomMethods(CustomListenerAdapterUtils.java:155)
	at org.springframework.osgi.config.internal.adapter.OsgiServiceLifecycleListenerAdapter.bind(OsgiServiceLifecycleListenerAdapter.java:201)
	at org.springframework.osgi.service.importer.support.internal.util.OsgiServiceBindingUtils.callListenersBind(OsgiServiceBindingUtils.java:50)
	at org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection$Listener.serviceChanged(OsgiServiceCollection.java:107)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310)
	at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279)
	at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95)
	at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40)
	at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:320)
	at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:261)
	at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:254)
	at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:187)
	at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
	at java.lang.Thread.run(Unknown Source)
16:46:14,258  INFO org.springframework.remoting.rmi.RmiServiceExporter:404 - Could not detect RMI registry - creating new one
16:46:14,271  INFO org.springframework.remoting.rmi.RmiServiceExporter:276 - Binding service 'SensorManagerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[127.0.0.1:1101](local),objID:[0:0:0, 0]]]]
16:46:14,284  INFO org.springframework.remoting.rmi.RmiServiceExporter:393 - Looking for RMI registry at port '1101'
16:46:14,302  INFO org.springframework.remoting.rmi.RmiServiceExporter:276 - Binding service 'CommandManagerService' to RMI registry: RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[10.10.1.21:1101](remote),objID:[0:0:0, 0]]]]
16:46:14,343  INFO org.springframework.remoting.rmi.RmiServiceExporter:393 - Looking for RMI registry at port '1101'
16:46:14,348  INFO org.springframework.remoting.rmi.RmiServiceExporter:276 - Binding service 'EdgeServerManagerService' to RMI registry: RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[10.10.1.21:1101](remote),objID:[0:0:0, 0]]]]
16:46:14,385  INFO org.apache.activemq.xbean.XBeanBrokerFactory$1:500 - Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@37d784: startup date [Wed Dec 11 16:46:14 WAT 2013]; root of context hierarchy
16:46:14,393  INFO org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader:315 - Loading XML bean definitions from file [C:\Users\Administrator\workspace\Rifidi-SDK\RifidiHome\config\rifidi-amq-external.xml]
16:46:14,463  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: Tags
16:46:14,545  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: TagGenerator
16:46:14,560  INFO org.rifidi.edge.tools.diagnostics.TagGeneratorApp:70 - Loaded tag file with ID parent
16:46:14,564  INFO org.rifidi.edge.tools.diagnostics.TagGeneratorApp:70 - Loaded tag file with ID children
16:46:14,568  INFO org.rifidi.edge.tools.diagnostics.TagGeneratorApp:77 - Loaded Exposure properties with ID 2
16:46:14,570  INFO org.rifidi.edge.tools.diagnostics.TagGeneratorApp:77 - Loaded Exposure properties with ID 1
16:46:14,854  INFO org.apache.activemq.broker.jmx.ManagementContext:262 - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
16:46:14,859  INFO org.apache.activemq.broker.BrokerService:262 - Using Persistence Adapter: MemoryPersistenceAdapter
16:46:14,862  INFO org.apache.activemq.broker.BrokerService:262 - ActiveMQ 5.5.0 JMS Message Broker (externalBroker) is starting
16:46:14,863  INFO org.apache.activemq.broker.BrokerService:262 - For help or more information please see: http://activemq.apache.org/
16:46:14,969  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: ReadZones
16:46:14,992  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: Tags
16:46:15,075  INFO org.rifidi.edge.api.AbstractRifidiApp:231 - Starting App: SensorStatus
16:46:15,165  INFO org.apache.activemq.transport.TransportServerThreadSupport:262 - Listening for connections at: tcp://127.0.0.1:1100
16:46:15,166  INFO org.apache.activemq.broker.TransportConnector:262 - Connector tcp://127.0.0.1:1100 Started
16:46:15,171  INFO org.apache.activemq.broker.BrokerService:262 - ActiveMQ JMS Message Broker (externalBroker, ID:SERVBIZ-63847-1386776774893-0:1) started
16:46:15,358  INFO org.rifidi.edge.services.ProvisioningServiceImpl:151 - Path to applications foler: C:\Users\Administrator\workspace/Rifidi-SDK/RifidiHome/applications
16:46:15,460  INFO org.apache.activemq.broker.TransportConnector:262 - Connector vm://externalBroker Started

with my best regards

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests