Exception when running samples

23 views
Skip to first unread message

Christina

unread,
Oct 23, 2009, 11:16:22 AM10/23/09
to Open Mashup Alliance Interest Group
Hi Raj,

I am new in mashups....
I am running Windows Server 2003. I downloaded and installed java 6
and tomcat 5.5.28 (both running ok) but when i am trying to run any of
the samples (based on the instructions provided) i get the following
error:
C:\Program Files (x86)\apache-tomcat-5.5.28\webapps\emml\WEB-INF
\classes>java emmlclient http://localhost:8080/emml/rssfilter
Invoking URL: http://localhost:8080/emml/rssfilter
Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL: http://localhost:8080/emml/rssfilter
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1313)
at emmlclient.main(emmlclient.java:24)

I would really appreciate any help on that.

Many thanks
Christina

raj

unread,
Oct 23, 2009, 12:41:36 PM10/23/09
to open-mashu...@googlegroups.com
Hi Christina,

There must be a exception stack trace in tomcat console/log. Can u please send that.

thanks,
raj

Christina

unread,
Oct 26, 2009, 5:14:03 AM10/26/09
to Open Mashup Alliance Interest Group
Hi Raj,

Here is the output of Tomcat's console when i am trying to start
Tomcat...

Oct 26, 2009 9:04:12 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_16\jre\bin;.;C:
\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files
(x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:
\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual
Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS
\system32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\Liquid Technologies
\Liquid XML Studio 2009\XmlDataBinder7\Redist7\cpp\win32\bin;C:
\Program Files (x86)\Java\jdk1.6.0_16\bin
Oct 26, 2009 9:04:12 AM org.apache.coyote.http11.Http11BaseProtocol
init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 26, 2009 9:04:12 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1562 ms
Oct 26, 2009 9:04:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 26, 2009 9:04:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Oct 26, 2009 9:04:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 26, 2009 9:04:13 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive emml.war
2009-10-26 09:04:17,993 ERROR [org.apache.catalina.core.ContainerBase.
[Catalina]
.[localhost].[/emml]] - <Servlet /emml threw load() exception>
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:1139)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3996)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR
(HostConfig.java:831)
at org.apache.catalina.startup.HostConfig.deployWARs
(HostConfig.java:720)
at org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start
(HostConfig.java:1150)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:
552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
433)
Oct 26, 2009 9:04:18 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 26, 2009 9:04:18 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 26, 2009 9:04:18 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Oct 26, 2009 9:04:18 AM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Oct 26, 2009 9:04:18 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6453 ms

Many thanks,
Christina

On Oct 23, 4:41 pm, raj <rajmo...@jackbe.com> wrote:
> Hi Christina,
>
> There must be a exception stack trace in tomcat console/log. Can u please
> send that.
>
> thanks,
> raj
>
>
>
> On Fri, Oct 23, 2009 at 8:16 AM, Christina <m.christ...@gmail.com> wrote:
>
> > Hi Raj,
>
> > I am new in mashups....
> > I am running Windows Server 2003. I downloaded and installed java 6
> > and tomcat 5.5.28 (both running ok) but when i am trying to run any of
> > the samples (based on the instructions provided) i get the following
> > error:
> > C:\Program Files (x86)\apache-tomcat-5.5.28\webapps\emml\WEB-INF
> > \classes>java emmlclienthttp://localhost:8080/emml/rssfilter
> > Invoking URL:http://localhost:8080/emml/rssfilter
> > Exception in thread "main" java.io.IOException: Server returned HTTP
> > response code: 500 for URL:http://localhost:8080/emml/rssfilter
> >        at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> > (HttpURLConnection.java:1313)
> >        at emmlclient.main(emmlclient.java:24)
>
> > I would really appreciate any help on that.
>
> > Many thanks
> > Christina- Hide quoted text -
>
> - Show quoted text -

Christina

unread,
Oct 26, 2009, 6:03:47 AM10/26/09
to Open Mashup Alliance Interest Group
Hi again,

