users@jaxb.java.net

RE: Re: UTF-8 charcter in tag name

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Tue, 2 Feb 2010 10:43:25 +0100

Hi

 I would copy the JAXB jar files into the %JRE_HOME%/lib/endorsed when
ever updating to a new java release.

 This makes sure that you use the same JAXB version no matter what is
packaged with the java version you are installing.

 So jaxb-xjc-2.2.jar, jaxb-impl-2.2.jar and jaxb-api-2.2.jar copy to
your %JRE_HOME%/lib/endorsed.

 %JRE_HOME%/lib/endorsed may not exists so create it.

Lulseged

-----Original Message-----
From: Noxi [mailto:noxilim2_at_web.de]
Sent: den 2 februari 2010 10:37
To: users_at_jaxb.dev.java.net
Subject: Re: UTF-8 charcter in tag name



Wolfgang Laun-2 wrote:
>
> Use this code to unmarshal:
>
> import org.xml.sax.InputSource;
> import org.apache.xerces.parsers.SAXParser;
> import javax.xml.transform.sax.SAXSource;
>
> InputSource inpsrc = new InputSource( "some.xml" ); SAXParser parser =

> new SAXParser(); SAXSource theSource = new SAXSource( parser, inpsrc
> ); Object obj = m.unmarshal( theSource );
>
>

This code worked well but after an update from JDK 1.6.0_16 to 1.6.0_18
now I get:

java.lang.UnsupportedOperationException: Cannot create XMLStreamReader
or XMLEventReader from a javax.xml.transform.sax.SAXSource
        at
com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSour
ce(XMLInputFactoryImpl.java:302)
        at
com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XM
LInputFactoryImpl.java:145)

How to fix this one?
Going back to 1.6.0_16 works but an update will be needed sooner or
later.

Thanks for any idea.
Noxi
--
View this message in context:
http://old.nabble.com/UTF-8-charcter-in-tag-name-tp26302584p27417663.htm
l
Sent from the java.net - jaxb users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net