Hello Henry,

 sorry not to get to you sooner.  There was a very similar symptom reported
a week or so ago on this list (
http://www.mail-archive.com/[email protected]/msg00426.html)
which was fixed by using the IBM JDK 1.4.2.  Just a quick check -- in
changing your environment,  have you by any chance switched JDK?

It's a little difficult to diagnose the problem from the exception that you
posted because unfortunately we don't retain the nested exception in
XSDHelper.   I see that you are working with the binary distribution.  Does
that mean it would be difficult for you to patch the code with some
diagnostics?  If so I could send you a replacement jar so that we can see
what the nested exception is if you like.

Regards, Kelvin.


On 12/01/07, Henry LS <[EMAIL PROTECTED]> wrote:

Hi all,

I am trying to use the example "CreateDataObjectFromXsdAndXmlFiles.java"
from "tuscany-sdo-1.0-incubator-M2-bin"  in my application.
When I run it alone with my xsd and xml files it worked just fine. however
when I rewrite the Main method to a public method and call it from
somewhere
else in my project, I got the following error... any idea?

Cheers
HS

Attempting to define types using resource myxsd.xsd
Obtained Input Stream from resoruce
Exception caught defining Types from resoruce stream to myxsd.xsd
java.lang.IllegalArgumentException:
org.eclipse.emf.ecore.impl.EDataTypeImpl
java.lang.IllegalArgumentException:
org.eclipse.emf.ecore.impl.EDataTypeImpl
    at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(
XSDHelperImpl.java
:213)
    at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(
XSDHelperImpl.java
:172)
    at

com.myapp.system.CreateDataObjectFromXsdAndXmlFiles.defineTypeUsingXsdResource
(CreateDataObjectFromXsdAndXmlFiles.java:49)
    ...

Closed input stream


Reply via email to