users@glassfish.java.net

RE: Issue with QName

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 1 Jun 2010 17:02:59 -0400

when you create a QName you need to supply a non-null localName attribute and a namespaceURI attribute

NamespaceURI is the URI which denotes the implemented namespace
http://java.sun.com/j2ee/1.4/docs/api/javax/xml/namespace/QName.html#QName%28java.lang.String,%20java.lang.String%29

 

An example is localPart assignment of 32.18 and namespace is http://ecommerce.example.org/schema'
  <edi:price xmlns:edi='http://ecommerce.example.org/schema' units='Euro'>32.18</edi:price>


Namespaces in XML 1.0 Spec discusses what constitutes a namespace as well as providing applicable examples

http://www.w3.org/TR/REC-xml-names/#ns-qualnames

 

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



 

> Date: Tue, 1 Jun 2010 12:05:35 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Issue with QName
>
> Hi,
>
> I have deployed my application in Glassfish V2.1.
>
> Rarely I get the below exception.
> org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
>
> When the request been reprocessed, there was no error.
>
> Kindly help in finding the cause of this issue..
>
> Thanks & Regards,
> nachaps
> [Message sent by forum member 'nachaps']
>
> http://forums.java.net/jive/thread.jspa?messageID=472310
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
                                               
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2