This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 235440 - Exception when trying to expand stat data manager node.
Summary: Exception when trying to expand stat data manager node.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 blocker (vote)
Target Milestone: ---   Edit
Assignee: Saurabh Dravid CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-03 15:09 EDT by Sheldon Lee-Loy CLA
Modified: 2012-01-03 13:54 EST (History)
3 users (show)

See Also:


Attachments
Fix (24.42 KB, text/xml)
2008-06-03 19:46 EDT, Saurabh Dravid CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Lee-Loy CLA 2008-06-03 15:09:22 EDT
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
Comment 1 Sheldon Lee-Loy CLA 2008-06-03 15:10:26 EDT
I used the weekly candidate build http://www.eclipse.org/cosmos/downloads/?buildId=COSMOS-1.0.0-200806031210
Comment 2 John Todd CLA 2008-06-03 15:13:06 EDT
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

 


 
Comment 3 Saurabh Dravid CLA 2008-06-03 15:52:18 EDT
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 ?
Comment 4 Saurabh Dravid CLA 2008-06-03 19:46:41 EDT
Created attachment 103468 [details]
Fix

Please use this file for build.
Comment 5 John Todd CLA 2008-06-04 08:49:41 EDT
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
Comment 6 John Todd CLA 2008-06-04 10:38:42 EDT
I have seen that this issue is fixed in COSMOS-1.0.0-200806032028

- John
Comment 7 Saurabh Dravid CLA 2008-06-06 10:33:51 EDT
Fixed in COSMOS-1.0.0-200806032028
Comment 8 Sheldon Lee-Loy CLA 2008-06-20 15:45:24 EDT
Verified bug with build COSMOS-1.0.0-200806201443
Comment 9 Paul Slauenwhite CLA 2009-06-30 09:31:46 EDT
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.
Comment 10 Paul Slauenwhite CLA 2009-06-30 09:55:09 EDT
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.