[
http://jira.jboss.com/jira/browse/JBWS-1422?page=all ]
Ortwin Glück updated JBWS-1422:
-------------------------------
Summary: NPE if @WebParam.name like "mX.." (was: NPE if more than one
upper-case character in @WebParam.name)
Description:
If @WebParam.name starts with one lower-case character followed by an upper-case character
a NPE is thrown on deployment.
@WebService(
name="test",
serviceName="Websvc"
)
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
parameterStyle=ParameterStyle.WRAPPED)
@Remote
public interface IWebsvc {
Response cancel(
@WebParam(name="nBarFoo") String myfoobar);
}
java.lang.NullPointerException
[exec] at java.lang.Class.searchFields(Class.java:2571)
[exec] at java.lang.Class.getField0(Class.java:2590)
[exec] at java.lang.Class.getField(Class.java:1505)
[exec] at
org.jboss.ws.metadata.wsdl.WSDLUtils.doesPublicFieldExist(WSDLUtils.java:428)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.addVariableMappings(SchemaTypeCreator.java:493)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.registerJavaTypeMapping(SchemaTypeCreator.java:463)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:344)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
[exec] at org.jboss.ws.tools.JavaToXSD.generateForSingleType(JavaToXSD.java:109)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateType(JavaToWSDLHelper.java:556)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateTypesForXSD(JavaToWSDLHelper.java:141)
[exec] at
org.jboss.ws.tools.JavaToWSDL11.handleJavaToWSDLGeneration(JavaToWSDL11.java:235)
[exec] at org.jboss.ws.tools.JavaToWSDL11.generate(JavaToWSDL11.java:168)
[exec] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:318)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.processOrGenerateWSDL(JSR181MetaDataBuilder.java:289)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.setupEndpointFromAnnotations(JSR181MetaDataBuilder.java:231)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilderEJB3.buildMetaData(JSR181MetaDataBuilderEJB3.java:75)
[exec] at
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:106)
was:
If @WebParam.name is a string with more than one upper-case character a NPE is thrown on
deployment.
@WebService(
name="test",
serviceName="Websvc"
)
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
parameterStyle=ParameterStyle.WRAPPED)
@Remote
public interface IWebsvc {
Response cancel(
@WebParam(name="myFooBar") String myfoobar);
}
java.lang.NullPointerException
[exec] at java.lang.Class.searchFields(Class.java:2571)
[exec] at java.lang.Class.getField0(Class.java:2590)
[exec] at java.lang.Class.getField(Class.java:1505)
[exec] at
org.jboss.ws.metadata.wsdl.WSDLUtils.doesPublicFieldExist(WSDLUtils.java:428)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.addVariableMappings(SchemaTypeCreator.java:493)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.registerJavaTypeMapping(SchemaTypeCreator.java:463)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:344)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
[exec] at org.jboss.ws.tools.JavaToXSD.generateForSingleType(JavaToXSD.java:109)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateType(JavaToWSDLHelper.java:556)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateTypesForXSD(JavaToWSDLHelper.java:141)
[exec] at
org.jboss.ws.tools.JavaToWSDL11.handleJavaToWSDLGeneration(JavaToWSDL11.java:235)
[exec] at org.jboss.ws.tools.JavaToWSDL11.generate(JavaToWSDL11.java:168)
[exec] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:318)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.processOrGenerateWSDL(JSR181MetaDataBuilder.java:289)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.setupEndpointFromAnnotations(JSR181MetaDataBuilder.java:231)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilderEJB3.buildMetaData(JSR181MetaDataBuilderEJB3.java:75)
[exec] at
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:106)
Corrections.
NPE if @WebParam.name like "mX.."
---------------------------------
Key: JBWS-1422
URL:
http://jira.jboss.com/jira/browse/JBWS-1422
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jbossws-1.0.3.SP1
Reporter: Ortwin Glück
If @WebParam.name starts with one lower-case character followed by an upper-case
character a NPE is thrown on deployment.
@WebService(
name="test",
serviceName="Websvc"
)
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
parameterStyle=ParameterStyle.WRAPPED)
@Remote
public interface IWebsvc {
Response cancel(
@WebParam(name="nBarFoo") String myfoobar);
}
java.lang.NullPointerException
[exec] at java.lang.Class.searchFields(Class.java:2571)
[exec] at java.lang.Class.getField0(Class.java:2590)
[exec] at java.lang.Class.getField(Class.java:1505)
[exec] at
org.jboss.ws.metadata.wsdl.WSDLUtils.doesPublicFieldExist(WSDLUtils.java:428)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.addVariableMappings(SchemaTypeCreator.java:493)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.registerJavaTypeMapping(SchemaTypeCreator.java:463)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:344)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
[exec] at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
[exec] at org.jboss.ws.tools.JavaToXSD.generateForSingleType(JavaToXSD.java:109)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateType(JavaToWSDLHelper.java:556)
[exec] at
org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateTypesForXSD(JavaToWSDLHelper.java:141)
[exec] at
org.jboss.ws.tools.JavaToWSDL11.handleJavaToWSDLGeneration(JavaToWSDL11.java:235)
[exec] at org.jboss.ws.tools.JavaToWSDL11.generate(JavaToWSDL11.java:168)
[exec] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:318)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.processOrGenerateWSDL(JSR181MetaDataBuilder.java:289)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilder.setupEndpointFromAnnotations(JSR181MetaDataBuilder.java:231)
[exec] at
org.jboss.ws.deployment.JSR181MetaDataBuilderEJB3.buildMetaData(JSR181MetaDataBuilderEJB3.java:75)
[exec] at
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:106)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira