PRoblem testing EMML samples

Meriem
User offline. Last seen 2 years 16 weeks ago. Offline
Joined: 01/02/2011
Points: 10

Hellow,

I'm new in Mashups, i've problem loading EMML examples.

I dont use presto, but only tomcat with EMML reference engine.

Windows XP
JVM Version: 1.5.0_18
Tomcat Version: Apache Tomcat/5.5.27

I dont have any proxy
installed Mashup Server following EMML guide.
im using a proxy so i moved emml.config in .../emml/WEB-INF/classes
and configured to hold a proxy

when i try to start emmclient from CLI i get the following error.
------
apache-tomcat@teox:~/webapps/emml/WEB-INF/classes$ java emmlclient
http://localhost:8080/emml/twitter
Invoking URL: http://localhost:8080/emml/twitter
Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL: http://localhost:8080/emml/twitter
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(Unknown Source)
        at emmlclient.main(emmlclient.java:24)
------
if i write in browser http://localhost:8080/emml
it returns:

javax.servlet.ServletException: Load Mashups failednull
        org.oma.emml.controller.EMMLServlet.init(EMMLServlet.java:33)
        javax.servlet.GenericServlet.init(GenericServlet.java:212)
        org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
        org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
849)
        org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
454)
        java.lang.Thread.run(Unknown Source)

root cause

java.net.MalformedURLException
        java.net.URL.<init>(Unknown Source)
        java.net.URL.<init>(Unknown Source)
        java.net.URL.<init>(Unknown Source)
        org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
        org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        org.oma.emml.utils.XMLConversionUtils.getDocument
(XMLConversionUtils.java:71)
        org.oma.emml.me.commons.EngineUtils.getRegisteredMashupServices
(EngineUtils.java:200)
        org.oma.emml.me.runtime.MashupLoader.loadMashups(MashupLoader.java:
53)
        org.oma.emml.me.runtime.MashupLoader.<init>(MashupLoader.java:45)
        org.oma.emml.me.runtime.EMMLService.<init>(EMMLService.java:46)
        org.oma.emml.me.runtime.EMMLServiceFactory.createService
(EMMLServiceFactory.java:43)
        org.oma.emml.controller.EMMLServlet.init(EMMLServlet.java:30)
        javax.servlet.GenericServlet.init(GenericServlet.java:212)
        org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
        org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
849)
        org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
454)
        java.lang.Thread.run(Unknown Source)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.20 logs.

-----
Please Help me!
thanks a lot

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 11 hours 13 min ago. Offline
Joined: 08/29/2008
Points: 34

Well, first a basic question -- did you install the mashup samples that come with OMA EMML?

Sara, technical writer/jackbe

 

Meriem
User offline. Last seen 2 years 16 weeks ago. Offline
Joined: 01/02/2011
Points: 10

Hi Sarah,

Thanks for your reply.

Actually, I solved the problem, it was the JVM version, I changed and it works.

Thanks.

Best regards.

flavio.faria
User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 11/06/2010
Points: 10

Hello,

I also have the same problem executing EMML even samples from OMA site.

I´m using tomcat 6 and java 6.

I have following exactly the EMML Reference Runtime Engine steps:

  1. Deploy emml.war
  2. Copy emmlclient.class to web-apps-home/emml/WEB-INF/classes folder
  3. Copy samples (emml files) to web-apps-home/emml/WEB-INF/classes folder
  4. Add the new mashup in the mashup.xml file
  5. execute the command java emmlclient url-for-mashup
  6.  
  7. I tried other tomcat and java version but didn't work

Please help me!

Thanks in advance.

Regards,

Flávio

 

 

raj
User offline. Last seen 6 days 6 hours ago. Offline
Joined: 09/22/2008
Points: 4

 Hi,

Can you post the full stack trace & error message when executing the sample.

raj.  

flavio.faria
User offline. Last seen 32 weeks 1 day ago. Offline
Joined: 11/06/2010
Points: 10

Hey Raj,

follows the error:

java emmlclient http://localhost:8080/emml/twitter.emml
Invoking URL: http://localhost:8080/emml/twitter.emml
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/emml/twitter.emml
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at emmlclient.main(emmlclient.java:24)

 

I also got this error in tomcat log file:

19/08/2012 14:11:25 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Allocate exception for servlet EMMLServlet
java.net.MalformedURLException
    at java.net.URL.<init>(URL.java:601)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.oma.emml.utils.XMLConversionUtils.getDocument(XMLConversionUtils.java:71)
    at org.oma.emml.me.commons.EngineUtils.getRegisteredMashupServices(EngineUtils.java:200)
    at org.oma.emml.me.runtime.MashupLoader.loadMashups(MashupLoader.java:53)
    at org.oma.emml.me.runtime.MashupLoader.<init>(MashupLoader.java:45)
    at org.oma.emml.me.runtime.EMMLService.<init>(EMMLService.java:46)
    at org.oma.emml.me.runtime.EMMLServiceFactory.createService(EMMLServiceFactory.java:43)
    at org.oma.emml.controller.EMMLServlet.init(EMMLServlet.java:30)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)

Thanks for your help.

Best,

Flávio

raj
User offline. Last seen 6 days 6 hours ago. Offline
Joined: 09/22/2008
Points: 4

 Hi Flavio,

 

#1 Can you confirm if the samples (all *.emml files) have been deployed in webapps/emml/WEB-INF/classes folder ? (i.e., NOT in webapps/emml/WEB-INF )

 

#2 If #1 is ok,  enable DEBUG logging in WEB-INF/classes/log4j.properties i.e.,

log4j.rootLogger=DEBUG, stdout

In the log file, you should see debug message that loads each EMML script i.e.,

2012-08-20 16:09:54,030 INFO [org.oma.emml.me.runtime.MashupLoader] - MashupLoader : loading mashups from mashups.xml2012-08-20 16:09:54,049 INFO [org.oma.emml.me.commons.EngineUtils] - Loading Script : rssfilter.emml

..........

The above log message can help us in locating which EMML script fails to load.

hth.

 

 

 

raj.