Re: [jibx-users] bug
Excuse my idiocy, of course you can't generate a package name with a Java keyword in it. Any idea why this would cause the maven plugin to fail code-gen? It doesn't like import. If I change it to impor it works. xmlns:exp= http://www.xyz.org/utils/dbsvn/config/schema/import http://www.xyz.org/utils/dbsvn/config/schema/import; Marvin Wolfthal email: m...@weichi.com -- ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] [Bug?] JIBX Incorrect Value Conversion for ByteArray
Hi Jack, Looks like a BindGen bug. You might want to create a Jira to make sure this is corrected for 1.2.3. - Dennis Dennis M. Sosnoski XML 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 On 10/04/2010 09:28 AM, Jack Vinijtrongjit wrote: Hi, According to this page, ByteArray is supposed to be converted to base64 representation of binary data. http://jibx.sourceforge.net/details/conversions.html However, what I'm getting when running bindGen is xs:element type=xs:byte name=byte minOccurs=0 maxOccurs=unbounded/ Am I missing something here? Could this possibly be a bug? I'm using version 1.2.2. Thanks, Jack -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] [Bug?] JIBX Incorrect Value Conversion for ByteArray
Hi, According to this page, ByteArray is supposed to be converted to base64 representation of binary data. http://jibx.sourceforge.net/details/conversions.html However, what I'm getting when running bindGen is xs:element type=xs:byte name=byte minOccurs=0 maxOccurs=unbounded/ Am I missing something here? Could this possibly be a bug? I'm using version 1.2.2. Thanks, Jack -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] bug in Jibx binding for Collection with option value
Hi, I believe I found a bug when jibx tries to marshal a collection with optional values in it. In generated Jibx_BungeAdapter class, it doesn't check if the value zipcode in a object is null or not. Here is my mapping, mapping name=NumberResponseWrap class=com.crsoftwareinc.crs.core.webservice.dialer.binding.CampaignNumberResponseBindingObject ns=http://www.crsoftwareinc.com/xml/ns/telecom/campaign_number_v1_0; value name=campaign field=campaignShortName / collection name=numbers field=numbersObj structure name=record type=com.crsoftwareinc.crs.core.webservice.dialer.binding.PhoneInfoTypeBindingObject value name=key field=key / value name=type field=type / value name=number field=number / value name=zipcode field=zipcode usage=optional / /structure /collection /mapping __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Bug in UTF8StreamWriter.writeTextContent(String text) ?
Hi Stefano, Your fix looks right to me. I'm trying to recreate the problem in a test case now (and having a hard time for some unknown reason). I'll verify and add the fix in the 1.1 code. The same code is used in all the stream writer variations, so the fix needs to apply to all as well. Thanks for finding this! - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Stefano Nichele wrote: Hi All, i think that i found a bug in UTF8StreamWriter.writeTextContent(String text). In this method the entity , are replaced by their escape sequence. Moreover if: else if (chr == '' i 2 text.charAt(i-1) == ']' text.charAt(i-2) == ']') { m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; fill = writeEntity(GT_ENTITY, fill); } the is replaced with gt;. The code above means: if the current char is and the previous chars are ]] escape the . Well, i have a java class that contains a text with: this is my ![CDATA[text]] with some problem My expected xml is: Datathis is my ![CDATA[text]] with some problem/Data but the result is: Datathis is my lt;![CDATA[textgt; with some problem/Data So the ]] are now . I think this is caused because my text doesn't start with CDATA so it is handled as simple text. I fixed it removing: m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; What do you thing about that ? Thanks a lot Stefano --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] Bug in UTF8StreamWriter.writeTextContent(String text) ?
Hi All, i think that i found a bug in UTF8StreamWriter.writeTextContent(String text). In this method the entity , are replaced by their escape sequence. Moreover if: else if (chr == '' i 2 text.charAt(i-1) == ']' text.charAt(i-2) == ']') { m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; fill = writeEntity(GT_ENTITY, fill); } the is replaced with gt;. The code above means: if the current char is and the previous chars are ]] escape the . Well, i have a java class that contains a text with: this is my ![CDATA[text]] with some problem My expected xml is: Datathis is my ![CDATA[text]] with some problem/Data but the result is: Datathis is my lt;![CDATA[textgt; with some problem/Data So the ]] are now . I think this is caused because my text doesn't start with CDATA so it is handled as simple text. I fixed it removing: m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; What do you thing about that ? Thanks a lot Stefano --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] Bug in UTF8StreamWriter.writeTextContent(String text) ?
Hi All, i think that i found a bug in UTF8StreamWriter.writeTextContent(String text). In this method the entity , are replaced by their escape sequence. Moreover if: else if (chr == '' i 2 text.charAt(i-1) == ']' text.charAt(i-2) == ']') { m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; fill = writeEntity(GT_ENTITY, fill); } the is replaced with gt;. The code above means: if the current char is and the previous chars are ]] escape the . Well, i have a java class that contains a text with: this is my ![CDATA[text]] with some problem My expected xml is: Datathis is my ![CDATA[text]] with some problem/Data but the result is: Datathis is my lt;![CDATA[textgt; with some problem/Data So the ]] are now . I think this is caused because my text doesn't start with CDATA so it is handled as simple text. I fixed it removing: m_buffer[fill++] = (byte)']'; m_buffer[fill++] = (byte)']'; What do you thing about that ? Thanks a lot Stefano --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] bug in GenericXMLWriter.java
Thanks for pointing this out, I correct it in the CVS code. - Dennis Jitesh Doshi wrote: I think I might have found a bug in GenericXMLWriter.java. The following line ... protected void writePrefix(int index) throws IOException { try { String text = m_prefixes[index]; ... should instead be ... protected void writePrefix(int index) throws IOException { try { String text = getNamespacePrefix(index); ... that way it takes into account, the extension namespaces as well. I am using JiBX bound XML beans with a lot of DOM-based elements embedded in (using DOMElementMapper). In those case, I get ArrayIndexOutOfBoundsException. Dennis, what do you think? --Jitesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] bug in GenericXMLWriter.java
I think I might have found a bug in GenericXMLWriter.java. The following line ... protected void writePrefix(int index) throws IOException { try { String text = m_prefixes[index]; ... should instead be ... protected void writePrefix(int index) throws IOException { try { String text = getNamespacePrefix(index); ... that way it takes into account, the extension namespaces as well. I am using JiBX bound XML beans with a lot of DOM-based elements embedded in (using DOMElementMapper). In those case, I get ArrayIndexOutOfBoundsException. Dennis, what do you think? --Jitesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users