I think there was a problem in this area which has been fixed in the current CVS code. Sorry - it's been way too long between releases, and I need to get out 1.1.6. I'll do that this weekend.
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Konrad Hübner wrote: > Hi Dennis, > > the Stacktrace is: > > [echo] Running JiBX binding compiler > [bind] java.lang.IllegalStateException: Internal error: instance > signatures not found for class com.sdm.data.enums.ContentTypeEnum > [bind] at > org.jibx.binding.model.ClassWrapper.getInstanceSigs(ClassWrapper.java:100) > [bind] at > org.jibx.binding.model.ClassUtils.getSignatureVariants(ClassUtils.java:159) > [bind] at > org.jibx.binding.model.StringAttributes.prevalidate(StringAttributes.java:334) > [bind] at > org.jibx.binding.model.ValueElement.prevalidate(ValueElement.java:753) > [bind] at > org.jibx.binding.model.ValidationContext$PrevalidationVisitor.visit(ValidationContext.java:249) > [bind] at > org.jibx.binding.model.ModelVisitor.visit(ModelVisitor.java:240) > [bind] at > org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:195) > [bind] at > org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232) > [bind] at > org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232) > [bind] at > org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:122) > [bind] at > org.jibx.binding.model.ValidationContext.prevalidate(ValidationContext.java:89) > [bind] at > org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:581) > [bind] at > org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:647) > [bind] at > org.jibx.binding.Utility.validateBinding(Utility.java:228) > [bind] at org.jibx.binding.Utility.loadBinding(Utility.java:269) > [bind] at > org.jibx.binding.Utility.loadFileBinding(Utility.java:413) > [bind] at org.jibx.binding.Compile.compile(Compile.java:296) > [bind] at > org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248) > [bind] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > [bind] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [bind] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [bind] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [bind] at java.lang.reflect.Method.invoke(Method.java:585) > [bind] at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) > [bind] at org.apache.tools.ant.Task.perform(Task.java:348) > [bind] at org.apache.tools.ant.Target.execute(Target.java:357) > [bind] at > org.apache.tools.ant.Target.performTasks(Target.java:385) > [bind] at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > [bind] at > org.apache.tools.ant.Project.executeTarget(Project.java:1298) > [bind] at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > [bind] at > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > [bind] at > org.apache.tools.ant.Project.executeTargets(Project.java:1181) > [bind] at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > [bind] at > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) > > followed by: > > [bind] Error: Error during validation: Internal error: instance > signatures not found for class com.sdm.data.enums.ContentType; on > value element at (line 62, col 85, in src/main/resources/binding.xml) > > The Enum class is generated following the typesafe enum pattern. It > implements Serializable and an interface called Displayable which only > contains the methods String getDisplayName(); and String > getDisplayName(Locale pLocale); > > The enum is serialized and deserialized in JiBX through a custom > serializer / deserializer referenced in the binding. > > I hope this is enough information to get an idea of the problem. > > Thanks for the help > - Konrad > > > 2008/4/4 Dennis Sosnoski <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > Hi Konrad, > > I don't know of any problems with multiple interfaces. Can you > give the > full stack trace for the error? > > - Dennis > > Dennis M. Sosnoski > SOA and Web Services in Java > Training and Consulting > http://www.sosnoski.com - http://www.sosnoski.co.nz > Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 > > > > Konrad Hübner wrote: > > Hi folks, > > > > recently, I started getting "Error: Error during validation: > Internal > > error: instance signatures not found for class..." messages when > > trying to compile the binding. The classes are all generated, > but not > > much changed. I currently do not understand the real cause of this > > error, can anyone tell my, what happens if this error occurres? > > > > It seems that if a class implements two interfaces, the binding > cannot > > be compiled. One interface is Serializable, the other is a > custom one > > with only two methods returning a String. Does JibX have a problem > > here? Those classes are typesafe enums (Java 1.4) and mapped > through a > > custom serializer / deserializer. > > > > Thanks > > Konrad > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > jibx-users mailing list > > jibx-users@lists.sourceforge.net > <mailto:jibx-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/jibx-users > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > <mailto:jibx-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/jibx-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users