on 09-25-2008 6:42 PM
User who is in check out list of the workflow is not able to see hierarchial data (parent-child relationship of measures of the product)
and this user needs to be in check out list to update the results back into database
I am trying to use another user session to fetch hierarchy information, but this didnot work out.
RetrieveRelationshipsCommand productHeirarchyRelationship = new RetrieveRelationshipsCommand(ConnectionAttributes.conaccessor);
productHeirarchyRelationship.setSession(ConnectionAttributes.NewSessionID);
productHeirarchyRelationship.setAnchorRecord(rec);
productHeirarchyRelationship.setAnchorRecordId(rec.getId());
productHeirarchyRelationship.setRelationshipId(RepositorySchemaForProduct.productRepositorySchema.getRelationshipId("Parent2"));
try {
productHeirarchyRelationship.execute();
} catch (CommandException e4) {
e4.printStackTrace();
}
RelationshipGroup productMembersGroup = productHeirarchyRelationship.getRelationshipGroup();
RecordId[] childIds = productMembersGroup.getMemberRecordIds();
Getting a NullPointer Exception at this point
Application error occurred during request processing.
Details: java.rmi.RemoteException:
com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception
in method com.kraft.auom.RelationshipToTreeObjectImpl0_0.getRecUpdPartial(java.util.List,java.util.List).
at com.kraft.auom.RelationshipToTreeObjectImpl0_0.getRecUpdPartial(RelationshipToTreeObjectImpl0_0.java:416)
at com.kraft.auom.RelationshipToTree_Stub.getRecUpdPartial(RelationshipToTree_Stub.java:415)
at com.kraft.AuomCalculation.doGet(AuomCalculation.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: java.lang.NullPointerException
at com.kraft.lib.RelationshipChildren.getChildren(RelationshipChildren.java:53)
at com.kraft.auom.RelationshipToTreeBean.getRecUpdPartial(RelationshipToTreeBean.java:288)
at com.kraft.auom.RelationshipToTreeObjectImpl0_0.getRecUpdPartial(RelationshipToTreeObjectImpl0_0.java:407)
... 20 more
; nested exception is:
java.lang.NullPointerException
I have resoleved this exception and able to get two connections and two seesions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.