velocity engin write errors (NPE)
---------------------------------
Key: CXF-777
URL: https://issues.apache.org/jira/browse/CXF-777
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.0
Environment: java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
Reporter: Christian Vest Hansen
Attachments: WebStat1.0.wsdl
When I run the wsdl2java tool on the attached
WSDL and schemas, I get an exception about "velocity engin write
errors" whos cause appear to be an NPE.
I'm wondering that the schemas might be too complex, or the tool can't
handle the importing.
I tried the tool on a much simple wsdl and it worked out alright.
Here's the output from wsdl2java:
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -verbose -client -server -impl -d
/Users/vest/workspace/Statistics2/src/main/java
/Users/vest/workspace/Statistics2/src/main/resources/WebStat1.0.wsdl
wsdl2java - 2.0-incubator-SNAPSHOT
WSDLToJava Error : velocity engin write errors
org.apache.cxf.tools.common.ToolException: velocity engin write errors
at
org.apache.cxf.tools.common.VelocityGenerator.doWrite(VelocityGenerator.java:103)
at
org.apache.cxf.tools.wsdlto.core.AbstractGenerator.doWrite(AbstractGenerator.java:49)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.generators.ClientGenerator.generate(ClientGenerator.java:118)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:185)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:215)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'getDefaultTypeValue' in class
org.apache.cxf.tools.common.model.JavaParameter threw exception class
java.lang.NullPointerException : null
at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.Template.merge(Template.java:256)
at
org.apache.cxf.tools.common.VelocityGenerator.doWrite(VelocityGenerator.java:99)
... 7 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.