org.jdom.IllegalNameException

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

I've created a mashup and when I attempt to make a mashlet with it, I get the following error on the console:

09:20:53,093 INFO  [STDOUT] 2009-02-26 09:20:53,093 ERROR [com.jackbe.jbp.jems.services.nsd.MashupServiceNSDBuilder] - <Error generating NSD for Mashu
p Service : MonthlySalesRevenueChart   - The name "1.0" is not legal for JDOM/XML Namespace URIs: Namespace URIs cannot begin with a number.>
org.jdom.IllegalNameException: The name "1.0" is not legal for JDOM/XML Namespace URIs: Namespace URIs cannot begin with a number.

 

I don't know where the "1.0" that is being inserted is coming from, but I don't think it's something that I've added.

0
Your rating: None
raj
raj's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 09/22/2008
Points: 4

Hi Michael,

Can you share this EMML script with us. Just the top portion of EMML script with mashup, operation, input, output elements would do.

raj.  chief masher @ jackbe

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

Hey Raj, thanks for taking the time to look at this.  Let me know if this is not enough.

 

<mashup name="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jackbe.com/2008-03-01/EMMLSchema../src/schemas/EMMLSpec.xsd" xmlns="http://www.jackbe.com/2008-03-01/EMMLSchema" xmlns:macro="http://www.jackbe.com/2008-03-01/EMMLMacro" xmlns:targetNamespace="http://org.casm.service/fusioncharts" xmlns:tns="http://org.casm.service/fusioncharts" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:fus="http://org.casm.service/fusioncharts" xmlns:version="1.0" ><presto-meta name="created-using">Wires</presto-meta><operation name="runMashup" >
<variable name="limitRecords" type="number" default="-2"/>

<inputparam label="numberPrefix" name="numberPrefix" type="string" default="$" id="17">
                            </inputparam>
<variable label="Data" name="Extract_Value_12_out" type="string" default="" parentBlock="Extract_Value_12" id="13">
                            </variable>
<variable label="Data" name="Extract_Value_9_out" type="string" default="" parentBlock="Extract_Value_9" id="10">
                            </variable>
<variable label="Data" name="MonthlySalesRevenue_7_out" type="document" default="" parentBlock="MonthlySalesRevenue_7" id="8">
                            </variable>
<variable label="Data" name="FusionChartsService_3_out" type="document" default="" parentBlock="FusionChartsService_3" id="6">
                            </variable>
<variable label="Data" name="getSingleSeriesColumnChart_3_out" type="document" default="" parentBlock="getSingleSeriesColumnChart_3" id="5">
                            </variable>
<outputparam label="Output" name="MashupOutput" type="" default="" id="2">
                            </outputparam>

raj
raj's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 09/22/2008
Points: 4

Hi Michael,

If you change

xmlns:version="1.0"

to

version="1.0"

you will be able to register & invoke it.

XML Parsers expect the namespace URI in a particular format. Is your "version" a XML attribute ( version="1.0") OR is it really a namespace prefix (xmlns:version="1.0" ) ?

raj.  chief masher @ jackbe

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

Raj, thanks for the reply.  However, I created this mashup in Wires.  I don't know how to edit the emml script for that mashup.  I read in the docs that the emml script is stored in repository (of which I'm running the default HSQLDB), but I'm not sure where to go from there.

raj
raj's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 09/22/2008
Points: 4

Hi Michael,

1.  Is it feasible for you to share the services you are invoking in this Mashup ?  (i.e. WSDL URL, REST url )

2.  This could be a bug, so as a work-around could you hand-edit and register this Mashup manually (using Mashup Studio  or command-line emmlpub.sh/.bat for now ). As you know, view EMML in Wires would give you the EMML Script.

raj.  chief masher @ jackbe

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

Raj, sorry to take so long in getting back to you.

1.  I cannot share the WSDL URL as it is not published anywhere but locally.  However, I could attach the WSDL to this thread, if you'd like to see it.

2.  I was able to copy the EMML script and publish the mashup by hand using Mashup Studio.  It was a good excersize in that I learned quite a bit aobut EMML in the process.  One thing to note is that when I copied the script, there was a bunch of extraneous JavaScript contained in two of my input variables that I had to remove.  I don't believe that it should have been there as things worked fine without it (and Mashup Studio threw errors on the scripts themselves).

 

raj
raj's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 09/22/2008
Points: 4

Hi Michael,

Thanks for the update.

1) Sure, please go ahead and attach the WSDL or email it to me at

raj@jackbe.com

2) Good to know u were able to go ahead with the manual process of registering the EMML script. Are you ok for now ? Any immediate obstacles ?

 

raj.  chief masher @ jackbe