Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-2

xjc bombs with NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • current (nightly)
    • None
    • JaxMe Core
    • None
    • Operating System: Windows XP
      Platform: PC
    • 23984

    Description

      Just tried JaxMe on this XSD, it simply died on my with a very uninformatative
      NullPointerException from Ant.

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

      <schema
      xmlns="http://www.w3.org/2001/XMLSchema"
      xml:lang="EN"
      targetNamespace="http://commons.dspc.net/datamodel"
      xmlns:jaxme="http://ispsoft.de/namespaces/jaxme/schema"
      xmlns:data="http://commons.dspc.net/datamodel"
      elementFormDefault="qualified"
      attributeFormDefault="unqualified">

      <!--
      <annotation>
      <documentation>
      Document transmission.
      </documentation>
      <appinfo>
      <jaxme:defaults package="net.dspc.commons.datamodel"/>
      </appinfo>
      </annotation>
      -->

      <element name="DocTransmission">
      <complexType>
      <attribute name="created"/>
      <attribute name="mail-id"/>

      <sequence>

      <element name="Sender">
      <annotation><documentation>
      The person who sent this, and how to reply
      </documentation></annotation>
      <complexType>

      <sequence>
      <element name="e-mail" minOccurs="0" maxOccurs="unbounded"
      type="string">
      <annotation><documentation>e-mail</documentation></annotation>
      </element>
      <element name="phone" minOccurs="0" maxOccurs="unbounded"
      type="string">
      <annotation><documentation>Preferred mobile or landline phone
      number</documentation></annotation>
      </element>
      <element name="fax" minOccurs="0" maxOccurs="unbounded"
      type="string">
      <annotation><documentation>Preferred fax
      number</documentation></annotation>
      </element>
      <element name="crypt-signature" type="string"/>
      </sequence>

      <attribute name="Name">
      <annotation><documentation>The full name including title or
      whatever</documentation></annotation>
      </attribute>
      <attribute name="AccountId"/>
      </complexType>
      </element>

      <element name="Recipient">
      <annotation><documentation>
      The person receiving this. All we need is an account name really
      </documentation></annotation>

      <complexType>
      <attribute name="Name" type="string">
      <annotation><documentation>The full name including title or
      whatever</documentation></annotation>
      </attribute>
      <attribute name="AccountId" type="string"/>
      </complexType>
      </element>

      <element name="Subject" type="string">
      <annotation><documentation>Message subject
      text</documentation></annotation>
      </element>

      <element name="Body">
      <annotation><documentation>
      Message body containing only simple XHTML formatting tags
      </documentation></annotation>

      <complexType>
      <attribute name="html-template">
      <annotation><documentation>Name of the template to use for
      rendering as html</documentation></annotation>
      </attribute>
      <attribute name="text-template"/>
      </complexType>
      </element>

      <element name="Signature" minOccurs="1" maxOccurs="1"
      type="string">
      <annotation><documentation>Message signature
      containing only simple XHTML formatting tags</documentation></annotation>
      </element>

      <element name="Document" minOccurs="1"
      maxOccurs="unbounded">
      <annotation><documentation>Attached
      document</documentation></annotation>
      <complexType><sequence>
      <element name="Title">
      <complexType>
      <attribute name="source"/>
      </complexType>
      </element>
      <element name="Summary">
      <complexType>
      <attribute name="source"/>
      </complexType>
      </element>
      <element name="File">
      <complexType>
      <attribute name="file-name"/>
      <attribute name="folder-name"/>
      <attribute name="mime-type"/>
      </complexType>
      </element>
      <element name="crypt-signature" type="string"/>
      </sequence></complexType>
      </element>

      </sequence></complexType>
      </element>
      </schema>

      <!--

      maybe support these : Return-Path:

      Envelope-to:
      Delivery-date: Wed, 15 Oct 2003 23:22:48 +0100
      Confirmed received trail
      Precedence: bulk
      Reply-To: mailID.henrik@dspc.net
      Message-Id: <E1A9u2Z-0000e6-H4@quartz.w-dns.net>
      Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm

      Received: (qmail 46859 invoked from network); 15 Oct 2003 22:22:33 -
      0000
      From: "Rick Kellogg" <rmkellogg@comcast.net>
      To: <axis-user@ws.apache.org>,
      <erodriguez@nht-norwick.net>
      Subject: RE: change soap messages xml encoding to iso-8859-1
      Date: Wed, 15 Oct 2003 18:22:34 -0400
      -->

      Attachments

        Activity

          People

            Unassigned Unassigned
            hvendelbo@bluprints.com Henrik Vendelbo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: