Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Strange Behavior with RTC Sample Code

I am seeing similar results.  That is, almost random responses when using the RTCFormSample.  I am unable to determine yet if the issue is on the RTC side or on the code sample side.  Unfortunately, I have been pulled into more pressing issues and won't be able to get back to it this week.

Cheers,
Bryan

bryan miller | integration architect, integration engineering | rational software | ibm software group | +1.719.246.1081





From:        Daniel Chirillo/New York/IBM@IBMUS
To:        "Lyo project developer discussions" <lyo-dev@xxxxxxxxxxx>,
Date:        01/21/2014 07:56 AM
Subject:        [lyo-dev] Strange Behavior with RTC Sample Code
Sent by:        lyo-dev-bounces@xxxxxxxxxxx




I'm running the client sample code in org.eclipse.lyo.client.oslc.samples against CLM 4.0.5 and am struggling with the following:

1.  RTCFormSample is sometimes (more 'usually' than 'sometimes', actually) unable to create a change request (Scenario C).  What I've seen so far is that when it can't, the server (so far) returns a 403 (forbidden) or a 500 (Internal Server Error).   It's really very odd.  I'll run the exact same code 10 times in a row with various results.  


When a 500 is returned, there is an exception in ccm.log:


2014-01-21 09:31:42,568 [http-bio-9443-exec-39 @@ 09:31 dan /ccm/oslc/contexts/_ZhCkgFC7EeODy79VBasTnw/drafts/workitems] ERROR com.ibm.team.workitem.service   - Failed to serve the request - 'oslc/contexts/_ZhCkgFC7EeODy79VBasTnw/drafts/workitems'. Reason - 'null argument:'.
org.eclipse.core.runtime.AssertionFailedException: null argument:

       at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)

       at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)

       at com.ibm.team.workitem.common.internal.workflow.StateGroupRegistry.getStateGroup(StateGroupRegistry.java:29)

       at com.ibm.team.workitem.common.internal.workflow.WorkflowInfo.getStateGroup(WorkflowInfo.java:241)

       at com.ibm.team.workitem.service.internal.oslc.util.OSLCPredicateSupport$OslcPredicateEvaluator.<init>(OSLCPredicateSupport.java:166)

       at com.ibm.team.workitem.service.internal.oslc.util.OSLCPredicateSupport$OslcPredicateEvaluator.<init>(OSLCPredicateSupport.java:163)

       at com.ibm.team.workitem.service.internal.oslc.util.OSLCPredicateSupport.getPredicateEvaluator(OSLCPredicateSupport.java:66)

       at com.ibm.team.workitem.service.internal.oslc.resources.WorkItemResource.getPredicateEvaluator(WorkItemResource.java:746)

       at com.ibm.team.workitem.service.internal.oslc.resources.WorkItemResource.getChildResource(WorkItemResource.java:266)

       at com.ibm.team.workitem.service.internal.oslc.representations.RDFResourceRepresentation.renderComposite(RDFResourceRepresentation.java:314)

       at com.ibm.team.workitem.service.internal.oslc.representations.RDFResourceRepresentation.renderComposite(RDFResourceRepresentation.java:285)

       at com.ibm.team.workitem.service.internal.oslc.representations.RDFResourceRepresentation.render(RDFResourceRepresentation.java:111)

       at com.ibm.team.workitem.service.internal.oslc.representations.RDFResourceRepresentation.render(RDFResourceRepresentation.java:101)

       at com.ibm.team.workitem.service.internal.oslc.RequestHandler.handlePOST(RequestHandler.java:212)

       at com.ibm.team.workitem.service.internal.oslc.OSLCService.perform_POST(OSLCService.java:56)

       at com.ibm.team.repository.service.TeamRawService.service(TeamRawService.java:92)

       at sun.reflect.GeneratedMethodAccessor484.invoke(Unknown Source)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       at java.lang.reflect.Method.invoke(Method.java:597)

       at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)

       at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)

       at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)

       at com.sun.proxy.$Proxy1099.service(Unknown Source)

       at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService(AbstractTeamServerServlet.java:909)

       at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2349)

       at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:2153)

       at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1963)

       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

       at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

       at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

       at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)

       at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)

       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

       at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)

       at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:74)

       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

       at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:165)

       at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:198)

       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)

       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

       at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:336)

       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)

       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)

       at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)

       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

       at java.lang.Thread.run(Thread.java:695)


2.  Even when RTCFormSample can create the source, getEntity() (which it calls further down in the code...for the purpose of doing a partial update) always throws an exception (java.lang.reflect.UndeclaredThrowableException with no message) and the call to printStackTrace() on that exception throws an OutOfMemoryError.


3.  In fact (continuation of #2), the only way I've been able to get a change request entity (in my own code) has been to execute a query (that returns a result set of 1) and then loop through the result set -- OslcQueryResult.getMembers() does properly/successfully return entities.




Regards,


Daniel Chirillo

IBM Software Services for Rational

1-720-395-0914  (voice & fax)

chirillo@xxxxxxxxxx
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/lyo-dev


Back to the top