ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Midon" <mi...@intalio.com>
Subject Re: HTTP Header Issues
Date Fri, 14 Nov 2008 02:09:46 GMT
Hi Ben,


On Thu, Nov 13, 2008 at 8:54 AM, Benjamin C Scarborough <
Benjamin_C_Scarborough@raytheon.com> wrote:

> I am trying to pass the Basic Authentication HTTP header information from
> the incoming receive variable to another variable for calling an invoke.
>

The header attribute of an assignment sets a header on the abstract
representation of the message. The representation used to send this message
depends on the service binding. SOAP binding -> SOAP header ; HTTP binding
-> HTTP header (and this is a specific case where binding and transport are
the same)
So if the service you're invoking uses a SOAP-binding, don't expect the HTTP
header to be set.

If you want to pass credentials to your service, you should have a look at
this section of the user
guide<http://ode.apache.org/user-guide.html#UserGuide-HTTPAuthentication%28Axis2%29>
.

Alexis


> However, I keep getting an error.  It looks like it is trying to set the
> SOAP header instead.  How do I resolve this?
>
> BPEL assign statement that causes error.
>
> <bpws:copy>
>    <bpws:from variable="receiveRequest" header="Authorization"/>
>    <bpws:to variable="invokeRequest" header="Authorization"/>
> </bpws:copy>
>
>
> Inbound HTTP request headers from web service call:
>
> POST /ode/processes/inboundCheck HTTP/1.1
> Authorization: Basic YTph
> SOAPAction: ""
> Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *;
> q=.2, */*; q=.2
> Content-Type: text/xml; charset=utf-8
> User-Agent: Java/1.6.0_05
> Host: 127.0.0.1
> Connection: keep-alive
> Content-Length: 823
>
> Error received in log:
>
> 2008-11-13 11:53:53,343 INFO  [STDOUT] 11:53:53,343 ERROR
> [SimpleScheduler] Error while processing transaction, retrying.
> org.apache.ode.bpel.iapi.Scheduler$JobProcessorException:
> java.lang.RuntimeException: java.lang.NullPointerException
>        at
>
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:336)
>        at
>
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
>        at
>
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:337)
>        at
>
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:336)
>        at
>
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:174)
>        at
>
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:335)
>        at
>
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:332)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
>        at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
>        at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>        at
>
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:835)
>        at
>
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:197)
>        at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:204)
>        at
>
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:372)
>        at
>
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:326)
>        ... 11 more
> Caused by: java.lang.NullPointerException
>        at org.apache.ode.il.OMUtils.toOM(OMUtils.java:156)
>        at org.apache.ode.il.OMUtils.toOM(OMUtils.java:133)
>        at
>
> org.apache.ode.axis2.util.SoapMessageConverter.createSoapHeaders(SoapMessageConverter.java:216)
>        at
>
> org.apache.ode.axis2.util.SoapMessageConverter.createSoapRequest(SoapMessageConverter.java:165)
>        at
>
> org.apache.ode.axis2.SoapExternalService.invoke(SoapExternalService.java:126)
>        at
>
> org.apache.ode.axis2.MessageExchangeContextImpl.invokePartner(MessageExchangeContextImpl.java:52)
>        at
>
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:775)
>        at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:100)
>        at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>        ... 17 more
>
> Thanks for any assistance,
> Ben

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message