Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 41324 invoked from network); 11 Jul 2007 07:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 07:51:27 -0000 Received: (qmail 72245 invoked by uid 500); 11 Jul 2007 07:51:29 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 72212 invoked by uid 500); 11 Jul 2007 07:51:29 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 72188 invoked by uid 99); 11 Jul 2007 07:51:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 00:51:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 00:51:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3680671418E for ; Wed, 11 Jul 2007 00:51:05 -0700 (PDT) Message-ID: <10220509.1184140265210.JavaMail.jira@brutus> Date: Wed, 11 Jul 2007 00:51:05 -0700 (PDT) From: "Christian Vest Hansen (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Created: (CXF-777) velocity engin write errors (NPE) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.