harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5752) java.lang.reflect.GenericSignatureFormatError running xjc tool in JAXB RI
Date Thu, 17 Apr 2008 02:01:21 GMT
java.lang.reflect.GenericSignatureFormatError running xjc tool in JAXB RI
-------------------------------------------------------------------------

                 Key: HARMONY-5752
                 URL: https://issues.apache.org/jira/browse/HARMONY-5752
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Davanum Srinivas
         Attachments: build.xml, ProxyDocLitWrapped.wsdl

will upload a build.xml and a wsdl file. there's an ant target named "get-libs", please run
that using Sun RI or download the 4 jars mentioned in the ant target by hand into a lib directory
as there's a problem with the ant get task with harmony (I've already raised a bug HARMONY-5751).

Then run "ant" to generate see this error. 

=============  Stack trace ==================

[dims@dims-desktop test]$ant -v
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.5 in: /home/dims/harmony/target/hdk/jdk/jre
Detected OS: Linux
parsing buildfile /home/dims/harmony/test/build.xml with URI = file:/home/dims/harmony/test/build.xml
Project base dir set to: /home/dims/harmony/test
Build sequence for target(s) `generate-sources' is [generate-sources]
Complete build sequence is [generate-sources, get-libs, ]

generate-sources:
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml.
It could not be found.
    [mkdir] Skipping /home/dims/harmony/test/build/src because it already exists.
     [echo] Generating java from ProxyDocLitWrapped.wsdl
     [java] Executing '/home/dims/harmony/target/hdk/jdk/jre/bin/java' with arguments:
     [java] '-classpath'
     [java] '/home/dims/harmony/test/lib/activation-1.1.jar:/home/dims/harmony/test/lib/jaxb-api-2.1.jar:/home/dims/harmony/test/lib/jaxb-impl-2.1.6.jar:/home/dims/harmony/test/lib/jaxb-xjc-2.1.6.jar'
     [java] 'com.sun.tools.xjc.Driver'
     [java] '-d'
     [java] '/home/dims/harmony/test/build/src'
     [java] '-quiet'
     [java] '-p'
     [java] 'org.test.proxy.doclitwrapped'
     [java] '-quiet'
     [java] '-wsdl'
     [java] 'ProxyDocLitWrapped.wsdl'
     [java]
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] Uncaught exception in main:
     [java] java.lang.Error: java.lang.reflect.InvocationTargetException
     [java]     at com.sun.tools.xjc.reader.Ring.get(Ring.java:113)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:142)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:112)
     [java]     at com.sun.tools.xjc.ModelLoader.annotateXMLSchema(ModelLoader.java:415)
     [java]     at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:163)
     [java]     at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:113)
     [java]     at com.sun.tools.xjc.Driver.run(Driver.java:313)
     [java]     at com.sun.tools.xjc.Driver.run(Driver.java:191)
     [java]     at com.sun.tools.xjc.Driver._main(Driver.java:116)
     [java]     at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
     [java]     at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java]     at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:283)
     [java]     at com.sun.tools.xjc.reader.Ring.get(Ring.java:102)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.<init>(BGMBuilder.java:142)
     [java]     ... 9 more
     [java] Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
     [java]     at com.sun.tools.xjc.reader.Ring.get(Ring.java:113)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BindingComponent.getClassSelector(BindingComponent.java:61)
     [java]     at com.sun.tools.xjc.reader.xmlschema.ColorBinder.<init>(ColorBinder.java:58)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BindGreen.<init>(BindGreen.java:59)
     [java]     at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
     [java]     ... 12 more
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java]     at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:283)
     [java]     at com.sun.tools.xjc.reader.Ring.get(Ring.java:102)
     [java]     at com.sun.tools.xjc.reader.xmlschema.BindingComponent.getClassSelector(BindingComponent.java:61)
     [java]     ... 15 more
     [java] Caused by: java.lang.reflect.GenericSignatureFormatError
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.throwGenericSignatureFormatError(SignatureParser.java:120)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__SIMPLE_CLASS_TYPE_SIGNATURE(SignatureParser.java:1630)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__REFERENCE(SignatureParser.java:1382)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE(SignatureParser.java:969)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FIELD_TYPE_SIGNATURE(SignatureParser.java:833)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__TYPE_SIGNATURE(SignatureParser.java:1950)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__ARRAY_TYPE_SIGNATURE(SignatureParser.java:1335)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FIELD_TYPE_SIGNATURE(SignatureParser.java:841)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__TYPE_ARGUMENT(SignatureParser.java:1847)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__TYPE_ARGUMENTS(SignatureParser.java:1793)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__SIMPLE_CLASS_TYPE_SIGNATURE(SignatureParser.java:1575)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__P_S_AND_S_C_T(SignatureParser.java:1769)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__REFERENCE(SignatureParser.java:1416)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE(SignatureParser.java:969)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_DECL(SignatureParser.java:569)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.pr__DECL(SignatureParser.java:469)
     [java]     at org.apache.harmony.lang.reflect.parser.SignatureParser.parseSignature(SignatureParser.java:368)
     [java]     at org.apache.harmony.lang.reflect.parser.Parser.parseSignature(Parser.java:57)
     [java]     at org.apache.harmony.lang.reflect.parser.Parser.getGenericSuperClass(Parser.java:804)
     [java]     at java.lang.Class$GACache.getGenericSuperclass(Class.java:1395)
     [java]     at java.lang.Class.getGenericSuperclass(Class.java:1056)
     [java]     at com.sun.xml.bind.v2.model.nav.ReflectionNavigator$1.onClass(ReflectionNavigator.java:81)
     [java]     at com.sun.xml.bind.v2.model.nav.ReflectionNavigator$1.onClass(ReflectionNavigator.java:137)
     [java]     at com.sun.xml.bind.v2.model.nav.TypeVisitor.visit(TypeVisitor.java:53)
     [java]     at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getBaseClass(ReflectionNavigator.java:227)
     [java]     at com.sun.tools.xjc.model.nav.NavigatorImpl.getBaseClass(NavigatorImpl.java:70)
     [java]     at com.sun.tools.xjc.model.nav.NavigatorImpl.getBaseClass(NavigatorImpl.java:55)
     [java]     at com.sun.xml.bind.v2.model.core.Adapter.<init>(Adapter.java:84)
     [java]     at com.sun.tools.xjc.model.CAdapter.<init>(CAdapter.java:78)
     [java]     at com.sun.tools.xjc.model.TypeUseFactory.adapt(TypeUseFactory.java:91)
     [java]     at com.sun.tools.xjc.model.CBuiltinLeafInfo.makeAdapted(CBuiltinLeafInfo.java:175)
     [java]     at com.sun.tools.xjc.model.CBuiltinLeafInfo.<clinit>(CBuiltinLeafInfo.java:303)
     [java]     at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.<clinit>(SimpleTypeBuilder.java:867)
     [java]     at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:283)
     [java]     at com.sun.tools.xjc.reader.Ring.get(Ring.java:102)
     [java]     at com.sun.tools.xjc.reader.xmlschema.DefaultClassBinder.<init>(DefaultClassBinder.java:92)
     [java]     at com.sun.tools.xjc.reader.xmlschema.ClassSelector.<init>(ClassSelector.java:209)
     [java]     at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
     [java]     ... 18 more
     [java] Java Result: 1


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


Mime
View raw message