Null error when running samples.

8 views
Skip to first unread message

Mo

unread,
Oct 13, 2009, 4:19:35 PM10/13/09
to Open Mashup Alliance Interest Group
Hi there,
I'm trying to run the sample via command line and I'm getting the
following error:
*****************************
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\emml
\WEB-INF\clas
ses>java emmlclient http://localhost:8082/emml/rssfilter
Invoking URL: http://localhost:8082/emml/rssfilter
<error>
<errorMessage>1002</errorMessage>
<errorMessage><![CDATA[null]]> </errorMessage>
</error>
***************************************

Any help will be match appreciated. I'm new to this.

Regards,
Mo

Sara Mitchell

unread,
Oct 14, 2009, 2:11:58 PM10/14/09
to open-mashu...@googlegroups.com
First, just to check:

* Did you download the samples from the site? They are in a separate ZIP file which you must download.

* Did you unzip the samples to the {web-apps-home}/emml/WEB-INF/classes?

Sara

--- On Tue, 10/13/09, Mo <mou...@gmail.com> wrote:

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

raj

unread,
Oct 14, 2009, 2:12:07 PM10/14/09
to open-mashu...@googlegroups.com
Hi,


a) Have you deployed EMML samples ?

 1.  Download EMML samples from http://www.openmashup.org/download.
 2. Expand the samples ZIP file to the web-apps-home/emml/WEB-INF/classes folder.

b) Can u send the exception stack trace from tomcat console log ?


thanks,
raj

Mo

unread,
Oct 14, 2009, 2:33:49 PM10/14/09
to Open Mashup Alliance Interest Group
Raj,
Thank you for the quick reply. Here the exception stack:
*********************
Started initialization
JDBC connection created
Completed initialization: 985ms
2009-10-14 14:31:20,794 ERROR [org.oma.emml.controller.EMMLServlet] -
<Error Executing Mashup null>
EDU.oswego.cs.dl.util.concurrent.TimeoutException
at EDU.oswego.cs.dl.util.concurrent.FutureResult.timedGet(Unknown
Source)
at EDU.oswego.cs.dl.util.concurrent.TimedCallable.call(Unknown
Source)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.execute
(DirectInvokeCommand.java:91)
at org.oma.emml.me.runtime.commands.AbstractCommand.callExecute
(AbstractCommand.java:66)
at org.oma.emml.me.runtime.EMMLInterpreter.execute
(EMMLInterpreter.java:143)
at org.oma.emml.me.runtime.MashupEngine.executeScript
(MashupEngine.java:86)
at org.oma.emml.me.runtime.MashupEngine.executeScript
(MashupEngine.java:69)
at org.oma.emml.me.runtime.EMMLService.executeMashupScript
(EMMLService.java:91)
at org.oma.emml.me.runtime.EMMLService.executeMashup(EMMLService.java:
85)
at org.oma.emml.controller.EMMLServlet.doGet(EMMLServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
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:286)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)
**************
Regards,
Mo

On Oct 14, 2:12 pm, raj <rajmo...@jackbe.com> wrote:
> Hi,
>
> a) Have you deployed EMML samples ?
>
> http://www.openmashup.org/omadocs/v1.0/emml/oma-readme.html
>  1.  Download EMML samples fromhttp://www.openmashup.org/download.
>  2. Expand the samples ZIP file to the web-apps-home/emml/WEB-INF/classes
> folder.
>
> b) Can u send the exception stack trace from tomcat console log ?
>
> thanks,
> raj
>
>
>
> On Tue, Oct 13, 2009 at 1:19 PM, Mo <mouk...@gmail.com> wrote:
>
> > Hi there,
> > I'm trying to run the sample via command line and I'm getting the
> > following error:
> > *****************************
> > C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\emml
> > \WEB-INF\clas
> > ses>java emmlclienthttp://localhost:8082/emml/rssfilter
> > Invoking URL:http://localhost:8082/emml/rssfilter
> > <error>
> > <errorMessage>1002</errorMessage>
> > <errorMessage><![CDATA[null]]> </errorMessage>
> > </error>
> > ***************************************
>
> > Any help will be match appreciated. I'm new to this.
>
> > Regards,
> > Mo- Hide quoted text -
>
> - Show quoted text -

