[
https://issues.apache.org/jira/browse/CXF-5655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949652#comment-13949652
]
sanmitra ijeri commented on CXF-5655:
-------------------------------------
This are the dependencies for the client
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>2.7.10</version>
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-javamail_1.4_spec</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>2.7.10</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.7.10</version>
</dependency>
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.4.RELEASE</version>
</dependency>
</dependencies>
> Client facing issue in catching exception thrown by server in CXF RS 2.7.0
> --------------------------------------------------------------------------
>
> Key: CXF-5655
> URL: https://issues.apache.org/jira/browse/CXF-5655
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.7.10
> Reporter: sanmitra ijeri
> Priority: Blocker
>
> Exception in thread "main" javax.ws.rs.InternalServerErrorException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at
> org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:462)
> at
> org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:311)
> at
> org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:691)
> at
> org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:650)
> at
> org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:219)
> at com.sun.proxy.$Proxy15.getPlayers(Unknown Source)
> at rs.PlayerServiceClient.main(PlayerServiceClient.java:20)
> Server is throwing exception with appropriate message but client is not to
> able to catch that exception. This is happening only for cxf 2.7.x (i.e not
> able to create an appropriate WebApplicationException) but when I run with
> 2.6.0 it works fine(i.e CXF 2.6's ServerWebApplicationException is thrown).
--
This message was sent by Atlassian JIRA
(v6.2#6252)