Wires "Actions" tab fails to populate

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

I just recently upgraded my local installation of Presto to version 2.7.0, and I am experiencing some difficulties with Wires.

When using the new Wires interface, the "Actions" tab fails to populate with the available actions (i.e. filter, merge, sort...).  The tab doesn't proceed past the "Loading..." indicator.  Everything else seems to work fine within 2.7.0, and I don't experience this problem with 2.6.1.  Any thoughts on a solution?

Here are some details on my configuration:
 OS: x86_64 GNU/Linux (Ubuntu 9.04)
 Browser: Firefox 3.0.11

Thanks,
Adam

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

Hi Adam,

did you try clearing your browser cache/cookies and reload wires ?

thx,

- Girish@JackBe

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Girish,

Yes, I've tried that already and it didn' help.

-Adam

girish's picture
User offline. Last seen 1 week 3 days ago. Offline
Joined: 09/22/2008
Points: 70
Groups: None

Ok. lets check few things

1. if you have firebug installed, do you see any errors in firebug ? could you copy/paste or take a screenshot and attach it here ?

2. when you launch wires, do you see any errors/exceptions in the server log ? if you don't see any error, please change the log level to DEBUG thru AdminConsole (no need to restart the server) and reload wires and attach the log file ?

 

- Girish@JackBe

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Firebug catches an error when Wires loads (see included .jpg).

The error message is: "Error execution Mashup Script : Error executing script : Constructor for "XML" not found."

I've also attached the corresponding entries in presto.log (2009_06_29-presto.log)

Both files are attached in a zip file (Wires-error-log.zip)

 

 

raj
raj's picture
User offline. Last seen 2 days 15 hours ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

Adam,

In EMML Mashup samples page (http://localhost:8080/presto/dev/index.jsp) , could you check if you are able to execute the following samples successfully ?

- Scripting POJOs

- Scripting using Javascript

 

raj.  chief masher @ jackbe

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Raj,

When attempting to run both of these mashup samples I get the following Server Error in a message box:
"Error execution Mashup Script : Error executing script : Constructor for "XML" not found."

-Adam

raj
raj's picture
User offline. Last seen 2 days 15 hours ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

Adam,

Looks like there is a conflicting js.jar or js-14.jar in your appserver environment. This jar is associated with Rhino Javascript engine. There is a 1.6 versioned js.jar that is shipped with Presto.  However, any presence of pre-1.6 version js.jar  in appserver classpath would lead to the error you are seeing.

Can you do a sweep of your appserver environment to check if there are any js.jar outside of presto ?  If so, could you replace that (after saving it) with the later version js.jar shipped with presto and re-try ?

thanks,

raj

raj.  chief masher @ jackbe

User offline. Last seen 5 weeks 4 days ago. Offline
Joined: 10/27/2008
Points: 0
Groups: None

Adam,

Did you get a chance to do what Raj suggested?

Thanks,

Satya

dev/jackbe.

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Raj,

I believe I made the changes you suggested:

1. Searched for existing js.jar files (js*.jar)
 Found the file in 3 locations:
  1. Presto2.7.0/server/apache-tomcat-5.5.20/webapps/presto/WEB-INF/lib/js.jar
  2. Presto2.6.1/server/apache-tomcat-5.5.20/webapps/presto/WEB-INF/lib/js.jar
  3. /usr/share/java/js.jar (symbolic link to /usr/share/java/js-1.7R1.jar)

2. I replaced occurrence #2 and #3 (the link) with occurrence #1 (2.7.0's version)

3. Cleared the cache and restarted the mashupserver.

I still get the same problems. Wires "Actions" tab doesn't populate and Firebug catches the same errors.

-Adam

User offline. Last seen 3 weeks 5 days ago. Offline
Joined: 09/22/2008
Points: 54
Groups: None

Adam,

It looks like the issue is with some Macros that load in the Wires Actions tab. If you are not too concerned about these specific Macros that use Javascript, you can comment them out from the global.emml-macros file until the issue is resolved.

To do this, open the file -> /<install-dir>/server/apache-tomcat-5.5.20/webapps/presto/WEB-INF/classes/global.emml-macros. This is a XML file containing all the macros used by Wires. Comment out either all the macros or the Macros that use <script> tag. Restart the Server and check if Wires-Actions tab loads now.

Kishore

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Kishore,

I tried your suggestion, first by commenting out just the script blocks and then by commenting all of the macro blocks, but no luck.   All of the same errors exist and the Actions tab still does not load.

-Adam

deepak.alur's picture
User offline. Last seen 1 day 20 hours ago. Offline
Joined: 09/09/2008
Points: 406

Hi,

Can you please attach the global.emml-macros file and reply to this so we can take a look and troubleshoot ?

Mash On!
- deepak.alur | vp engineering at jackbe  | follow me

girish's picture
User offline. Last seen 1 week 3 days ago. Offline
Joined: 09/22/2008
Points: 70
Groups: None

Adam,

are you running both server and wires from 2.7.0 installation ? OR running 2.7.0 wires with 2.6.1 server ?

 

- Girish@JackBe

User offline. Last seen 3 weeks 5 days ago. Offline
Joined: 09/22/2008
Points: 54
Groups: None

Adam,

Can you also invoke the following JUMP request from http://server:port/presto/dev -> Presto API's tab?

{
            "sid": "MacroMetadataService",
            "oid": "Invoke"
}

Are you able to see the results? If not, do you see the same exception in the server log ? This will help us  narrow down the issue to this API.

Thanks,

Kishore

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Deepak - my global.emml-macros file is attached.

Girish - I have both 2.7.0 and 2.6.1 installed locally, but I am running the wires and mashupserver from 2.7.0.  When I was trying to debug this problem early on, I did remove my 2.6.1 installation, but that didn't seem to change anything, so I reinstalled 2.6.1.

Kishore - I tried the jump request you suggested and received the same error "Error loading the data: Error execution Mashup Script : Error executing script : Constructor for "XML" not found.".  I've attached presto.log which contains the corresponding errors.

Thanks,

-Adam

User offline. Last seen 5 weeks 4 days ago. Offline
Joined: 10/27/2008
Points: 0
Groups: None

Hi Adam,

From the stack traces you sent I tried matching the rhino(js.jar) source line numbers we have. It looks different. So it is definitely a different jar from which the relevant rhino classes are being picked up.

In any case, here is what will resolve the problem likely.

1. Endorse js.jar and xbean.jar. [Copy these files to <%JAVA_HOME%\jre\lib\endorsed or pass -Djava.endorsed.dirs="directory_with_js.jar_and_xbean.jar"]

2.Clear the work folder in Tomcat directory.

3. Restart the server.

I hope this solves the problem.

Thanks,

Satya

dev/jackbe

User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 04/13/2009
Points: 30
Groups: None

Satya,

That seemed to fix the problem, thank you. I ended up only replacing my jdk's js.jar with the one supplied with Presto.  I didn't move xbean.jar.  I believe the key was clearing Tomcat's "work" directory.

Raj suggested a fix similar to this earlier in the thread, which most likely would have solved the problem if I cleared Tomcat's work directory after replacing the jar.

Thanks for everyone's help! :)

-Adam

User offline. Last seen 5 weeks 4 days ago. Offline
Joined: 10/27/2008
Points: 0
Groups: None

Adam,

You are welcome to ask any questions anytime. The reason behind asking for the xbean.jar too was because rhino supports E4X through XML beans in all 1.6.x versions. This was to ensure you do not face problems due to some spurious xbean.jar

Thanks,

Satya.

dev/jackbe