[
https://issues.jboss.org/browse/GTNWSRP-307?page=com.atlassian.jira.plugi...
]
Chris Laprun resolved GTNWSRP-307.
----------------------------------
Fix Version/s: 2.2.0.Beta09
(was: 2.2.0)
Resolution: Done
Fixed by commenting out WS-Policy declaration in test WSDL since I couldn't figure out
how to address the issue properly with Sun's JAX-WS stack that's bundled with Java
7.
WSRP test fails on JDK 7
------------------------
Key: GTNWSRP-307
URL:
https://issues.jboss.org/browse/GTNWSRP-307
Project: GateIn WSRP
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Consumer
Affects Versions: 2.2.0-Beta04
Environment: JDK 7
Reporter: Ken Finnigan
Assignee: Chris Laprun
Fix For: 2.2.0.Beta09
org.gatein.wsrp.consumer.services.SOAPServiceFactoryTestCase.testV2ServiceWithExtraPorts()
fails with the following error when running on JDK 7:
-------------------------------------------------------------------------------
Test set: org.gatein.wsrp.consumer.services.SOAPServiceFactoryTestCase
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.701 sec <<<
FAILURE!
testV2ServiceWithExtraPorts(org.gatein.wsrp.consumer.services.SOAPServiceFactoryTestCase)
Time elapsed: 0.108 sec <<< ERROR!
javax.xml.ws.WebServiceException: WSP1007: Policy exception occured when finishing WSDL
parsing.
at
com.sun.xml.internal.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:951)
at
com.sun.xml.internal.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:176)
at
com.sun.xml.internal.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:323)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:160)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:260)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:223)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:171)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:96)
at javax.xml.ws.Service.<init>(Service.java:77)
at javax.xml.ws.Service.create(Service.java:707)
at org.gatein.wsrp.services.SOAPServiceFactory.start(SOAPServiceFactory.java:307)
at org.gatein.wsrp.services.SOAPServiceFactory.refresh(SOAPServiceFactory.java:499)
at org.gatein.wsrp.services.SOAPServiceFactory.getService(SOAPServiceFactory.java:161)
at
org.gatein.wsrp.consumer.services.SOAPServiceFactoryTestCase.checkPorts(SOAPServiceFactoryTestCase.java:128)
at
org.gatein.wsrp.consumer.services.SOAPServiceFactoryTestCase.testV2ServiceWithExtraPorts(SOAPServiceFactoryTestCase.java:79)
Caused by: com.sun.xml.internal.ws.policy.PolicyException: WSP0010: Unexpanded
"POLICY_REFERENCE" node found referencing
file:/home/ken/projects/portal/gatein/master/gatein-wsrp/consumer/target/test-classes/wsdl/wlp-wsrp-2.0-bindings.wsdl#ProducerDefaultPolicy
at
com.sun.xml.internal.ws.policy.sourcemodel.PolicyModelTranslator.getReferencedModelRootNode(PolicyModelTranslator.java:328)
at
com.sun.xml.internal.ws.policy.sourcemodel.PolicyModelTranslator.decompose(PolicyModelTranslator.java:307)
at
com.sun.xml.internal.ws.policy.sourcemodel.PolicyModelTranslator.createPolicyAlternatives(PolicyModelTranslator.java:259)
at
com.sun.xml.internal.ws.policy.sourcemodel.PolicyModelTranslator.translate(PolicyModelTranslator.java:222)
at
com.sun.xml.internal.ws.policy.jaxws.BuilderHandler.getPolicies(BuilderHandler.java:87)
at
com.sun.xml.internal.ws.policy.jaxws.BuilderHandler.getPolicySubjects(BuilderHandler.java:95)
at
com.sun.xml.internal.ws.policy.jaxws.BuilderHandlerMessageScope.doPopulate(BuilderHandlerMessageScope.java:127)
at com.sun.xml.internal.ws.policy.jaxws.BuilderHandler.populate(BuilderHandler.java:67)
at
com.sun.xml.internal.ws.policy.jaxws.PolicyMapBuilder.getNewPolicyMap(PolicyMapBuilder.java:94)
at
com.sun.xml.internal.ws.policy.jaxws.PolicyMapBuilder.getPolicyMap(PolicyMapBuilder.java:76)
at
com.sun.xml.internal.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:945)
... 42 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira