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 Stadelmann Josef <jo...@axa-winterthur.ch> on 2007/07/03 07:38:20 UTC
WG: An exception when porting from axis2 1.1.1 to axis 1.2
Hy all,
I have the same problem but no answer given so far matches my demand.
When Client compiles against axis2-1.2, engages addressing-1.1.mar and then talks to an axis2-1.1.1 service, herby engaging addressing-1.1.mar all is ok
Client code compiled with axis2-1.2 & addressing-1.2.mar engaged works fined talking to an axis2-1.1.1 Service which has addressing-1.1.mar engaged.
When I port my Service to axis2-1.2, engaging addressing-1.2.mar the stacke trace below happens, and the trouble starts at the server with at the line
++++ at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
 indicated below.
This call can raise an exception
a) if the key is not present
b) if no object is returned;
and that is where the problem starts. The rest is just a follow up in my mind.
Please note I send <wsa:Action>urn:login</wsa:Action> on the wire, this as per TCP-Monitor
My PC has Windows 2000/SP4 and runs a U.S. English but cultures are set to Swiss-German for currency and the like;
also I can see the same problem when my axis2-1.2 server with addressin-1.2.mar engaged runs on a HP Alpha OpenVMS machine, U.S. English only.
I am a bit confused !
question: where is the Resource Bundel in question which must have
a) the key: spec.FAULT_ACTION_NOT_SUPPORTED_REASON ?
and b) what shall be returned by that key ?
question: is there a later nigthly build of addressing-1.2.mar which potentially fixes the problem seen?
Amy help appreciated.
Thanks
Josef.Stadelmann
@winterthur.ch
My TcpMonitor Log'ed
******* Request from Client ***********
POST /axis2/services/SpezplaService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:login"
User-Agent: Axis2
Host: localhost:9090
Transfer-Encoding: chunked
219
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:To>http://localhost:9090/axis2/services/SpezplaService</wsa:To>
<wsa:MessageID>urn:uuid:474EEFF146963E51071183381718923</wsa:MessageID>
<wsa:Action>urn:login</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<SPS:login xmlns:SPS="http://axawl.org/SpezplaService">
<SPS:Text>Axis2 'SOAPSession' Login-String</SPS:Text>
</SPS:login>
</soapenv:Body>
</soapenv:Envelope>
******** Answer from Server ***********
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 02 Jul 2007 13:08:40 GMT
Connection: close
fbb
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
<wsa:RelatesTo>urn:uuid:474EEFF146963E51071183381718923</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>java.util.MissingResourceException:
Can't find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle,
key spec.FAULT_ACTION_NOT_SUPPORTED_REASON</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: java.util.MissingResourceException:
Can't find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle,
key spec.FAULT_ACTION_NOT_SUPPORTED_REASON
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:178)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.util.MissingResourceException:
Can't find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle,
key spec.FAULT_ACTION_NOT_SUPPORTED_REASON
++++ at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at org.apache.axis2.i18n.MessageBundle.getMessage(MessageBundle.java:191)
at org.apache.axis2.i18n.MessageBundle.getMessage(MessageBundle.java:80)
at org.apache.axis2.addressing.i18n.AddressingMessages.getMessage(AddressingMessages.java:61)
at org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:317)
at org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:137)
at org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:50)
at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116)
... 19 more
</Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
-----Ursprüngliche Nachricht-----
Von: Wang, Hailong (NIH/CIT) [C] [mailto:wangh3@mail.nih.gov]
Gesendet: Donnerstag, 7. Juni 2007 22:30
An: axis-user@ws.apache.org; dims@apache.org
Betreff: RE: An exception when porting from axis2 1.1.1 to axis 1.2
I replaced addressing-1.1.mar with addressing-1.2.mar, it works fine. So
I guess the problem is addressing-1.2.mar.
Hailong
-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com]
Sent: Thursday, June 07, 2007 4:20 PM
To: axis-user@ws.apache.org
Subject: Re: An exception when porting from axis2 1.1.1 to axis 1.2
Angel,
it's a sign that you are sending a ws addressing action which is
empty. check the soap request please.
thanks,
dims
On 6/7/07, Angel Todorov <at...@gmail.com> wrote:
> Hi guys,
>
> this seems to be a very common problem to a lot of people, I am also
> experiencing it , with no sign of exact cause of the issue. Can you
give
> some insight ? Thanks very much.
>
> Regards,
> Angel
>
>
>
> On 6/7/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > Below exception was thrown out after I ported from axis2 1.1.1 and
rampart
> 1.1 to axis2 1.2 and rampart 1.2. Do I miss something? Thanks in
advance.
> >
> >
> >
> > org.apache.axis2.AxisFault:
> java.util.MissingResourceException: Can't find resource for
> bundle org.apache.axis2.i18n.ProjectResourceBundle, key
> spec.FAULT_ACTION_NOT_SUPPORTED_REASON
> >
> > at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
> Utils.java:434)
> >
> > at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:373)
> >
> > at
>
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294
> )
> >
> > at
> org.apache.axis2.client.ServiceClient.sendReceive(
> ServiceClient.java:520)
> >
> > at
> org.apache.axis2.client.ServiceClient.sendReceive(
> ServiceClient.java:500)
> >
> > at
> gov.nih.ndar.ws.guid.client.AbstractGuidClient.get(
> AbstractGuidClient.java:148)
> >
> > at
> gov.nih.ndar.ws.guid.client.SimpleGuidClient.main(
> SimpleGuidClient.java:58)
> >
> >
> >
> >
> >
> > Hailong Wang
> >
> > National Database for Autism Research(NDAR)
> >
> > NIH/CIT/DECA (MOM CONTRACTOR)
> >
> > 9000 Rockville Pike, Bld 12A/Room 2027
> >
> > Bethesda, MD 20892
> >
> > Phone: 301-402-3045
> >
> > Fax: 301-480-0028
> >
> > Email: wangh3@mail.nih.gov
> >
> > URL: http://ndar.nih.gov
> >
> >
>
>
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org