Skip to main content

Issue with QName

1 reply [Last post]
nachaps
Offline
Joined: 2008-12-29
Points: 0

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Martin Gainty

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#QNa...

An example is localPart assignment of 32.18 and namespace is http://ecommerce.example.org/schema'
32.18

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@javadesktop.org
> To: users@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@glassfish.dev.java.net
> For additional commands, e-mail: users-help@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:...
[att1.html]