Mo

unread,
Oct 14, 2009, 2:38:09 PM10/14/09
to Open Mashup Alliance Interest Group
Sara,
Thank you for the quick response.
Yes, I've done all that. Here is the exception I'm getting:
***********************
Regards,
Mohamed


On Oct 14, 2:11 pm, Sara Mitchell <samitche...@yahoo.com> wrote:
> First, just to check:
>
> * Did you download the samples from the site? They are in a separate ZIP file which you must download.
>
> * Did you unzip the samples to the {web-apps-home}/emml/WEB-INF/classes?
>
> Sara
>
> --- On Tue, 10/13/09, Mo <mouk...@gmail.com> wrote:
>
>
>
>
>
> > From: Mo <mouk...@gmail.com>
> > Subject: [oma-interest] Nullerrorwhen running samples.
> > To: "Open Mashup Alliance Interest Group" <open-mashu...@googlegroups.com>
> > Date: Tuesday, October 13, 2009, 1:19 PM
>
> > Hi there,
> > I'm trying to run the sample via command line and I'm
> > getting the
> > followingerror:
> > *****************************
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\emml
> > \WEB-INF\clas
> > ses>java emmlclienthttp://localhost:8082/emml/rssfilter
> > Invoking URL:http://localhost:8082/emml/rssfilter
> > <error>
> > <errorMessage>1002</errorMessage>
> > <errorMessage><![CDATA[null]]>
> > </errorMessage>
> > </error>
> > ***************************************
>
> > Any help will be match appreciated. I'm new to this.
>
> > Regards,
> > Mo
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com- Hide quoted text -

raj

unread,
Oct 14, 2009, 3:11:32 PM10/14/09
to open-mashu...@googlegroups.com
What is the endpoint you are invoking in directinvoke ?  Looks like it is unresponsive ?  Do you have any proxy in your environment ? If so, it needs to be configured.

raj.

Mo

unread,
Oct 15, 2009, 7:34:21 AM10/15/09
to Open Mashup Alliance Interest Group
Raj,
There is no proxy settings in my environment. If I run the endpoint
(endpoint="http://hotjobs.yahoo.com/rss/0/USA/-/-/-/java") directly in
a browser, it displays the list of jobs. However I get the error when
I run it through the command line (java emmlclient http://localhost:8082/emml/rssfilter).

Regards,
Mo
> > > - Show quoted text -- Hide quoted text -

raj

unread,
Oct 15, 2009, 8:43:38 PM10/15/09
to open-mashu...@googlegroups.com
What happens when u invoke the hotjobs endpoint directly as follows ?


thanks,
raj

Mo

unread,
Oct 19, 2009, 8:00:54 AM10/19/09
to Open Mashup Alliance Interest Group
Raj,
I get the following error:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\emml
\WEB-INF\clas
ses>java emmlclient "http://hotjobs.yahoo.com/rss/0/USA/-/-/-/java"
Invoking URL: http://hotjobs.yahoo.com/rss/0/USA/-/-/-/java
Exception in thread "main" java.net.ConnectException: Connection timed
out: conn
ect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(Unknown Sour
ce)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
Source)
at emmlclient.main(emmlclient.java:22)

Regards,
Mo

raj

unread,
Oct 21, 2009, 5:28:50 PM10/21/09
to open-mashu...@googlegroups.com
emmlclient is a bare-bone HTTPClient. The fact this invocation results in Connection timed out, indicates some sort of network issue in your environment. Can u check with your administrator for any Proxy Server in your setup. Does your browser have any proxy settings ?

thanks,
raj 
Reply all
Reply to author
Forward
0 new messages