From boothjason@example.com  Mon May  2 21:59:44 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id D76C83520
	for <boothjason@example.com>; Mon,  2 May 2011 21:59:44 +0000 (UTC)
Received: (qmail 65787 invoked by uid 500); 2 May 2011 21:59:44 -0000
Delivered-To: boothjason@example.com
Received: (qmail 65757 invoked by uid 500); 2 May 2011 21:59:44 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 65750 invoked by uid 500); 2 May 2011 21:59:44 -0000
Delivered-To: boothjason@example.com
Received: (qmail 65746 invoked by uid 99); 2 May 2011 21:59:44 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 21:59:44 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 21:59:42 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 1DB69BE7EE
	for <boothjason@example.com>; Mon,  2 May 2011 21:59:03 +0000 (UTC)
Date: Mon, 2 May 2011 21:59:03 +0000 (UTC)
From: "Jerry Sy (JIRA)" <boothjason@example.com>
To: boothjason@example.com
Message-ID: <boothjason@example.com>
Subject: [jira] [Commented] (XMLBEANS-428) XmlException "Unexpected element:
 CDATA" is thrown when file size is 8k+1byte
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


    [ https://issues.apache.org/jira/browse/XMLBEANS-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027870#comment-13027870 ] 

Jerry Sy commented on XMLBEANS-428:
-----------------------------------

This problem is fixed in revision 959082
http://svn.apache.org/viewvc?view=revision&revision=959082

I tested using the schema and xml provided using this code
            SchemaTypeSystem sts0 = XmlBeans.compileXsd(new XmlObject[]{XmlObject.Factory.parse(new File("test.xsd"))},
                    XmlBeans.getBuiltinTypeSystem(),null);
            XmlObject x0 = sts0.parse(new File("testf.xml"),sts0.findDocumentType(new QName("xmlbean","root")),null);

I see the error using xbean 2.5 jar, but don't see the error anymore if I include fix from revision 959082. So this bug can be closed as already fixed.


> XmlException "Unexpected element: CDATA" is thrown when file size is 8k+1byte
> -----------------------------------------------------------------------------
>
>                 Key: XMLBEANS-428
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-428
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.5
>            Reporter: Volodymyr Bychkoviak
>         Attachments: test.tgz
>
>
> When xml file is 8193bytes (8k+1) and have CRLF in the end (after closing tag) then exception "Unexpected element: CDATA" is thrown.
> Maybe it is somehow related to 8k buffer used in XMLReaderReader and XMLStreamReader classes
> reproducible on latest svn revision (r884309)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Fri May  6 13:56:08 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id E6BC29A8
	for <boothjason@example.com>; Fri,  6 May 2011 13:56:07 +0000 (UTC)
Received: (qmail 58641 invoked by uid 500); 6 May 2011 13:56:07 -0000
Delivered-To: boothjason@example.com
Received: (qmail 58580 invoked by uid 500); 6 May 2011 13:56:07 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 58564 invoked by uid 99); 6 May 2011 13:56:07 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 13:56:07 +0000
X-ASF-Spam-Status: No, hits=-1.8 required=5.0
	tests=DATE_IN_PAST_24_48,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [83.161.120.155] (HELO rcsinet10.oracle.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 13:55:58 +0000
Received: from acsinet21.oracle.com (acsinet21.oracle.com [83.161.120.155])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p46DtZAN026310
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 6 May 2011 13:55:37 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [83.161.120.155])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p46DtY6F027554
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 6 May 2011 13:55:35 GMT
Received: from abhmt021.oracle.com (abhmt021.oracle.com [83.161.120.155])
	by acsmt356.oracle.com (83.161.120.15560308/8.12.11) with ESMTP id p46DtTdI028813;
	Fri, 6 May 2011 08:55:29 -0500