I just remembered that I am using Proxy to connect to the internet...
So, i modified the emml.config file which now looks like this:

service.timeout=20000
httpProxy.enable=true
httpProxy.host=js000525
httpProxy.port=8080
httpProxy.user= 'my user name'
httpProxy.password= 'my password'
httpProxy.credentialsType=
httpProxy.ntDomain=
httpProxy.bypassIPList=127.0.0.1
httpProxy.bypassHostList=localhost
httpProxy.bypassDomainList=

So, now when i start tomcat i dont get the previous error and the log
is as follows:

Oct 26, 2009 9:51:36 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_16\jre\bin;.;C:
\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x8
6)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files
\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS
\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:
\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program
Files (x86)\Liquid Technologies\Liquid XML Studio
2009\XmlDataBinder7\Redist7\cpp\win32\bin;C:\Program Files (x86)\Java
\jdk1.6.0_16\bin
Oct 26, 2009 9:51:36 AM org.apache.coyote.http11.Http11BaseProtocol
init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 26, 2009 9:51:36 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 250 ms
Oct 26, 2009 9:51:36 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 26, 2009 9:51:36 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Oct 26, 2009 9:51:36 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 26, 2009 9:51:36 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive emml.war
Oct 26, 2009 9:51:37 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 26, 2009 9:51:37 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 26, 2009 9:51:37 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/0 config=null
Oct 26, 2009 9:51:37 AM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Oct 26, 2009 9:51:37 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1078 ms

But when I am trying to invoke the 'twitter' sample (which i have
already put it under webapps-home\emml\WEB-INF\classes folder) by
typing on my browser the foolowing url address ' http://localhost:8080/emml/twitter
' the Tomcat's log says:

2009-10-26 09:56:11,754 ERROR
[org.oma.emml.me.runtime.commands.DirectInvokeCommand] - <Error
invoking external service : Connection timed out:
connect>org.oma.emml.me.commons.EMMLException: Connection timed out:
connect
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:209)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:102)
at org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invoke
(ExternalServiceInvoker.java:64)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.invoke
(DirectInvokeCommand.java:149)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand$1.call
(DirectInvokeCommand.java:81)
at EDU.oswego.cs.dl.util.concurrent.FutureResult$1.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at java.net.PlainSocketImpl.connectToAddress
(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:246)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:79)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:121)
at org.apache.commons.httpclient.HttpConnection.open
(HttpConnection.java:706)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry
(HttpMethodDirector.java:386)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod
(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:324)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:164)
... 6 more
2009-10-26 09:56:11,769 ERROR [org.oma.emml.controller.EMMLServlet] -
<Error Executing Mashup Error executing directinvoke : Error invoking
external service : Connection timed out: connect [ Line # 12]
(<directinvoke endpoint="http://search.twitter.com/search.atom?q=
{$query}" outputvariable="tweets"/>)>
org.oma.emml.me.commons.EMMLException: Error executing directinvoke :
Error invoking external service : Connection timed out: connect
[ Line # 12]
(<directinvoke endpoint="http://search.twitter.com/search.atom?q=
{$query}" outputvariable="tweets"/>)
at org.oma.emml.me.runtime.EMMLInterpreter.execute
(EMMLInterpreter.java:150)
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:
627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.oma.emml.me.commons.EMMLException: Error executing
directinvoke :
Error invoking external service : Connection timed out: connect
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.execute
(DirectInvokeCommand.java:100)
at org.oma.emml.me.runtime.commands.AbstractCommand.callExecute
(AbstractCommand.java:66)
at org.oma.emml.me.runtime.EMMLInterpreter.execute
(EMMLInterpreter.java:143)
... 21 more
Caused by: org.oma.emml.me.commons.EMMLException: Error invoking
external service : Connection timed out: connect
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.invoke
(DirectInvokeCommand.java:205)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand$1.call
(DirectInvokeCommand.java:81)
at EDU.oswego.cs.dl.util.concurrent.FutureResult$1.run(Unknown
Source)
... 1 more
Caused by: org.oma.emml.me.commons.EMMLException: Connection timed
out: connect
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:209)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:102)
at org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invoke
(ExternalServiceInvoker.java:64)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.invoke
(DirectInvokeCommand.java:149)
... 3 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at java.net.PlainSocketImpl.connectToAddress
(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:246)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:79)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:121)
at org.apache.commons.httpclient.HttpConnection.open
(HttpConnection.java:706)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry
(HttpMethodDirector.java:386)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod
(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:324)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:164)
... 6 more

