Community
Participate
Working Groups
The following exception occurs when trying to expand the statistical data manager node. [ERROR] Exception occurred while trying to invoke service method getDatasourceKe ysets java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav a:165) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic (RPCMessageReceiver.java:98) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines sLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe ssageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 20) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NoClassDefFoundError at org.eclipse.cosmos.dc.internal.stat.datamgr.StatisticalDataManager.ge tConnection(StatisticalDataManager.java:113) at org.eclipse.cosmos.dc.internal.stat.datamgr.StatisticalDataManager.ge tSources(StatisticalDataManager.java:135) at org.eclipse.cosmos.dc.internal.stat.datamgr.StatisticalDataManager.ge tDatasourceKeysets(StatisticalDataManager.java:64) ... 27 more Error retrieving data source keysets org.eclipse.cosmos.common.provisional.exceptions.CosmosException: org.apache.axi s2.AxisFault: Exception occurred while trying to invoke service method getDataso urceKeysets at org.eclipse.cosmos.dc.internal.stat.datamgr.client.StatisticalDataMan agerClient.getDatasourceKeyset(StatisticalDataManagerClient.java:58) at org.eclipse.cosmos.examples.dr.drs.service.outputter.StatDataSourceOu tputter.render(StatDataSourceOutputter.java:86) at org.eclipse.cosmos.internal.dr.drs.service.handler.common.OutputterDe legator.delegateRequest(OutputterDelegator.java:70) at org.eclipse.cosmos.internal.dr.drs.service.handler.common.OutputterDe legator.doPost(OutputterDelegator.java:53) at org.eclipse.cosmos.internal.dr.drs.service.handler.common.URLDelegato r.doPost(URLDelegator.java:90) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method getDatasourceKeysets at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j ava:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse( OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO peration.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out InAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java: 163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java: 528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java: 508) at org.eclipse.cosmos.dc.internal.stat.datamgr.client.StatisticalDataMan agerClient.getDatasourceKeyset(StatisticalDataManagerClient.java:56) ... 20 more
I used the weekly candidate build http://www.eclipse.org/cosmos/downloads/?buildId=COSMOS-1.0.0-200806031210
This is a build problem webapps\axis2\WEB-INF\services\StatDataManager is missing the ‘org’ directory tree containing the statistical datamanager class files and messages.properties file it should look like this C:\build\tomcat\webapps\axis2\WEB-INF\services\StatDataManager>ls META-INF lib org C:\build\tomcat\webapps\axis2\WEB-INF\services\StatDataManager>ls –R org org: eclipse org/eclipse: cosmos org/eclipse/cosmos: dc org/eclipse/cosmos/dc: internal org/eclipse/cosmos/dc/internal: stat org/eclipse/cosmos/dc/internal/stat: datamgr org/eclipse/cosmos/dc/internal/stat/datamgr: Messages.class messages.properties StatisticalDataManager.class
If you unjar "cosmos-demo\services\StatDataManager\lib\stat-ws.jar" then you can find following java classes in it org.eclipse.cosmos.dc.internal.stat.datamgr.Messages org.eclipse.cosmos.dc.internal.stat.datamgr.StatisticalDataManager I have following questions. (1) Should the classes provided in jar or in folder ? (2) The only missing file in "stat-ws.jar" is "messages.properties" and thats i think build should bundle in this jar. Any suggestions ?
Created attachment 103468 [details] Fix Please use this file for build.
messages.properties files are very important are should definitely be part of the jar. I also noticed the the messages.properties file is missing from the logging datamanager as well. - John
I have seen that this issue is fixed in COSMOS-1.0.0-200806032028 - John
Fixed in COSMOS-1.0.0-200806032028
Verified bug with build COSMOS-1.0.0-200806201443
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
This enhancement/defect was mistaken closed as part of the TPTP 4.6 Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes) since the originator of this enhancement/defect has an inactive Bugzilla account. If this enhancement/defect is still unresolved and reproducible, please re-open.