You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by gxl5271 <gx...@yahoo.com> on 2013/07/25 16:26:07 UTC

activemq would not start with jre 1.7

My application works fine with jre1.6, but has problem with jre1.7 in the
windows environment. 

My activemq is 5.6. 

Here is the exception

2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
ERROR org.apache.activemq.broker.TransportConnector - Could not accept
connection : java.lang.ClassCastException:
com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
cannot be cast to java.net.PlainSocketImpl
2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
ERROR org.apache.activemq.broker.TransportConnector - Could not accept
connection : java.lang.ClassCastException:
com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
cannot be cast to java.net.PlainSocketImpl
2013-07-24 15:21:57,874 [NetworkServerThread_61] INFO root -
INTOUCH;0;DEBUG;DERBY;Wed Jul 24 15:21:57 GMT 2013 :
com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
cannot be cast to java.net.PlainSocketImpl


I appreciate that someone can explain why this is happening.

Thanks!




--
View this message in context: http://activemq.2283324.n4.nabble.com/activemq-would-not-start-with-jre-1-7-tp4669725.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: activemq would not start with jre 1.7

Posted by Christian Posta <ch...@gmail.com>.
ActiveMQ didn't support JRE/JDK 7 until the 5.7.0 release.

Nevertheless, did this work with JRE 6? Seems you're using a custom Socket
impl... and activemq logs suggest it cannot open a connector because it's
finding this class and not a valid PlainSocketImpl...


On Thu, Jul 25, 2013 at 10:26 AM, gxl5271 <gx...@yahoo.com> wrote:

> My application works fine with jre1.6, but has problem with jre1.7 in the
> windows environment.
>
> My activemq is 5.6.
>
> Here is the exception
>
> 2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
> ERROR org.apache.activemq.broker.TransportConnector - Could not accept
> connection : java.lang.ClassCastException:
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
> 2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
> ERROR org.apache.activemq.broker.TransportConnector - Could not accept
> connection : java.lang.ClassCastException:
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
> 2013-07-24 15:21:57,874 [NetworkServerThread_61] INFO root -
> INTOUCH;0;DEBUG;DERBY;Wed Jul 24 15:21:57 GMT 2013 :
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
>
>
> I appreciate that someone can explain why this is happening.
>
> Thanks!
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/activemq-would-not-start-with-jre-1-7-tp4669725.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: activemq would not start with jre 1.7

Posted by Timothy Bish <ta...@gmail.com>.
On 07/25/2013 10:26 AM, gxl5271 wrote:
> My application works fine with jre1.6, but has problem with jre1.7 in the
> windows environment.
>
> My activemq is 5.6.
>
> Here is the exception
>
> 2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
> ERROR org.apache.activemq.broker.TransportConnector - Could not accept
> connection : java.lang.ClassCastException:
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
> 2013-07-24 15:21:57,874 [ActiveMQ Transport Server: tcp://localhost:61716]
> ERROR org.apache.activemq.broker.TransportConnector - Could not accept
> connection : java.lang.ClassCastException:
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
> 2013-07-24 15:21:57,874 [NetworkServerThread_61] INFO root -
> INTOUCH;0;DEBUG;DERBY;Wed Jul 24 15:21:57 GMT 2013 :
> com.kronos.ngd.platform.base.appplatform.socketfactory.RestrictedSocketImpl
> cannot be cast to java.net.PlainSocketImpl
>
>
> I appreciate that someone can explain why this is happening.
>
> Thanks!
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/activemq-would-not-start-with-jre-1-7-tp4669725.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
This version only works with Java 1.6 there's no guarantee for 1.7 
compat.  Did you try using a JDK instead of a JRE?

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/