Hi Binh

Your issue  isn't exactly the same as mine. However I have had an
experience similar to yours before.

  It turns out that if you have jar with dependencies,   classes from
different versions of libraries may overwrite each other.

I worked around this by using the maven-app-assembler which left  the jar
libraries in their original form and created a run script. This worked
without a problem.

I ship a zip of this to my internal users who can use it by unzipping it to
a folder on their machines.

Hope this helps.

Regards
Kiren
On 7 May 2015 18:42, "binh.le" <[email protected]> wrote:

> Hi all,
> I have the same issue. I'm using : cxf-rt-rs-client v3.0.4 in my project.
> In my IDE NB, it works fine. But when i make an distribution and run it, i
> receive :
> java.lang.NullPointerException
>         at
>
> org.apache.cxf.jaxrs.client.AbstractClient.setupOutInterceptorChain(AbstractClient.java:848)
>         at
>
> org.apache.cxf.jaxrs.client.AbstractClient.createMessage(AbstractClient.java:922)
>         at
>
> org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:650)
>         at
>
> org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:224)
>
> I try to add all dependencies of cxf-rt-rs-client :
>             <artifactId>cxf-core</artifactId>
>             <groupId>org.apache.cxf</groupId>
>             <version>3.0.4</version>
>
>             <artifactId>cxf-rt-transports-http</artifactId>
>             <groupId>org.apache.cxf</groupId>
>             <version>3.0.4</version>
>
>             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
>             <groupId>org.apache.cxf</groupId>
>             <version>3.0.4</version>
>
>             <artifactId>javax.annotation-api</artifactId>
>             <groupId>javax.annotation</groupId>
>             <version>1.2</version>
>
>             <artifactId>stax2-api</artifactId>
>             <groupId>org.codehaus.woodstox</groupId>
>             <version>3.1.4</version>
>
>             <artifactId>woodstox-core-asl</artifactId>
>             <groupId>org.codehaus.woodstox</groupId>
>             <version>4.4.1</version>
>
>             <artifactId>xmlschema-core</artifactId>
>             <groupId>org.apache.ws.xmlschema</groupId>
>             <version>2.2.1</version>
>
>             <artifactId>stax-api</artifactId>
>             <groupId>javax.xml.stream</groupId>
>             <version>1.0-2</version>
> but the distribution still has NPE.
> I use maven-assembly-plugin with "jar-with-dependencies" configuration to
> make my distribution.
>
> Any help is much appreciated.
> Best regards,
> Binh
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/NullPointerException-with-WebClient-tp5747641p5757125.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to