axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-3314) Wrong code generation (syntax error: staticabstract)
Date Mon, 12 Nov 2007 17:07:51 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe reassigned AXIS2-3314:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Wrong code generation (syntax error: staticabstract)
> ----------------------------------------------------
>
>                 Key: AXIS2-3314
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3314
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.3
>         Environment: Windows XP
>            Reporter: Togusa X Y
>            Assignee: Amila Chinthaka Suriarachchi
>
> When generating code with WSDL2Java.
> Creating an Axis client, with ADB binding.
> Generates a syntax error and the wsdl2java tool stops.
> The wrongly generated code is as follows: (first line)
> public staticabstract class StatementAbstractType
>         implements org.apache.axis2.databinding.ADBBean{
>         /* This type was generated from the piece of schema that had
>                 name = StatementAbstractType
>                 Namespace URI = urn:oasis:names:tc:SAML:1.0:assertion
>                 Namespace Prefix = ns7
>                 */
>             
>         private static java.lang.String generatePrefix(java.lang.String namespace) {
>             if(namespace.equals("urn:oasis:names:tc:SAML:1.0:assertion")){
>                 return "ns7";
>             }
>             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
>         }
>    ... more ....
> Command line as follows:
> C:\******>wsdl2java -o .\nuevocli2.gencode -p nuevoclientep6v2 -t  -S .\nuevocli2.gensource
-R .\nuevocli2.genresources -uri .\dss-pre.wsdl
> Error as follows:
> [ERROR] PARSER_ERROR
> C:\****\.\nuevocli2.gencode\nuevocli2.gensource\nuevoclientep6v2\DigitalS
> ignatureServiceStub.java:11265:16: unexpected token: staticabstract
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classField(InternalJavaParser.java:3119)
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classBlock(InternalJavaParser.java:2457)
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classDefinition(InternalJavaParser.java:710)
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinitionInternal(InternalJavaParser.java:632)
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinition(InternalJavaParser.java:465)
>         at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:296)
>         at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588)
>         at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1212)
>         at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
>         at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.axis2.util.PrettyPrinter.prettify(PrettyPrinter.java:89)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettifyFile(JavaPrettyPrinterExtension.ja
> va:66)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:4
> 6)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.
> java:36)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:259)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [WARN] Exception occurred while trying to pretty print file .\nuevocli2.gencode\nuevocli2.gensource\nuevoclientep6v2\Dig
> italSignatureServiceStub.java
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.axis2.util.PrettyPrinter.prettify(PrettyPrinter.java:89)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettifyFile(JavaPrettyPrinterExtension.ja
> va:66)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:4
> 6)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:5
> 0)
>         at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.
> java:36)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:259)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.OutOfMemoryError: Java heap space
>         at java.lang.Throwable.getStackTraceElement(Native Method)
>         at java.lang.Throwable.getOurStackTrace(Throwable.java:591)
>         at java.lang.Throwable.printStackTrace(Throwable.java:462)
>         at java.lang.Throwable.printStackTrace(Throwable.java:451)
>         at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1066)
>         at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
>         ... 14 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message