You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by "Jaeger, Jay" <ja...@dot.state.wi.us> on 2007/08/08 18:34:26 UTC

Synapse sample #0 issues under JDK 1.4.2

The quick start guide implies that one should be able to use "JDK or JRE of
version 1.4.2 or higher"

However, Synapse appears to have 1.5 dependencies.  In running sample #0, it
works the first two times.  However, after the second execution of the
client, the following appears, and after that Synapse is non-responsive:

[I/O reactor worker thread 4] WARN  LoggingNHttpServiceHandler - HTTP
connection [/127.0.0.1:1817]: An existing connection was forcibly closed by
the remote hos
t
java.lang.NoSuchMethodError:
java.lang.String.contains(Ljava/lang/CharSequence;)Z
        at
org.apache.axis2.transport.nhttp.ServerHandler.exception(ServerHandler.java:
278)
        at
org.apache.axis2.transport.nhttp.LoggingNHttpServiceHandler.exception
(LoggingNHttpServiceHandler.java:71)
        at
org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNH
ttpServerConnection.java:116)
        at
org.apache.axis2.transport.nhttp.PlainServerIOEventDispatch.inputReady(Plain
ServerIOEventDispatch.java:67)
        at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:6
8)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIORe
actor.java:160)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOR
eactor.java:145)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor
.java:127)
        at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(Abs
tractMultiworkerIOReactor.java:153)
        at java.lang.Thread.run(Thread.java:534)

(and, as I mentioned, the sample no longer works after this until I restart
both Synapse and the server hosting the service).

At least part of the problem is that java.lang.String.contains does not
exist in 1.4 level Java.

(In addition, since the samples (at least #0) require the compiler, the JRE
is not sufficient).

Jay


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-user-help@ws.apache.org


Re: Synapse sample #0 issues under JDK 1.4.2

Posted by Paul Fremantle <pz...@gmail.com>.
Jay

Thanks very much for the notice. Since you've given such a clear
description I've logged it directly as a JIRA
https://issues.apache.org/jira/browse/SYNAPSE-118

You can track the progress there. We will try to get a fix in for 1.0.1.

Is this an important platform for you?

Paul

On 8/8/07, Jaeger, Jay <ja...@dot.state.wi.us> wrote:
> The quick start guide implies that one should be able to use "JDK or JRE of
> version 1.4.2 or higher"
>
> However, Synapse appears to have 1.5 dependencies.  In running sample #0, it
> works the first two times.  However, after the second execution of the
> client, the following appears, and after that Synapse is non-responsive:
>
> [I/O reactor worker thread 4] WARN  LoggingNHttpServiceHandler - HTTP
> connection [/127.0.0.1:1817]: An existing connection was forcibly closed by
> the remote hos
> t
> java.lang.NoSuchMethodError:
> java.lang.String.contains(Ljava/lang/CharSequence;)Z
>         at
> org.apache.axis2.transport.nhttp.ServerHandler.exception(ServerHandler.java:
> 278)
>         at
> org.apache.axis2.transport.nhttp.LoggingNHttpServiceHandler.exception
> (LoggingNHttpServiceHandler.java:71)
>         at
> org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNH
> ttpServerConnection.java:116)
>         at
> org.apache.axis2.transport.nhttp.PlainServerIOEventDispatch.inputReady(Plain
> ServerIOEventDispatch.java:67)
>         at
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:6
> 8)
>         at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIORe
> actor.java:160)
>         at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOR
> eactor.java:145)
>         at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor
> .java:127)
>         at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(Abs
> tractMultiworkerIOReactor.java:153)
>         at java.lang.Thread.run(Thread.java:534)
>
> (and, as I mentioned, the sample no longer works after this until I restart
> both Synapse and the server hosting the service).
>
> At least part of the problem is that java.lang.String.contains does not
> exist in 1.4 level Java.
>
> (In addition, since the samples (at least #0) require the compiler, the JRE
> is not sufficient).
>
> Jay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-user-help@ws.apache.org
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-user-help@ws.apache.org