Received: from [83.161.120.155] (/83.161.120.155)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 06 May 2011 06:55:28 -0700
Subject: Re: [jira] [Commented] (XMLBEANS-428) XmlException "Unexpected element: CDATA" is thrown when file size is 8k+1byte
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Cezar Andrei <boothjason@example.com>
In-Reply-To: <boothjason@example.com>
Date: Wed, 4 May 2011 20:36:24 -0500
Cc: boothjason@example.com
Content-Transfer-Encoding: quoted-printable
Message-Id: <boothjason@example.com>
References: <boothjason@example.com>
To: boothjason@example.com
X-Mailer: Apple Mail (2.1084)
X-Source-IP: acsinet21.oracle.com [83.161.120.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090201.4DC3FDD9.007A:SCFMA922111,ss=1,fgs=0
X-Virus-Checked: Checked by ClamAV on apache.org

Thanks Jerry for looking into it, it's good to know it has been fixed.

Cezar


On May 2, 2011, at 4:59 PM, Jerry Sy (JIRA) wrote:

>=20
>    [ =
https://issues.apache.org/jira/browse/XMLBEANS-428?page=3Dcom.atlassian.ji=
ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130278=
70#comment-13027870 ]=20
>=20
> Jerry Sy commented on XMLBEANS-428:
> -----------------------------------
>=20
> This problem is fixed in revision 959082
> http://svn.apache.org/viewvc?view=3Drevision&revision=3D959082
>=20
> I tested using the schema and xml provided using this code
>            SchemaTypeSystem sts0 =3D XmlBeans.compileXsd(new =
XmlObject[]{XmlObject.Factory.parse(new File("test.xsd"))},
>                    XmlBeans.getBuiltinTypeSystem(),null);
>            XmlObject x0 =3D sts0.parse(new =
File("testf.xml"),sts0.findDocumentType(new =
QName("xmlbean","root")),null);
>=20
> I see the error using xbean 2.5 jar, but don't see the error anymore =
if I include fix from revision 959082. So this bug can be closed as =
already fixed.
>=20
>=20
>> XmlException "Unexpected element: CDATA" is thrown when file size is =
8k+1byte
>> =
--------------------------------------------------------------------------=
---
>>=20
>>                Key: XMLBEANS-428
>>                URL: =
https://issues.apache.org/jira/browse/XMLBEANS-428
>>            Project: XMLBeans
>>         Issue Type: Bug
>>   Affects Versions: Version 2.5
>>           Reporter: Volodymyr Bychkoviak
>>        Attachments: test.tgz
>>=20
>>=20
>> When xml file is 8193bytes (8k+1) and have CRLF in the end (after =
closing tag) then exception "Unexpected element: CDATA" is thrown.
>> Maybe it is somehow related to 8k buffer used in XMLReaderReader and =
XMLStreamReader classes
>> reproducible on latest svn revision (r884309)
>=20
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: =
http://www.atlassian.com/software/jira
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: boothjason@example.com
> For additional commands, e-mail: boothjason@example.com
>=20


---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Fri May  6 13:56:09 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id E6ED99AA
	for <boothjason@example.com>; Fri,  6 May 2011 13:56:07 +0000 (UTC)
Received: (qmail 58648 invoked by uid 500); 6 May 2011 13:56:07 -0000
Delivered-To: boothjason@example.com
Received: (qmail 58582 invoked by uid 500); 6 May 2011 13:56:07 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 58569 invoked by uid 500); 6 May 2011 13:56:07 -0000
Delivered-To: boothjason@example.com
Received: (qmail 58564 invoked by uid 99); 6 May 2011 13:56:07 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 13:56:07 +0000
X-ASF-Spam-Status: No, hits=-1.8 required=5.0
	tests=DATE_IN_PAST_24_48,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [83.161.120.155] (HELO rcsinet10.oracle.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 13:55:58 +0000
Received: from acsinet21.oracle.com (acsinet21.oracle.com [83.161.120.155])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p46DtZAN026310
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 6 May 2011 13:55:37 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [83.161.120.155])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p46DtY6F027554
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 6 May 2011 13:55:35 GMT
Received: from abhmt021.oracle.com (abhmt021.oracle.com [83.161.120.155])
	by acsmt356.oracle.com (83.161.120.15560308/8.12.11) with ESMTP id p46DtTdI028813;
	Fri, 6 May 2011 08:55:29 -0500
Received: from [83.161.120.155] (/83.161.120.155)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 06 May 2011 06:55:28 -0700
Subject: Re: [jira] [Commented] (XMLBEANS-428) XmlException "Unexpected element: CDATA" is thrown when file size is 8k+1byte
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Cezar Andrei <boothjason@example.com>
In-Reply-To: <boothjason@example.com>
Date: Wed, 4 May 2011 20:36:24 -0500
Cc: boothjason@example.com
Content-Transfer-Encoding: quoted-printable
Message-Id: <boothjason@example.com>
References: <boothjason@example.com>
To: boothjason@example.com
X-Mailer: Apple Mail (2.1084)
X-Source-IP: acsinet21.oracle.com [83.161.120.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090201.4DC3FDD9.007A:SCFMA922111,ss=1,fgs=0
X-Virus-Checked: Checked by ClamAV on apache.org

Thanks Jerry for looking into it, it's good to know it has been fixed.

Cezar


On May 2, 2011, at 4:59 PM, Jerry Sy (JIRA) wrote:

>=20
>    [ =
https://issues.apache.org/jira/browse/XMLBEANS-428?page=3Dcom.atlassian.ji=
ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130278=
70#comment-13027870 ]=20
>=20
> Jerry Sy commented on XMLBEANS-428:
> -----------------------------------
>=20
> This problem is fixed in revision 959082
> http://svn.apache.org/viewvc?view=3Drevision&revision=3D959082
>=20
> I tested using the schema and xml provided using this code
>            SchemaTypeSystem sts0 =3D XmlBeans.compileXsd(new =
XmlObject[]{XmlObject.Factory.parse(new File("test.xsd"))},
>                    XmlBeans.getBuiltinTypeSystem(),null);
>            XmlObject x0 =3D sts0.parse(new =
File("testf.xml"),sts0.findDocumentType(new =
QName("xmlbean","root")),null);
>=20
> I see the error using xbean 2.5 jar, but don't see the error anymore =
if I include fix from revision 959082. So this bug can be closed as =
already fixed.
>=20
>=20
>> XmlException "Unexpected element: CDATA" is thrown when file size is =
8k+1byte
>> =
--------------------------------------------------------------------------=
---
>>=20
>>                Key: XMLBEANS-428
>>                URL: =
https://issues.apache.org/jira/browse/XMLBEANS-428
>>            Project: XMLBeans
>>         Issue Type: Bug
>>   Affects Versions: Version 2.5
>>           Reporter: Volodymyr Bychkoviak
>>        Attachments: test.tgz
>>=20
>>=20
>> When xml file is 8193bytes (8k+1) and have CRLF in the end (after =
closing tag) then exception "Unexpected element: CDATA" is thrown.
>> Maybe it is somehow related to 8k buffer used in XMLReaderReader and =
XMLStreamReader classes
>> reproducible on latest svn revision (r884309)
>=20
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: =
http://www.atlassian.com/software/jira
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: boothjason@example.com
> For additional commands, e-mail: boothjason@example.com
>=20


---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Mon May  9 06:42:48 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id ABE0041F0
	for <boothjason@example.com>; Mon,  9 May 2011 06:42:48 +0000 (UTC)
Received: (qmail 15720 invoked by uid 500); 9 May 2011 06:42:48 -0000
Delivered-To: boothjason@example.com
Received: (qmail 15385 invoked by uid 500); 9 May 2011 06:42:47 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 14349 invoked by uid 500); 9 May 2011 06:42:45 -0000
Delivered-To: boothjason@example.com
Received: (qmail 14339 invoked by uid 99); 9 May 2011 06:42:45 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 06:42:45 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 06:42:42 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 3E159C7B4D
	for <boothjason@example.com>; Mon,  9 May 2011 06:42:03 +0000 (UTC)
Date: Mon, 9 May 2011 06:42:03 +0000 (UTC)
From: "PappuPass Learning Resources (JIRA)" <boothjason@example.com>
To: boothjason@example.com
Message-ID: <{{EMAIL+PHONE}}>
Subject: [jira] [Commented] (XMLBEANS-376) LinkageError: loader constraint
 violation ... when resolving method
 org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setUserData
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


    [ https://issues.apache.org/jira/browse/XMLBEANS-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030623#comment-13030623 ] 

PappuPass Learning Resources commented on XMLBEANS-376:
-------------------------------------------------------

Alexandre i want to create xmlbean2.3.0. jar out of xmlbean source code (removing org/w3c/** package ). Will you provide steps how you did it ?

> LinkageError: loader constraint violation ... when resolving method org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setUserData
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-376
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-376
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions:  Version 2.3
>         Environment: OS: Windows XP SP2
> Java: JDK 1.6.0_06
> JBoss 5.0.1 CR1
>            Reporter: Aldrin E Baroi
>            Priority: Minor
>
> I get linkage error in JBoss 5.0.1 CR1 with XMLBean 2.3.0.
> I have fixed the problem by creating xbean.jar from 2.3.0 source by modifying the following in the ANT build.xml file:
>                  <!-- property name="build.compiler" value="javac1.4"/ -->                 <--- commented it out
>                 <property name="javac.target" value="1.5"/>                                         <--- changed value from 1.4 to 1.5
>                 <fileset dir="build/classes/store" excludes="javax/**,org/w3c/**"/>   <--- modified to exclude javax & org/w3c in "xbean.jar" target
> Here is the partial stacktrace:
> 15:45:54,543 INFO  [STDOUT] 2008-07-08 15:45:54,543 HDScanner INFO  NotificationManager  : Loading notifcation configuration...
> 15:45:54,746 ERROR [[/...ELIDED...]] Exception sending context initialized event to listener instance of class [...ELIDED...]
> java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setU
> serData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of org/jboss/classloader/spi/base/BaseC
> lassLoader) of the current class, org/apache/xmlbeans/impl/store/Xobj$NodeXobj, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/UserDataHandler used in the signature
>         at org.apache.xmlbeans.impl.store.Cur.createDomDocumentRootXobj(Cur.java:244)
>         at org.apache.xmlbeans.impl.store.Cur.createDomDocumentRootXobj(Cur.java:233)
>         at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.<init>(Cur.java:2836)
>         ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Mon May 16 08:02:38 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id D8C6269BE
	for <boothjason@example.com>; Mon, 16 May 2011 08:02:38 +0000 (UTC)
Received: (qmail 68880 invoked by uid 500); 16 May 2011 08:02:38 -0000
Delivered-To: boothjason@example.com
Received: (qmail 68211 invoked by uid 500); 16 May 2011 08:02:31 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 68185 invoked by uid 500); 16 May 2011 08:02:29 -0000
Delivered-To: boothjason@example.com
Received: (qmail 68180 invoked by uid 99); 16 May 2011 08:02:28 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 08:02:28 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 08:02:27 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 56D86CC7F7
	for <boothjason@example.com>; Mon, 16 May 2011 08:01:48 +0000 (UTC)
Date: Mon, 16 May 2011 08:01:48 +0000 (UTC)
From: "Yoann Guerro (JIRA)" <boothjason@example.com>
To: boothjason@example.com
Message-ID: <boothjason@example.com>
Subject: [jira] [Created] (XMLBEANS-455) XmlBeans DateOrTimeOrDateTime
 generated from OTA simple type not compliant with W3C standard
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394

XmlBeans DateOrTimeOrDateTime generated from OTA simple type not compliant with W3C standard
--------------------------------------------------------------------------------------------

                 Key: XMLBEANS-455
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-455
             Project: XMLBeans
          Issue Type: Bug
          Components: XmlObject
    Affects Versions:  Version 2.3
         Environment: Windows XP, JDK 1.6
            Reporter: Yoann Guerro


The generated type DateOrTimeOrDateTime from OTA simple type DateOrTimeOrDateTimeType (OTA_SimpleTypes.xsd) doesn't accept 24 as a valid value for the hour field.
W3C XML Schema Part 2: Datatypes Second Edition (ref. http://www.w3.org/TR/xmlschema-2/#dateTime) states that "'24' is permitted if the minutes and seconds represented are zero, and the dateTime value so represented is the first instant of the following day".
Code below raises an exception: "union value '24:00:00' does not match any members of 'DateOrTimeOrDateTimeType in namespace http://www.opentravel.org/OTA/2003/05'"
 		 java.util.Calendar calendar = java.util.Calendar.getInstance();
 		 calendar.set(2000, 1, 1, 24, 0, 0);
 		 java.text.SimpleDateFormat format= new SimpleDateFormat("kk:mm:ss");
 		 org.opentravel.www.ota._2003._05.DateOrTimeOrDateTimeType aDate = org.opentravel.www.ota._2003._05.DateOrTimeOrDateTimeType.Factory.newInstance();
 		 aDate.setStringValue(format.format(calendar.getTime()));

Full stacktrace:
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: union value '24:00:00' does not match any members of 'DateOrTimeOrDateTimeType in namespace http://www.opentravel.org/OTA/2003/05'
 		 at org.apache.xmlbeans.impl.values.XmlUnionImpl.set_text(XmlUnionImpl.java:154)
 		 at org.apache.xmlbeans.impl.values.XmlObjectBase.update_from_wscanon_text(XmlObjectBase.java:1135)
 		 at org.apache.xmlbeans.impl.values.XmlObjectBase.set_String(XmlObjectBase.java:1080)
 		 at org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:1637)
 		 at org.apache.xmlbeans.impl.values.XmlObjectBase.setStringValue(XmlObjectBase.java:1533)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Wed May 18 19:17:33 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 048DA602B
	for <boothjason@example.com>; Wed, 18 May 2011 19:17:33 +0000 (UTC)
Received: (qmail 44235 invoked by uid 500); 18 May 2011 19:17:32 -0000
Delivered-To: boothjason@example.com
Received: (qmail 44167 invoked by uid 500); 18 May 2011 19:17:32 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 44152 invoked by uid 500); 18 May 2011 19:17:32 -0000
Delivered-To: boothjason@example.com
Received: (qmail 44149 invoked by uid 99); 18 May 2011 19:17:32 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 19:17:32 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 19:17:29 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 33971CFAF2
	for <boothjason@example.com>; Wed, 18 May 2011 19:16:49 +0000 (UTC)
Date: Wed, 18 May 2011 19:16:49 +0000 (UTC)
From: "Boris Shingarov (JIRA)" <boothjason@example.com>
To: boothjason@example.com
Message-ID: <boothjason@example.com>
Subject: [jira] [Created] (XMLBEANS-456) No generated source for
 TypeSystemHolder -- breaks Maven plugin
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org

No generated source for TypeSystemHolder -- breaks Maven plugin
---------------------------------------------------------------

                 Key: XMLBEANS-456
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-456
             Project: XMLBeans
          Issue Type: Bug
          Components: Compiler
    Affects Versions:  Version 2.3, Version 2.4 
            Reporter: Boris Shingarov


According to the doc, Java classes are first generated in source form in the place specified by the "-src" flag, and then get compiled into a place specified by the "-d" flag.
However, this is not true for TypeSystemHolder.  It is created in SchemaTypeSystemImpl.saveLoader(), by patching a template .class file.

This is a problem with the xmlbeans maven plugin.  It trusts the xmlbeans doc and assumes that all the necessary code is available in the "src" place.  It then automatically generates a .classpath for Eclipse containing the "src".  Because the application program compiles against the generated interfaces, and those are present in "src", the problem does not get detected at compile time.  But at runtime, the application will die with a NoClassDefFound.
I can not see how to work around this.  The xmlbeans plugin provides no flexibility to allow changing the .classpath, so I can not just manually tell it to include the "-d" place.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com


From boothjason@example.com  Thu May 19 07:18:53 2011
Return-Path: <boothjason@example.com>
X-Original-To: boothjason@example.com
Delivered-To: boothjason@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 6E8394AAC
	for <boothjason@example.com>; Thu, 19 May 2011 07:18:53 +0000 (UTC)
Received: (qmail 86142 invoked by uid 500); 19 May 2011 07:18:51 -0000
Delivered-To: boothjason@example.com
Received: (qmail 85938 invoked by uid 500); 19 May 2011 07:17:53 -0000
Mailing-List: contact boothjason@example.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:boothjason@example.com>
List-Help: <mailto:boothjason@example.com>
List-Unsubscribe: <mailto:boothjason@example.com>
Reply-To: boothjason@example.com
List-Id: <dev.xmlbeans.apache.org>
Delivered-To: mailing list boothjason@example.com
Received: (qmail 85833 invoked by uid 500); 19 May 2011 07:17:38 -0000
Delivered-To: boothjason@example.com
Received: (qmail 85423 invoked by uid 99); 19 May 2011 07:17:28 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 07:17:28 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 07:17:27 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 89639D0F10
	for <boothjason@example.com>; Thu, 19 May 2011 07:16:47 +0000 (UTC)
Date: Thu, 19 May 2011 07:16:47 +0000 (UTC)
From: "Petr Slaby (JIRA)" <boothjason@example.com>
To: boothjason@example.com
Message-ID: <boothjason@example.com>
Subject: [jira] [Commented] (XMLBEANS-376) LinkageError: loader constraint
 violation ... when resolving method
 org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setUserData
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394


    [ https://issues.apache.org/jira/browse/XMLBEANS-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036034#comment-13036034 ] 

Petr Slaby commented on XMLBEANS-376:
-------------------------------------

I have the same problem when using xmlbeans in our Eclipse plugin. The org.w3c.* classes are in conflict with the same classes already loaded by Eclipse boot classloader.

> LinkageError: loader constraint violation ... when resolving method org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setUserData
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-376
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-376
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions:  Version 2.3
>         Environment: OS: Windows XP SP2
> Java: JDK 1.6.0_06
> JBoss 5.0.1 CR1
>            Reporter: Aldrin E Baroi
>            Priority: Minor
>
> I get linkage error in JBoss 5.0.1 CR1 with XMLBean 2.3.0.
> I have fixed the problem by creating xbean.jar from 2.3.0 source by modifying the following in the ANT build.xml file:
>                  <!-- property name="build.compiler" value="javac1.4"/ -->                 <--- commented it out
>                 <property name="javac.target" value="1.5"/>                                         <--- changed value from 1.4 to 1.5
>                 <fileset dir="build/classes/store" excludes="javax/**,org/w3c/**"/>   <--- modified to exclude javax & org/w3c in "xbean.jar" target
> Here is the partial stacktrace:
> 15:45:54,543 INFO  [STDOUT] 2008-07-08 15:45:54,543 HDScanner INFO  NotificationManager  : Loading notifcation configuration...
> 15:45:54,746 ERROR [[/...ELIDED...]] Exception sending context initialized event to listener instance of class [...ELIDED...]
> java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xmlbeans.impl.store.Xobj$NodeXobj.setU
> serData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of org/jboss/classloader/spi/base/BaseC
> lassLoader) of the current class, org/apache/xmlbeans/impl/store/Xobj$NodeXobj, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/UserDataHandler used in the signature
>         at org.apache.xmlbeans.impl.store.Cur.createDomDocumentRootXobj(Cur.java:244)
>         at org.apache.xmlbeans.impl.store.Cur.createDomDocumentRootXobj(Cur.java:233)
>         at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.<init>(Cur.java:2836)
>         ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: boothjason@example.com
For additional commands, e-mail: boothjason@example.com



{'source': 'Apache Software Foundation Public Mail Archives'}