You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Xinjun Chen <xj...@gmail.com> on 2006/06/09 08:11:07 UTC

Axis2: Not Implemented Exception

Hi

I am trying to set proxy for an Axis2 client. The code snippet is as
follows:

   HttpTransportProperties htp = new HttpTransportProperties();
   httpProxyProperties = htp.new ProxyProperties();
   httpProxyProperties.setProxyName(httpProxyHost);
   httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort));
   httpProxyProperties.setUserName(httpProxyUsername);
   httpProxyProperties.setPassWord (httpProxyPassword);
   httpProxyProperties.setDomain(httpProxyDomain);

   MessageContext mc = new MessageContext();
   mc.setServiceContext(serviceContext);
   mc.setEnvelope(request);
   mc.setTo(toEPR);
   mc.setSoapAction(soapAction);

   OperationClient mepClient = outOnlyOperation.createClient(
     serviceContext, options);
   mepClient.addMessageContext(mc);

   // TODO: Add the call back handler
   mepClient.execute(true);
Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are
"anonymous".

When i ran the client, I get the following exception.

*

java.rmi.RemoteException
*: EJB Exception:; nested exception is:

*java.rmi.RemoteException*: Axis2 transport error : Not Implemented; nested
exception is:

org.apache.axis2.AxisFault: Axis2 *transport* error : Not Implemented;
nested exception is:

org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested
exception is:

Caused by:
*java.rmi.RemoteException*: Axis2 transport error : Not Implemented; nested
exception is:

org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested
exception is:

org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested
exception is:
I have tried to find other log messages but there is no other error message.
Could you give me some idea why this error happens and what I have missed
out?





Regards,
Xinjun

Re: Axis2: Not Implemented Exception

Posted by Xinjun Chen <xj...@gmail.com>.
Hi Saminda,

Thank you very much for your reply.
The constant MessageContextConstants.HTTP_PROTOCOL_VERSION is only
available since Axis2 0.95, while I am using Axis2 0.94. Your
alternative solution of modifying the axis2.xml solved my problem.

Regards,
Xinjun

On 6/9/06, Saminda Abeyruwan <sa...@opensource.lk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Xinjun,
>
> Default http transport version set to Http 1.1. Httpcleint support proxy
> support via Http version 1.0.
>
> in your client's options set the following property,
>
> options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10);
>
> Thank you
>
> Saminda
>
> Xinjun Chen wrote:
> > Hi
> >
> > I am trying to set proxy for an Axis2 client. The code snippet is as
> > follows:
> >
> >    HttpTransportProperties htp = new HttpTransportProperties();
> >    httpProxyProperties = htp.new ProxyProperties();
> >    httpProxyProperties.setProxyName(httpProxyHost);
> >    httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort));
> >    httpProxyProperties.setUserName(httpProxyUsername);
> >    httpProxyProperties.setPassWord (httpProxyPassword);
> >    httpProxyProperties.setDomain(httpProxyDomain);
> >
> >    MessageContext mc = new MessageContext();
> >    mc.setServiceContext(serviceContext);
> >    mc.setEnvelope(request);
> >    mc.setTo(toEPR);
> >    mc.setSoapAction(soapAction);
> >
> >    OperationClient mepClient = outOnlyOperation.createClient(
> >      serviceContext, options);
> >    mepClient.addMessageContext(mc);
> >
> >    // TODO: Add the call back handler
> >    mepClient.execute(true);
> >
> > Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are
> > "anonymous".
> >
> > When i ran the client, I get the following exception.
> >
> > _
> >
> > java.rmi.RemoteException
> >
> > _: EJB Exception:; nested exception is:
> >
> > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented;
> > nested exception is:
> >
> > org.apache.axis2.AxisFault: Axis2 _transport_ error : Not Implemented;
> > nested exception is:
> >
> > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> > nested exception is:
> >
> > Caused by:
> >
> > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented;
> > nested exception is:
> >
> > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> > nested exception is:
> >
> > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> > nested exception is:
> >
> > I have tried to find other log messages but there is no other error
> > message.
> > Could you give me some idea why this error happens and what I have
> > missed out?
> >
> >
> >
> >
> >
> > Regards,
> > Xinjun
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFEiVNPYmklbLuW6wYRAmyGAJ9k8RRx8hjBs1Q/rZwtiaIQ7QpqMwCbBm3+
> 1kHVBgAq3vs+gc5Zn1lrYFk=
> =XlQO
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2: Not Implemented Exception

Posted by Saminda Abeyruwan <sa...@opensource.lk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Xinjun,

Default http transport version set to Http 1.1. Httpcleint support proxy
support via Http version 1.0.

in your client's options set the following property,

options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10);

Thank you

Saminda

Xinjun Chen wrote:
> Hi
>  
> I am trying to set proxy for an Axis2 client. The code snippet is as
> follows:
>  
>    HttpTransportProperties htp = new HttpTransportProperties();
>    httpProxyProperties = htp.new ProxyProperties();
>    httpProxyProperties.setProxyName(httpProxyHost);
>    httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort));
>    httpProxyProperties.setUserName(httpProxyUsername);
>    httpProxyProperties.setPassWord (httpProxyPassword);
>    httpProxyProperties.setDomain(httpProxyDomain);
> 
>    MessageContext mc = new MessageContext();
>    mc.setServiceContext(serviceContext);
>    mc.setEnvelope(request);
>    mc.setTo(toEPR);
>    mc.setSoapAction(soapAction);
>    
>    OperationClient mepClient = outOnlyOperation.createClient(
>      serviceContext, options);
>    mepClient.addMessageContext(mc);
> 
>    // TODO: Add the call back handler
>    mepClient.execute(true);
> 
> Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are
> "anonymous".
>  
> When i ran the client, I get the following exception.
>  
> _
> 
> java.rmi.RemoteException
> 
> _: EJB Exception:; nested exception is:
> 
> _java.rmi.RemoteException_: Axis2 transport error : Not Implemented;
> nested exception is:
> 
> org.apache.axis2.AxisFault: Axis2 _transport_ error : Not Implemented;
> nested exception is:
> 
> org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> nested exception is:
> 
> Caused by:
> 
> _java.rmi.RemoteException_: Axis2 transport error : Not Implemented;
> nested exception is:
> 
> org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> nested exception is:
> 
> org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented;
> nested exception is:
> 
> I have tried to find other log messages but there is no other error
> message.
> Could you give me some idea why this error happens and what I have
> missed out?
>  
>  
>  
>  
>  
> Regards,
> Xinjun

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEiVNPYmklbLuW6wYRAmyGAJ9k8RRx8hjBs1Q/rZwtiaIQ7QpqMwCbBm3+
1kHVBgAq3vs+gc5Zn1lrYFk=
=XlQO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org