[jboss-user] [JBoss jBPM] - Problem running the examples/loan in jbpm-bpel-1.1.GA

ganesh_239 do-not-reply at jboss.com
Thu May 15 07:59:40 EDT 2008


How to run the examples/loan and examples/task ?
The steps to run all the other examples are listed in the user guide but not this one.

I have taken the code by doing a cvs checkout as per http://www.jboss.com/index.html?module=bb&op=viewtopic&t=130891.
I did a cd to loan directory, did ant deploy.process
cd to task directory - ant deploy.webservice
cd to loan - ant register.partners

I can see the end points in http://localhost:8080/jbossws/services
Are the steps right ?

Then i created a  WS client , using Netbeans for JAX-WS.
This approach worked for Hello and Trip examples.
This is my test client code, it is same as the LoanerTest.java (w/o the lookup),  

  | 
  |   Loaner loaner;
  |   TaskManager taskManager;
  |         
  |     LoanApprovalService loanService = new LoanApprovalService() ;
  |     loaner = loanService.getLoanerPort();
  | 
  |     TaskManagementService taskService = new TaskManagementService();
  |     taskManager = taskService.getTaskManagerPort();
  | 
  |     String borrower = "bert";
  |     loaner.requestLoan(borrower, 1100);
  |     System.out.println("Loan requested status is: "+loaner.getLoanStatus(borrower));
  | 



i get the following error trace :(



run-single:
Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
        at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:242)
        at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:70)
        at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:85)
        at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:75)
        at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:167)
        at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:149)
        at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:121)
        at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:158)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.client.Stub.process(Stub.java:235)
        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
        at $Proxy36.requestLoan(Unknown Source)
        at taskmanagerbpel.Main.main(Main.java:42)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
        at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563)
        at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:56)
        at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:51)
        ... 19 more
Java Result: 1


What could be the problem ??

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151020#4151020

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151020



More information about the jboss-user mailing list