Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

JSON NullPointerException #17

Open
glassfishrobot opened this issue Jun 17, 2008 · 2 comments
Open

JSON NullPointerException #17

glassfishrobot opened this issue Jun 17, 2008 · 2 comments

Comments

@glassfishrobot
Copy link
Contributor

Exception in thread "main" java.lang.NullPointerException
at org.jvnet.jax_ws_commons.json.schema.JsonOperation.build(JsonOperation.java:53)
at org.jvnet.jax_ws_commons.json.schema.JsonOperation.(JsonOperation.java:33)
at org.jvnet.jax_ws_commons.json.SchemaInfo.buildJsonSchema(SchemaInfo.java:221)
at org.jvnet.jax_ws_commons.json.SchemaInfo.(SchemaInfo.java:132)
at org.jvnet.jax_ws_commons.json.JSONCodec.setEndpoint(JSONCodec.java:64)
at com.sun.xml.ws.server.WSEndpointImpl.(WSEndpointImpl.java:158)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:217)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:486)
at
com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:222)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:152)
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:113)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at orc.orchard.soap.CompilerService.(CompilerService.java:33)
at orc.orchard.soap.CompilerService.main(CompilerService.java:53)

After some investigation, it appears the problem is that the SchemaInfo
constructor which parses the WSDL is not following the WSDL statement
in the primary WSDL file which refers to the WSDL definition for the
endpointInterface (which in turn refers to the schema file). A quick fix should
be to parse all WSDL SDDocuments rather than just the primary one.

Based on this theory I'm going to try converting my service to not use an
endpointInterface and see if that resolves the issue.

Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Contributor Author

Reported by [email protected]

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAX_WS_COMMONS-17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant