You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Scott Paisey (JIRA)" <ji...@apache.org> on 2008/04/15 23:06:21 UTC
[jira] Created: (CXF-1529) Deploying a JAXWS Service with a
HandlerChain specified causes NPE
Deploying a JAXWS Service with a HandlerChain specified causes NPE
------------------------------------------------------------------
Key: CXF-1529
URL: https://issues.apache.org/jira/browse/CXF-1529
Project: CXF
Issue Type: Bug
Components: JAX-WS Runtime
Affects Versions: 2.0.5
Environment: Windows XP.
Reporter: Scott Paisey
When attempting to deploy a simple JAXWS service with a HandlerChain specified, HandlerChainBuilder.buildHandlerChain() line 107 throws NPE.
PortComponentHandlerType.getHandlerName().getValue() causes the problem as handler name is null.
Annotations used in Service implementation:
@WebService(
targetNamespace = "com.test.service",
endpointInterface = "com.test.service.HelloService"
)
@HandlerChain(file = "/com/test/service/proxy/handlers.xml")
handlers.xml file is packaged in the same jar as the service implementation and is not being read from disk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-1529) Deploying a JAXWS Service with a
HandlerChain specified causes NPE
Posted by "Sean O'Callaghan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean O'Callaghan reassigned CXF-1529:
-------------------------------------
Assignee: Sean O'Callaghan
> Deploying a JAXWS Service with a HandlerChain specified causes NPE
> ------------------------------------------------------------------
>
> Key: CXF-1529
> URL: https://issues.apache.org/jira/browse/CXF-1529
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Affects Versions: 2.0.5
> Environment: Windows XP.
> Reporter: Scott Paisey
> Assignee: Sean O'Callaghan
>
> When attempting to deploy a simple JAXWS service with a HandlerChain specified, HandlerChainBuilder.buildHandlerChain() line 107 throws NPE.
> PortComponentHandlerType.getHandlerName().getValue() causes the problem as handler name is null.
> Annotations used in Service implementation:
> @WebService(
> targetNamespace = "com.test.service",
> endpointInterface = "com.test.service.HelloService"
> )
> @HandlerChain(file = "/com/test/service/proxy/handlers.xml")
> handlers.xml file is packaged in the same jar as the service implementation and is not being read from disk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1529) Deploying a JAXWS Service with a
HandlerChain specified causes NPE
Posted by "Scott Paisey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590029#action_12590029 ]
Scott Paisey commented on CXF-1529:
-----------------------------------
Also occurs with version 2.1SNAPSHOT:
[java] WARNING: Task.run exception
[java] javax.xml.ws.WebServiceException: Failed to instantiate handler
[java] at org.apache.cxf.jaxws.handler.HandlerChainBuilder.buildHandlerChain(HandlerChainBuilder.java:131)
[java] at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.processHandlerElement(AnnotationHandlerChainBuilder.java:227)
[java] at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.processHandlerChainElement(AnnotationHandlerChainBuilder.java:165)
[java] at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:118)
[java] at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:244)
[java] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.buildHandlerChain(JaxWsServerFactoryBean.java:191)
[java] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.init(JaxWsServerFactoryBean.java:169)
[java] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:161)
[java] at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322)
[java] at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244)
[java] at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194)
[java] at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:84)
[java] at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
[java] at com.itello.dispatcher.impl.DispatcherManager.serviceAdded(DispatcherManager.java:113)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl.serviceNotifyDo(ServiceDiscoveryManager.java:2130)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl.serviceNotifyDo(ServiceDiscoveryManager.java:2117)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl.addServiceNotify(ServiceDiscoveryManager.java:2077)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl.access$2500(ServiceDiscoveryManager.java:821)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$NewOldServiceTask.run(ServiceDiscoveryManager.java:1393)
[java] at net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$NotifyEventTask.run(ServiceDiscoveryManager.java:1132)
[java] at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)
[java] Caused by: java.lang.NullPointerException
[java] at org.apache.cxf.jaxws.handler.HandlerChainBuilder.buildHandlerChain(HandlerChainBuilder.java:119)
[java] ... 20 more
Changing HandlerChainBuilder line 119 from
LOG.log(Level.FINE, "loading handler", trimString(ht.getHandlerName().getValue()));
to
LOG.log(Level.FINE, "loading handler", trimString(ht.getHandlerClass().getValue()));
fixes the problem and allows the service to be exposed as WS.
> Deploying a JAXWS Service with a HandlerChain specified causes NPE
> ------------------------------------------------------------------
>
> Key: CXF-1529
> URL: https://issues.apache.org/jira/browse/CXF-1529
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Affects Versions: 2.0.5
> Environment: Windows XP.
> Reporter: Scott Paisey
> Assignee: Sean O'Callaghan
>
> When attempting to deploy a simple JAXWS service with a HandlerChain specified, HandlerChainBuilder.buildHandlerChain() line 107 throws NPE.
> PortComponentHandlerType.getHandlerName().getValue() causes the problem as handler name is null.
> Annotations used in Service implementation:
> @WebService(
> targetNamespace = "com.test.service",
> endpointInterface = "com.test.service.HelloService"
> )
> @HandlerChain(file = "/com/test/service/proxy/handlers.xml")
> handlers.xml file is packaged in the same jar as the service implementation and is not being read from disk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-1529) Deploying a JAXWS Service with a
HandlerChain specified causes NPE
Posted by "Sean O'Callaghan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean O'Callaghan resolved CXF-1529.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.1
> Deploying a JAXWS Service with a HandlerChain specified causes NPE
> ------------------------------------------------------------------
>
> Key: CXF-1529
> URL: https://issues.apache.org/jira/browse/CXF-1529
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Affects Versions: 2.0.5
> Environment: Windows XP.
> Reporter: Scott Paisey
> Assignee: Sean O'Callaghan
> Fix For: 2.1
>
>
> When attempting to deploy a simple JAXWS service with a HandlerChain specified, HandlerChainBuilder.buildHandlerChain() line 107 throws NPE.
> PortComponentHandlerType.getHandlerName().getValue() causes the problem as handler name is null.
> Annotations used in Service implementation:
> @WebService(
> targetNamespace = "com.test.service",
> endpointInterface = "com.test.service.HelloService"
> )
> @HandlerChain(file = "/com/test/service/proxy/handlers.xml")
> handlers.xml file is packaged in the same jar as the service implementation and is not being read from disk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.