[infinispan-dev] JAXB error during schema generation

Mircea Markus mircea.markus at jboss.com
Mon Nov 21 19:08:54 EST 2011


Thank you.
On 21 Nov 2011, at 23:26, Galder Zamarreño wrote:

> Fixed: https://github.com/infinispan/infinispan/commit/8140c22f17ca9b01617bb10f01c7160815187aa7
> 
> On Nov 21, 2011, at 10:55 PM, Mircea Markus wrote:
> 
>> After updating from Git I get the following error[1]
>> Guess it has to do with the new config changes?
>> 
>> [1] 
>> Generating schema file in /Users/mmarkus/github/ispn/core/src/main/resources/schema
>> Failed generating schema file com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlAttribute(name=##default, required=false, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType org.infinispan.config.GlobalConfiguration.asyncListenerExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlElement(nillable=false, name=properties, required=false, defaultValue=, type=class javax.xml.bind.annotation.XmlElement$DEFAULT, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$FactoryClassWithPropertiesType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType org.infinispan.config.GlobalConfiguration.asyncListenerExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlAttribute(name=##default, required=false, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$ScheduledExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ScheduledExecutorFactoryType org.infinispan.config.GlobalConfiguration.evictionScheduledExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> 
>> com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlAttribute(name=##default, required=false, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType org.infinispan.config.GlobalConfiguration.asyncListenerExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlElement(nillable=false, name=properties, required=false, defaultValue=, type=class javax.xml.bind.annotation.XmlElement$DEFAULT, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$FactoryClassWithPropertiesType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ExecutorFactoryType org.infinispan.config.GlobalConfiguration.asyncListenerExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> JAXB annotation is placed on a method that is not a JAXB property
>> 	this problem is related to the following location:
>> 		at @javax.xml.bind.annotation.XmlAttribute(name=##default, required=false, namespace=##default)
>> 		at org.infinispan.config.GlobalConfiguration$ScheduledExecutorFactoryType
>> 		at org.infinispan.config.GlobalConfiguration$ScheduledExecutorFactoryType org.infinispan.config.GlobalConfiguration.evictionScheduledExecutor
>> 		at org.infinispan.config.GlobalConfiguration
>> 		at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global
>> 		at org.infinispan.config.InfinispanConfiguration
>> 
>> 	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
>> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)
>> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)
>> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)
>> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)
>> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)
>> 	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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202)
>> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:376)
>> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>> 	at org.infinispan.util.JaxbSchemaGenerator.main(JaxbSchemaGenerator.java:59)
>> 	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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:290)
>> 	at java.lang.Thread.run(Thread.java:680)
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev




More information about the infinispan-dev mailing list