You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Raghu Subramanyam <sr...@hotmail.com> on 2003/12/23 08:44:20 UTC

The XSObject argument must not be null

Hi ,

I am trying to compile the JXDD.XSD 
http://www.it.ojp.gov/jxdd/prerelease/3.0.0.1 ,
But i got the following error :

The XSObject argument must not be null.

I am not able to figure out the exact prblm.
Even i tried to compile the same wit JAXB , it xjc task excuted for 5 hrs 
and
didnt even generate a single file.

any help would be greatly appreciated,
thanks in advance

Raghu

_________________________________________________________________
Spread festive cheer. Download X'mas wallpapers. 
http://server1.msn.co.in/sp03/christmas/downloads.asp Get into the mood!


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: JaxMe online (Was: The XSObject argument must not be null)

Posted by Davanum Srinivas <di...@yahoo.com>.
there are options...you need to ask on infrastructure mailing list once you have the webapp ready
(there are 3-4 machines in the pipeline that can be used potentially for such things)

-- dims

--- Jochen Wiedmann <jo...@ispsoft.de> wrote:
> 
> Hi,
> 
> first of all, I would like to thank Ias for his evaluation. This message has
> a slightly different reason, though.
> 
> It seems to happen, that people have quite difficult schemas from time to
> time, typically accessible via HTTP. To reproduce the problem, we typically
> need to
> 
> - create a small build script (as Ias did)
> - run it, possibly with HTTP proxy settings
> - find some problem, load more schemas
> - ...
> 
> This takes time. I wonder whether we can reduce the time for the future
> while at the same time offering a valuable service.
> 
> The JAXB RI supports an online site. This online site allows to enter the
> URL of a schema or even the schema itself. The application returns a ZIP
> file with the generated sources.
> 
> Writing a web archive doing the same things should not be too difficult.
> The question is
> 
> a) do we have the infrastructure to run the application somewhere (Dims?
>    Robert?)
> b) is anyone volunteering to do this job?
> 
> 
> Jochen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: jaxme-dev-help@ws.apache.org
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


JaxMe online (Was: The XSObject argument must not be null)

Posted by Jochen Wiedmann <jo...@ispsoft.de>.
Hi,

first of all, I would like to thank Ias for his evaluation. This message has
a slightly different reason, though.

It seems to happen, that people have quite difficult schemas from time to
time, typically accessible via HTTP. To reproduce the problem, we typically
need to

- create a small build script (as Ias did)
- run it, possibly with HTTP proxy settings
- find some problem, load more schemas
- ...

This takes time. I wonder whether we can reduce the time for the future
while at the same time offering a valuable service.

The JAXB RI supports an online site. This online site allows to enter the
URL of a schema or even the schema itself. The application returns a ZIP
file with the generated sources.

Writing a web archive doing the same things should not be too difficult.
The question is

a) do we have the infrastructure to run the application somewhere (Dims?
   Robert?)
b) is anyone volunteering to do this job?


Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


RE: The XSObject argument must not be null

Posted by Ias <ia...@tmax.co.kr>.
> 
> Hi ,
> 
> I am trying to compile the JXDD.XSD
> http://www.it.ojp.gov/jxdd/prerelease/3.0.0.1 , But i got the 
> following error :
> 
> The XSObject argument must not be null.
> 
> I am not able to figure out the exact prblm.
> Even i tried to compile the same wit JAXB , it xjc task 
> excuted for 5 hrs and didnt even generate a single file.
> 

I tested jxdds.xsd with JaxMe's xjc by the following script:
    <xjc target="${src}/java">
      <schema dir="${src}/schema" includes="*.xsd"/>
      <produces dir="${src}/java"
includes="gov/ojp/it/www/jxdd/prerelease/3.0.0.1/*"/>
    </xjc>
where ${src} is an arbitrary path for both generated Java files and target
schema file(s).

The result is 

BUILD FAILED
D:\apache\ws\ws-jaxme-local\scratchpad\build.xml:75: org.apache.ws.jaxme.xs.
parser.impl.LocSAXException: At file:/D:/apache/ws/ws-jaxme-local/scratchp
ad/src/schema/jxdds.xsd, line 4250, column 66: The referenced element
{http://www.it.ojp.gov/jxdd/prerelease/post-
canada/1.0.0.0}CanadianProvinceCodeT
ypeElement is undefined.

Here's the referenced schema:

<?xml version='1.0' encoding='UTF-8'?>

<xsd:schema 
    attributeFormDefault='unqualified'
    elementFormDefault='qualified' 
    targetNamespace='http://www.it.ojp.gov/jxdd/prerelease/post-
canada/1.0.0.0' 
    xmlns='http://www.it.ojp.gov/jxdd/prerelease/post-canada/1.0.0.0' 
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
>

<!--Define Types-->
    <xsd:simpleType name='CanadianProvinceCodeType'>
      <xsd:restriction base='xsd:token'>
        <xsd:enumeration value='AB' />
        <xsd:enumeration value='BC' />
        <xsd:enumeration value='MB' />
        <xsd:enumeration value='NB' />
        <xsd:enumeration value='NL' />
        <xsd:enumeration value='NS' />
        <xsd:enumeration value='NT' />
        <xsd:enumeration value='NU' />
        <xsd:enumeration value='ON' />
        <xsd:enumeration value='PE' />
        <xsd:enumeration value='QC' />
        <xsd:enumeration value='SK' />
        <xsd:enumeration value='YT' />
      </xsd:restriction>
    </xsd:simpleType>
</xsd:schema>

There's no CanadianProvinceCodeTypeElement declaration referenced by
jxdds.xsd. I recommend validating jxdds.xsd with all the schemas it imports
before compiling it by xjc. It might help you working with Sun's JAXB RI as
well.

Regards,

Ias


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org