Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Preview errors
kailashrawat
Hi am getting this error while previewing -
org.xml.sax.SAXParseException:The namespace name declared for prefix "ns1" may not be empty. Message being parsed:
Any help on this would be really appriciated ..
Note: Errors are poping up after the livesite was upgraded, they work fine with older version.
Kailash
Find more posts tagged with
Comments
Migrateduser
Previewing what?
(1) Component, post component code
(2) page, find the component causing error, and paste code.
As you said this is a SAX Exception, can you find out where this ns1 namespace is declared and why is it defined empty? Since you haven't provided any versions the error might be because of a library upgrade.
-S
kailashrawat
Hi snkmoorthy,
thanks for the reply, here is the complete background ...
Background: we had LS 2 + version in solaris 8, now we migrated it to LS 3+ in solaris 10, so after migration this issue crops up in existing component which is running fine in old enviornment.
namespace "ns1: is declared well in appearance xsl, its when i preview the component, it throws that SAX exception error.
please check the attachment for complete background with code extract.
Any help will be greatly appriciated.
thanks,
Kailash
ads66
Check your code. It seems there is a tag missing for the Datum. OR Try validating this code using XMLSpy or something.
Thanks,
A
kailashrawat
Hi,
its just a code extract, i know its not a complete code, but in my system the code is fine syntactically that i can assure is good .... i dont know what need to be changed in LS3 Vs LS2 (since its running fine in this version).
regards,
kailash
tec_iwov
is there a stack trace with the error?
kailashrawat
Hi,
doesnt really know where you can find the stack trace, but the error displayed while previewing the component is -
org.xml.sax.SAXParseException:The namespace name declared for prefix "ns1" may not be empty. Message being parsed:
regards,
Kailash
kailashrawat
Hi Guys,
i am still struggling, it would be great if somebody can provide any clue on this.
thanks in advance,
Kailash
AlexC
This (below) is not well formed XML... Can you email me the exact contents of that component?
[html]
<ns1:getDelayedDetailedQuotes xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:quotetypes="urn:schwab:sch.core.marketdata:io" xmlns:ns1="urn:schwab:sch.core.marketdata.detailedquoteservice">
<Datum ID="Message" Name="Message" Type="String"><![CDATA[<ns1:getDelayedDetailedQuotes xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:quotetypes="urn:schwab:sch.core.marketdata:io" xmlns:ns1="urn:schwab:sch.core.marketdata.detailedquoteservice">
<detailedQuoteServiceRequest>
<locationId>003</locationId>
<channelId>SW</channelId>
<requesterId>00000000</requesterId>
<requesterIdTypeCd>A</requesterIdTypeCd>
<symbols>$INDU</symbols>
<symbols>SCHW</symbols>
<symbols>$COMPQ</symbols>
<symbols>$SPX</symbols>
<symbols>$SNX</symbols>
</detailedQuoteServiceRequest>
</ns1:getDelayedDetailedQuotes>
[/html]