Now.  ;-)

 - Dennis

David AhChong wrote:

Thanks Denis, I've tried it out and it works great for us. Just
wondering, what timeframe did you have in mind for RC2? I suspect we can
afford to wait for it.

Regards,

David

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Sosnoski
Sent: Friday, November 18, 2005 4:49 PM
To: [email protected]
Subject: Re: [jibx-users] Reporting error generated by binding compiler

Thanks, David. I tracked this down to the <collection> using an
item-type that's an abstract mapping, and fixed things so this would
work properly in the CVS code.

 - Dennis

David AhChong wrote:

Hi Dennis,

I've tried it using the latest CVS code and I still get the same error.

Please let me know if you need any further information to reproduce this.

Thanks,

David

P.S. Here's the error and stack trace...

-----------
Error running binding compiler

*** Error during code generation - please report this error on the JiBX

users list so that the condition can be caught during validation ***

java.lang.IllegalStateException: Internal error - no content present
        at
org.jibx.binding.def.NestedBase.genContentPresentTest(NestedBase.java:1
9
7)
        at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThr
o
ughComponent.java:106)
        at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThr
o
ughComponent.java:106)
        at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThr
o
ughComponent.java:106)
        at
org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollect
i
on.java:137)
        at
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructur
e
.java:156)
        at
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBindin
g
.java:785)
        at
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.ja
v
a:930)
        at
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.
j
ava:272)
        at
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.j
a
va:592)
        at
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.j
a
va:602)
        at
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.j
a
va:611)
        at org.jibx.binding.Compile.compile(Compile.java:305)
        at
org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[snip]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski
Sent: Thursday, November 10, 2005 5:19 PM
To: [email protected]
Subject: Re: [jibx-users] Reporting error generated by binding compiler

Could you try this with the CVS code, David? I'm on the verge of releasing RC2 and would like to make sure this is corrected.

- Dennis

David AhChong wrote:



Hi all,

This is to report the error at the bottom of this email that was generated by the JiBX v1.0 RC1 binding compiler.


The error occurs with the following binding:

<binding value-style="attribute">
 <mapping class="AnInterface" abstract="true"/>

 <mapping name="one" class="AnInterfaceList">
     <collection item-type="AnInterface"
         add-method="addAnInterface"
iter-method="iterateAnInterfaces"/>
 </mapping>
</binding>


For the following classes/interfaces:

public interface AnInterface { // marker interface }

public class AnInterfaceList implements AnInterface {
 private List anInterfacesList = new ArrayList();

 private Iterator iterateAnInterfaces() {
     return anInterfacesList.iterator();
 }

 private void addAnInterface(AnInterface anInterface) {
     anInterfacesList.add(anInterface);
 }
}


Any suggestions on how the bindings could be changed to suit the interfaces/classes would be much appreciated.

What we actually have is something even more complicated:

- have many implementations of the marker interface
- AnInterfaceList is really an abstract base class
- two implementations of the marker interface are concrete classes that extend AnInterfaceList

Thanks for your time,

David


------------------
Here is the error:
------------------
Error running binding compiler

*** Error during code generation - please report this error on the JiBX


users list so that the condition can be caught during validation ***

java.lang.IllegalStateException: Internal error - no content present at
org.jibx.binding.def.NestedBase.genContentPresentTest(NestedBase.java:
1
9
7)
at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassTh
r
o
ughComponent.java:106)
at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassTh
r
o
ughComponent.java:106)
at
org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassTh
r
o
ughComponent.java:106)
at
org.jibx.binding.def.NestedCollection.genContentUnmarshal(NestedCollec
t
i
on.java:137)
at
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructu
r
e
.java:156)
at
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBindi
n
g
.java:757)
at
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.j
a
v
a:905)
at
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper
.
j
ava:272)
at
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.
j
a
va:565)
at
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.
j
a
va:604)
at
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.
j
a
va:611)
at org.jibx.binding.Compile.compile(Compile.java:305)
at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[snip]

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&opÌk
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to