Hello List,
I'm trying a Grid Service called from a OGCE Portlet.
When the following line is executed:
------------------------------------------------------
endpointString= ObjectSerializer.toString
(instanceEPR,MYSERVICEQNames.RESOURCE_REFERENCE);
------------------------------------------------------
get an "Serialization Failed Exception".
The instanceEPR object is not null, and get the following
stacktrace:
-----------------------------------------------------------
Serialziation failed. Caused by java.lang.NullPointerException
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:56)
at
org.globus.wsrf.config.ContainerConfig.getClientEngine(ContainerConfig.java:261)
at
org.globus.wsrf.config.ContainerConfig.getContext(ContainerConfig.java:292)
at org.globus.wsrf.utils.AnyHelper.write(AnyHelper.java:201)
at org.globus.wsrf.utils.AnyHelper.toString(AnyHelper.java:221)
at
org.globus.wsrf.encoding.ObjectSerializer.toString(ObjectSerializer.java:178)
at
org.globus.wsrf.encoding.ObjectSerializer.toString(ObjectSerializer.java:170)
at
org.gridsphere.MYSERVICE.portlets.MYSERVICE.processAction(MYSERVICE.java:111)
at
org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet.service(PortletServlet.java:356)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.include(SportletDispatcher.java:299)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.actionPerformed(SportletDispatcher.java:222)
at
org.gridlab.gridsphere.portletcontainer.PortletInvoker.actionPerformed(PortletInvoker.java:208)
at
org.gridlab.gridsphere.layout.PortletFrame.actionPerformed(PortletFrame.java:362)
at
org.gridlab.gridsphere.layout.PortletPage.actionPerformed(PortletPage.java:361)
at
org.gridlab.gridsphere.layout.PortletLayoutEngine.actionPerformed(PortletLayoutEngine.java:188)
at
org.gridlab.gridsphere.servlets.GridSphereServlet.processRequest(GridSphereServlet.java:239)
at
org.gridlab.gridsphere.servlets.GridSphereServlet.doGet(GridSphereServlet.java:138)
at
org.gridlab.gridsphere.servlets.GridSphereServlet.doPost(GridSphereServlet.java:567)
-----------------------------------------------------------
When i use and standard client (not a portlet) the serialization
works fine.
Could you please help me to find the error ?
Thank you in advanced.
Julio.