[ 
https://issues.apache.org/jira/browse/AIRAVATA-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lahiru Gunathilake resolved AIRAVATA-79.
----------------------------------------

    Resolution: Fixed

Fixed with commit 1158773.

> XML Decoding fails with Jackrabbit rmi
> --------------------------------------
>
>                 Key: AIRAVATA-79
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-79
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Lahiru Gunathilake
>
> When invoke a service with metadata stored in jackrabbit, xml decoding fails 
> with a result of null pointer exceptions.
> Following code fails in SchemaUtil.java 
> public static Type parseFromXML(String xml) {
>               ByteArrayInputStream bs = new 
> ByteArrayInputStream(xml.getBytes());
>               XMLDecoder d = new XMLDecoder(bs);
>               Object result = d.readObject();
>               d.close();
>               return (Type) result;
>       }
> result object becomes null even the incoming xml is valid.
> org.apache.airavata.core.gfac.exception.GfacException: Service Desciption for 
> SimpleEcho does not found on resource Catalog 
> org.apache.airavata.core.gfac.api.impl.JCRRegistry@35d22ddb
>       at 
> org.apache.airavata.core.gfac.scheduler.impl.SchedulerImpl.schedule(SchedulerImpl.java:55)
>       at 
> org.apache.airavata.core.gfac.services.impl.AbstractSimpleService.execute(AbstractSimpleService.java:58)
>       at 
> org.apache.airavata.services.gfac.axis2.reciever.GFacMessageReciever.invokeApplication(GFacMessageReciever.java:133)
>       at 
> org.apache.airavata.services.gfac.axis2.reciever.GFacMessageReciever.processInvokeOperation(GFacMessageReciever.java:93)
>       at 
> org.apache.airavata.services.gfac.axis2.reciever.GFacMessageReciever.receive(GFacMessageReciever.java:72)
>       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>       at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>       at 
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:266)
>       at 
> org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
>       at 
> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
>       at 
> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:680)
> [ERROR] Broken pipe
> Regards
> Lahiru

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to