You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Eran Chinthaka (JIRA)" <ji...@apache.org> on 2005/11/28 16:58:38 UTC

[jira] Resolved: (AXIS2-313) "TypeSystemHolder does not exist" compile errors from WSDL2Java

     [ http://issues.apache.org/jira/browse/AXIS2-313?page=all ]
     
Eran Chinthaka resolved AXIS2-313:
----------------------------------

    Resolution: Fixed

Thanks Trebor.

> "TypeSystemHolder does not exist" compile errors from WSDL2Java
> ---------------------------------------------------------------
>
>          Key: AXIS2-313
>          URL: http://issues.apache.org/jira/browse/AXIS2-313
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Reporter: trebor iksrazal

>
> The WSDL2Java tool that comes with Axis2 produces code which does not compile easily. Per the axis user list I was asked by  Eran Chinthaka to produce a JIRA issue that describes the problem and solution: 
> "This was a known issue. I think Ajith once wrote a small ant script to
> copy the generated stuff to correct places and generate a jar file.
> Anyway, since this is a well know problem and a solution, can you please
> open a JIRA on this and close it giving your solution. This will be
> useful for tracking purposes."
> The heart of the matter is that the java source files produced from WSDL2Java contain references such as: 
>  public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sC4E9AB45BD3F86168AEED3EE91073B40.TypeSystemHolder.typeSystem.resolveHandle("timea4a3doctype");
> This reference is _not_ contained in the source code produced by Axis2 WSDL2Java, and does not compile easily as one would normally expect. 
> /WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p 
> com.siemens.swa.plugins.webservices.types
> [javac] /home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databinding/org/xmlsoap/schemas/TimeDocument.java:19: 
> package 
> schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder 
> does not exist
>     [javac] public static final org.apache.xmlbeans.SchemaType type = 
> (org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3doctype");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re:[Axis2] Input stream is null while reading for incomming message... problem !

Posted by Zakia KAZI AOUL <ka...@enst.fr>.
Hi,

We solve this problem by moving to Tomcat 5.1 rather than Tomcat 4.1 
....and it works !!!!

ZAkia

At 11:22 09/12/2005 +0900, you wrote:
>hmm, interesting.
>
>If you can help me to reproduce the bug, I may be able to help you.
>
>Chinthaka
>
>Zakia KAZI AOUL wrote:
>
> > Hi,
> >
> > I just begin developping web services using axis2.
> >
> > I created my own web service, and the .aar corresponding archive file,
> > and then I deplyed it in the tomcat apache server.
> >
> > However, After the execution (within the JBuilder environment) of that
> > portion of code:
> >
> >         Call call = new Call();
> >             call.setTo(URL_context_ws);
> >
> > 
> call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
> >
> >             SOAPFactory fac1 = OMAbstractFactory.getSOAP11Factory();
> >             SOAPEnvelope envelope = fac1.getDefaultEnvelope();
> >             OMNamespace namespace =
> > fac1.createOMNamespace("http://example1.org/url_context", "ranglang");
> >             OMElement rang_lang = fac1.createOMElement((String)"lang",
> > namespace);
> >             rang_lang.setText("0");
> >             envelope.getBody().setFirstChild(rang_lang);
> >             call.invokeBlocking("getLanguage",envelope);
> >
> > This error code is generated:
> >
> > org.apache.axis2.AxisFault: Input stream is null while reading for
> > incomming message
> >         at
> > 
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:45)
> >
> >         at
> > 
> org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:53)
> >
> >         at
> > 
> org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:177)
> >
> >         at org.apache.axis2.clientapi.Call.invokeBlocking(Call.java:112)
> >         at
> > 
> decision_making_manager.decision_making.getContextElements(decision_making.java:162)
> >
> >         at
> > decision_making_manager.decision_making.<init>(decision_making.java:104)
> >         at
> > decision_making_manager.decision_main.main(decision_main.java:21)
> >
> >
> > So is the problem in the trasport , in the web service code or in the
> > web service client ?
> >
> > Thanks in advance
> >
> > Zakia

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zakia Imane KAZI AOUL
Elève chercheuse (PHD Student)
Ecole Nationale Supérieure des Télécommunications, GET - CNRS UMR 5141 - LTCI
Département INFRES
Tel: + 33 1 45 81 72 70,  Fax : + 33 1 45 81 31 19,  E-Mail : kazi@enst.fr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re:[Axis2] Input stream is null while reading for incomming message... problem !

Posted by Eran Chinthaka <ch...@opensource.lk>.
hmm, interesting.

If you can help me to reproduce the bug, I may be able to help you.

Chinthaka

Zakia KAZI AOUL wrote:

> Hi,
>
> I just begin developping web services using axis2.
>
> I created my own web service, and the .aar corresponding archive file,
> and then I deplyed it in the tomcat apache server.
>
> However, After the execution (within the JBuilder environment) of that
> portion of code:
>
>         Call call = new Call();
>             call.setTo(URL_context_ws);
>            
> call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
>
>             SOAPFactory fac1 = OMAbstractFactory.getSOAP11Factory();
>             SOAPEnvelope envelope = fac1.getDefaultEnvelope();
>             OMNamespace namespace =
> fac1.createOMNamespace("http://example1.org/url_context", "ranglang");
>             OMElement rang_lang = fac1.createOMElement((String)"lang",
> namespace);
>             rang_lang.setText("0");
>             envelope.getBody().setFirstChild(rang_lang);
>             call.invokeBlocking("getLanguage",envelope);
>
> This error code is generated:
>
> org.apache.axis2.AxisFault: Input stream is null while reading for
> incomming message
>         at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:45)
>
>         at
> org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:53)
>
>         at
> org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:177)
>
>         at org.apache.axis2.clientapi.Call.invokeBlocking(Call.java:112)
>         at
> decision_making_manager.decision_making.getContextElements(decision_making.java:162)
>
>         at
> decision_making_manager.decision_making.<init>(decision_making.java:104)
>         at
> decision_making_manager.decision_main.main(decision_main.java:21)
>
>
> So is the problem in the trasport , in the web service code or in the
> web service client ?
>
> Thanks in advance
>
> Zakia


Input stream is null while reading for incomming message... problem !

Posted by Zakia KAZI AOUL <ka...@enst.fr>.
Hi,

I just begin developping web services using axis2.

I created my own web service, and the .aar corresponding archive file, and 
then I deplyed it in the tomcat apache server.

However, After the execution (within the JBuilder environment) of that 
portion of code:

         Call call = new Call();
             call.setTo(URL_context_ws);
             call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
             SOAPFactory fac1 = OMAbstractFactory.getSOAP11Factory();
             SOAPEnvelope envelope = fac1.getDefaultEnvelope();
             OMNamespace namespace = 
fac1.createOMNamespace("http://example1.org/url_context", "ranglang");
             OMElement rang_lang = fac1.createOMElement((String)"lang", 
namespace);
             rang_lang.setText("0");
             envelope.getBody().setFirstChild(rang_lang);
             call.invokeBlocking("getLanguage",envelope);

This error code is generated:

org.apache.axis2.AxisFault: Input stream is null while reading for 
incomming message
         at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:45)
         at 
org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:53)
         at 
org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:177)
         at org.apache.axis2.clientapi.Call.invokeBlocking(Call.java:112)
         at 
decision_making_manager.decision_making.getContextElements(decision_making.java:162)
         at 
decision_making_manager.decision_making.<init>(decision_making.java:104)
         at decision_making_manager.decision_main.main(decision_main.java:21)


So is the problem in the trasport , in the web service code or in the web 
service client ?

Thanks in advance

Zakia