and i get the following message on the browser

<error>
<errorMessage>1002</errorMessage>
<errorMessage><![CDATA[Error executing directinvoke : Error invoking
external service : Connection timed out: connect [ Line # 12]
(<directinvoke endpoint="http://search.twitter.com/search.atom?q=
{$query}" outputvariable="tweets"/>)]]> </errorMessage>
</error>

Thank you again
Christina
> > - Show quoted text -- Hide quoted text -

Christina

unread,
Oct 26, 2009, 6:52:33 AM10/26/09
to Open Mashup Alliance Interest Group
By the wat, when i am trying to access the 'directinvoke
endpoint' (http://search.twitter.com/search.atom?q='java') works fine!

Christina
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createS­ocket
> (DefaultProtocolSocketFactory.java:79)
>         at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createS­ocket
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createS­ocket
> (DefaultProtocolSocketFactory.java:79)
>         at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createS­ocket

Christina

unread,
Oct 26, 2009, 7:46:36 AM10/26/09
to Open Mashup Alliance Interest Group
Ok, I think I found what the problem is...
the emml.config file was not at the correct folder
So, now when i type 'http://localhost:8080/emml/twitter' on the
browser i get something like that:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="HTML Tidy, see www.w3.org" name="generator"/>
<title>Error Message</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/
>
<style id="L_default_1" type="text/css">A {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #005a80; FONT-FAMILY:
tahoma
}
A:hover {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0d3372; FONT-FAMILY:
tahoma
}
TD {
FONT-SIZE: 8pt; FONT-FAMILY: tahoma
}
TD.titleBorder {
BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid;
PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN:
middle; BORDER-LEFT: #955319 0px solid; COLOR: #955319; BORDER-BOTTOM:
#955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-
COLOR: #d2b87a; TEXT-ALIGN: left
}

etc etc etc

<ul class="adminList">
<li id="L_default_11">Error Code: 407 Proxy
Authentication Required. The ISA Server requires authorization to
fulfill the request. Access to the Web Proxy service is denied. (12209)
</li>
<li id="L_default_12">IP Address: 192.168.5.51</li>
<li id="L_default_13">Date: 26/10/2009 11:29:50</li>
<li id="L_default_14">Server: js000525.jobserve.com</li>
<li id="L_default_15">Source: proxy</li>
</ul>

I guess this is not the expected output but at least I know what the
problem is....the proxy's authentication.
Am i correct?

However, the Tomcat's log still gets some errors probably due to
invalid authorisation:

2009-10-26 11:14:47,752 ERROR [HttpProxyManager.class] - <Invalid
server URL...using given value as server host>
2009-10-26 11:14:47,830 ERROR
[org.apache.commons.httpclient.HttpMethodDirector]
- <Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials>
org.apache.commons.httpclient.auth.InvalidCredentialsException:
Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate
(NTLMScheme.java:331)
at
org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy
(HttpMethodDirector.java:319)
at
org.apache.commons.httpclient.HttpMethodDirector.authenticate
(HttpMethodDirector.java:231)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod
(HttpMethodDirector.java:169)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod
(HttpClient.java:324)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:164)
at
org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invokeRESTService
(ExternalServiceInvoker.java:102)
at org.oma.emml.me.runtime.helper.ExternalServiceInvoker.invoke
(ExternalServiceInvoker.java:64)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand.invoke
(DirectInvokeCommand.java:149)
at org.oma.emml.me.runtime.commands.DirectInvokeCommand$1.call
(DirectInvokeCommand.java:81)
at EDU.oswego.cs.dl.util.concurrent.FutureResult$1.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:619)
line 65 column 39 - Error: <id> is not recognized!
line 65 column 89 - Error: <id> is not recognized!
line 66 column 30 - Error: <id> is not recognized!
line 73 column 1 - Error: <id> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

Christina
> ...
>
> read more »- Hide quoted text -

Christina

unread,
Oct 26, 2009, 10:56:33 AM10/26/09
to Open Mashup Alliance Interest Group
I think i fixed it...

now when i type 'http://localhost:8080/emml/twitter' i get something
like the following...(i am searching for the string 'mashup')
<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom"
xmlns:google="http://base.google.com/ns/1.0"
xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/"
xmlns:twitter="http://api.twitter.com/">
<id>tag:search.twitter.com,2005:search/mashup</id>
<link href="http://search.twitter.com/search?q=mashup"
rel="alternate" type="text/html"/>
<link href="http://search.twitter.com/search.atom?q=mashup"
rel="self" type="application/atom+xml"/>
<title>mashup - Twitter Search</title>
<link href="http://search.twitter.com/opensearch.xml" rel="search"
type="application/opensearchdescription+xml"/>
<link
href="http://search.twitter.com/search.atom?
q=mashup&amp;since_id=5173828318"
rel="refresh" type="application/atom+xml"/>
<twitter:warning>since_id removed for pagination.</twitter:warning>
<updated>2009-10-26T14:22:52Z</updated>
<openSearch:itemsPerPage>15</openSearch:itemsPerPage>
<link
href="http://search.twitter.com/search.atom?
max_id=5173828318&amp;page=2&amp;q=mashup"
rel="next" type="application/atom+xml"/>
<entry>
<id>tag:search.twitter.com,2005:5173828318</id>
<published>2009-10-26T14:22:52Z</published>
<link href="http://twitter.com/dapswebsite/statuses/5173828318"
rel="alternate" type="text/html"/>
<title>RT @un_coached1 Biggie Smalls Vs. Thomas the Tank Engine:
The Best Hip Hop/Kids Show Mashup Ever http://bit.ly/GnwSb</title>
<content type="html">RT &lt;a href="http://twitter.com/
un_coached1"&gt;@un_coached1&lt;/a&gt; Biggie Smalls Vs. Thomas the
Tank Engine: The Best Hip Hop/Kids Show &lt;b&gt;Mashup&lt;/b&gt; Ever
&lt;a href="http://bit.ly/GnwSb"&gt;http://bit.ly/GnwSb&lt;/a&gt;</
content>
<updated>2009-10-26T14:22:52Z</updated>
<link
href="http://a1.twimg.com/profile_images/60646858/
dogandpony_normal.jpg"
rel="image" type="image/png"/>
<twitter:source>&lt;a href="http://www.tweetdeck.com/"
rel="nofollow"&gt;TweetDeck&lt;/a&gt;</twitter:source>
<twitter:lang>en</twitter:lang>
<author>
<name>dapswebsite (Dog and Pony Show)</name>
<uri>http://twitter.com/dapswebsite</uri>
</author>
</entry>
etc etc etc

i guess this is what i should expect..isn't it?

however i still get an error (tomcat's log) which is: 2009-10-26
14:27:56,293 ERROR [HttpProxyManager.class] - <Invalid server
URL...using given value as server host> (at least is only 1 line)

I would appreciate any feedback.

Regards,
Christina



On Oct 26, 11:46 am, Christina <m.christ...@gmail.com> wrote:
> Ok, I think I found what the problem is...
> the emml.config file was not at the correct folder
> So, now when i type 'http://localhost:8080/emml/twitter'on the
> browser i get something like that:
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
>   <head>
>     <meta content="HTML Tidy, seewww.w3.org" name="generator"/>

raj

unread,
Oct 26, 2009, 6:57:36 PM10/26/09
to open-mashu...@googlegroups.com
Ya, cool - you are seeing the twitter search results in response.  
Regarding the specific error, please ignore that - it's spurious/ harmless.

raj.
Reply all
Reply to author
Forward
0 new messages