You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lung12 <lu...@yahoo.com> on 2011/08/19 04:10:26 UTC

ServiceMix 4.3 fail to start up under Java 7

Installed JDK 1.7.0 and started up ServiceMix 4.3 under Windows XP.
(ServiceMix 4.3 startup under JDK 1.6.21 worked OK!)
Encountered the following errors:

Does anybody have any idea?

C:\tools\apache-servicemix-4.3.0\bin>servicemix
Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.elementData(ArrayList.java:371)
        at java.util.ArrayList.get(ArrayList.java:384)
        at
org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
        at
org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
        at org.apache.felix.framework.Felix.toString(Felix.java:1019)
        at org.apache.felix.framework.Logger.doLog(Logger.java:128)
        at org.apache.felix.framework.Logger._log(Logger.java:181)
        at org.apache.felix.framework.Logger.log(Logger.java:114)
        at
org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
        at org.apache.felix.framework.Felix.<init>(Felix.java:374)
        at
org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
        at org.apache.karaf.main.Main.launch(Main.java:253)
        at org.apache.karaf.main.Main.main(Main.java:408)
Error occured shutting down framework: java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.karaf.main.Main.awaitShutdown(Main.java:266)
        at org.apache.karaf.main.Main.main(Main.java:415)


--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fail-to-start-up-under-Java-7-tp4714183p4714183.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Christian Müller <ch...@gmail.com>.
https://issues.apache.org/jira/browse/SMX4-1257

Sent from a mobile device
Am 30.01.2013 01:52 schrieb "iapazmino" <ia...@gmail.com>:

> Hello,
>
> I couldn't find the road map. When is version 4.5 planned to be out?
>
> Thanks in advance,
> IP
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p5715644.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by iapazmino <ia...@gmail.com>.
Hello,

I couldn't find the road map. When is version 4.5 planned to be out?

Thanks in advance,
IP



--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p5715644.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Servicemix 4.5 will aim to use CXF 2.6.x and Camel 2.10.x, both support JDK 7.
So we can say SMX 4.5 would support JDK7.

Freeman
-------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-25, at 上午1:56, wiggumon wrote:

> Hello,
> 
> This thread was started about a year ago but I am a new user to ServiceMix
> and I was just curious if there have been updates to adding Java 7 support
> to ServiceMix 4.x.x. 
> 
> Thank you!
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p5714249.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: ServiceMix 4.3 fail to start up under Java 7

Posted by wiggumon <wi...@hotmail.com>.
Hello,

This thread was started about a year ago but I am a new user to ServiceMix
and I was just curious if there have been updates to adding Java 7 support
to ServiceMix 4.x.x. 

Thank you!



--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p5714249.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Andreas Pieber <an...@gmail.com>.
Thank you very much for the detailed answer and explanation. In that case it
makes sense to delay java7 support for 5.0/4.5 of cause.

Kind regards,
Andreas

On Thu, Aug 25, 2011 at 04:29, Freeman Fang <fr...@gmail.com> wrote:

> Hi Andreas,
>
> Even we can release karaf 2.2.3 soon which certified to suppot java 7, it
> also means that we need a new cxf and camel release which based on karaf
> 2.2.3.
> Moreover, currently per the discussion here[1], there's still some issues
> for cxf with JDK7, mainly security related,  and here is the camel with jdk7
> discussion[2].
>
> That said, to claim servicemix 4.4 support jdk7, we need release karaf
> 2.2.3, and also new cxf, camel, probably activemq which all support jdk7,
>  but I don't think this is doable for smx4.4 release, which is scheduled for
> a long time and already actually started the release process(like release
> bundles, archetypes)
>
> [1]http://cxf.547215.n5.**nabble.com/JDK-1-7-and-CXF-**td4686103.html<http://cxf.547215.n5.nabble.com/JDK-1-7-and-CXF-td4686103.html>
> [2]http://camel.465427.n5.**nabble.com/Apache-Camel-trunk-**
> on-JDK-7-td4692234.html<http://camel.465427.n5.nabble.com/Apache-Camel-trunk-on-JDK-7-td4692234.html>
>
> Freeman
>
> On 2011-8-25, at 上午10:00, Andreas Pieber wrote:
>
>  Feel free to call me a fool, but since 4.4 is not for vote by now,
>> karaf-2.2.3 with CXF (2.4.1) is working with java7 (and maybe camel too)
>> isn't it worth to give it at least a try? We can/and will release
>> karaf-2.2.3 very soon (and I'm sure even earlier if required e.g. by smx).
>> Someone has to test with the current Karaf Snapshots, Java7 and an
>> existing
>> project. If e.g. camel 2.8 refuses to work with java7 that will present a
>> complete different situation at all of cause; but if it works I think 4.4
>> is
>> still an option, isn't it?
>>
>> Just my 2 cents.
>>
>> Kind regards,
>> Andreas
>>
>> On Thu, Aug 25, 2011 at 03:52, Freeman Fang <fr...@gmail.com>
>> wrote:
>>
>>  Hi Andreas,
>>>
>>> Just FYI, Servicemix 4.4 aim to release with karaf 2.2.2, camel 2.8.0 and
>>> cxf 2.4.1, those version get released even before JDK 7 is out, :-), so
>>> there's no guarantee that Servicemix 4.4 can support JDK7.
>>>
>>> Freeman
>>>
>>> On 2011-8-25, at 上午9:36, Andreas Pieber wrote:
>>>
>>> I'm not sure about camel TBH, but Karaf will run fine with java7 in the
>>>
>>>> next
>>>> minor release (as JB pointed out) and in my projects CXF also runs quite
>>>> fine on the current Karaf 2.2.3-SNAPSHOTs.
>>>>
>>>> Kind regards,
>>>> Andreas
>>>>
>>>> On Thu, Aug 25, 2011 at 03:32, Freeman Fang <fr...@gmail.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>>>
>>>>> I don't think servicemix 4.4 will support jdk7, as servicemix 4.4
>>>>> dependencies like cxf, camel, karaf can't run with java7 yet.
>>>>> But Servicemix 5.0 should aim to support java7.
>>>>>
>>>>> Freeman
>>>>>
>>>>> On 2011-8-25, at 上午7:15, lung12 wrote:
>>>>>
>>>>> Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?)
>>>>>
>>>>>  release
>>>>>> that shall support Java 7?
>>>>>>
>>>>>> --
>>>>>> View this message in context: http://servicemix.396122.n5.**
>>>>>> nabble.com/ServiceMix-4-3-******fails-to-start-up-under-Java-******<http://nabble.com/ServiceMix-4-3-****fails-to-start-up-under-Java-****>
>>>>>> <http://nabble.com/**ServiceMix-4-3-**fails-to-**
>>>>>> start-up-under-Java-**<http://nabble.com/ServiceMix-4-3-**fails-to-start-up-under-Java-**>
>>>>>> >
>>>>>>
>>>>>> 7-tp4714183p4732266.html<http:****//servicemix.396122.n5.**nabble.**
>>>>>> com/ServiceMix-4-3-fails-to-****start-up-under-Java-7-**
>>>>>> tp4714183p4732266.html<http://**servicemix.396122.n5.nabble.**
>>>>>> com/ServiceMix-4-3-fails-to-**start-up-under-Java-7-**
>>>>>> tp4714183p4732266.html<http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html>
>>>>>> >
>>>>>>
>>>>>>>
>>>>>>>
>>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>  ------------------------------******---------------
>>>>> Freeman Fang
>>>>>
>>>>> FuseSource
>>>>> Email:ffang@fusesource.com
>>>>> Web: fusesource.com
>>>>> Twitter: freemanfang
>>>>> Blog: http://freemanfang.blogspot.******com <
>>>>> http://freemanfang.blogspot.*
>>>>> *com <http://freemanfang.blogspot.**com<http://freemanfang.blogspot.com>
>>>>> >>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  ------------------------------****---------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.****com <http://freemanfang.blogspot.*
>>> *com <http://freemanfang.blogspot.com>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
> ------------------------------**---------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com>
>
>
>
>
>
>
>
>
>
>

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Freeman Fang <fr...@gmail.com>.
Hi Andreas,

Even we can release karaf 2.2.3 soon which certified to suppot java 7,  
it also means that we need a new cxf and camel release which based on  
karaf 2.2.3.
Moreover, currently per the discussion here[1], there's still some  
issues for cxf with JDK7, mainly security related,  and here is the  
camel with jdk7 discussion[2].

That said, to claim servicemix 4.4 support jdk7, we need release karaf  
2.2.3, and also new cxf, camel, probably activemq which all support  
jdk7,  but I don't think this is doable for smx4.4 release, which is  
scheduled for a long time and already actually started the release  
process(like release bundles, archetypes)

[1]http://cxf.547215.n5.nabble.com/JDK-1-7-and-CXF-td4686103.html
[2]http://camel.465427.n5.nabble.com/Apache-Camel-trunk-on-JDK-7-td4692234.html

Freeman
On 2011-8-25, at 上午10:00, Andreas Pieber wrote:

> Feel free to call me a fool, but since 4.4 is not for vote by now,
> karaf-2.2.3 with CXF (2.4.1) is working with java7 (and maybe camel  
> too)
> isn't it worth to give it at least a try? We can/and will release
> karaf-2.2.3 very soon (and I'm sure even earlier if required e.g. by  
> smx).
> Someone has to test with the current Karaf Snapshots, Java7 and an  
> existing
> project. If e.g. camel 2.8 refuses to work with java7 that will  
> present a
> complete different situation at all of cause; but if it works I  
> think 4.4 is
> still an option, isn't it?
>
> Just my 2 cents.
>
> Kind regards,
> Andreas
>
> On Thu, Aug 25, 2011 at 03:52, Freeman Fang <fr...@gmail.com>  
> wrote:
>
>> Hi Andreas,
>>
>> Just FYI, Servicemix 4.4 aim to release with karaf 2.2.2, camel  
>> 2.8.0 and
>> cxf 2.4.1, those version get released even before JDK 7 is  
>> out, :-), so
>> there's no guarantee that Servicemix 4.4 can support JDK7.
>>
>> Freeman
>>
>> On 2011-8-25, at 上午9:36, Andreas Pieber wrote:
>>
>> I'm not sure about camel TBH, but Karaf will run fine with java7 in  
>> the
>>> next
>>> minor release (as JB pointed out) and in my projects CXF also runs  
>>> quite
>>> fine on the current Karaf 2.2.3-SNAPSHOTs.
>>>
>>> Kind regards,
>>> Andreas
>>>
>>> On Thu, Aug 25, 2011 at 03:32, Freeman Fang <fr...@gmail.com>
>>> wrote:
>>>
>>> Hi,
>>>>
>>>> I don't think servicemix 4.4 will support jdk7, as servicemix 4.4
>>>> dependencies like cxf, camel, karaf can't run with java7 yet.
>>>> But Servicemix 5.0 should aim to support java7.
>>>>
>>>> Freeman
>>>>
>>>> On 2011-8-25, at 上午7:15, lung12 wrote:
>>>>
>>>> Does anyone know the schedule for the next ServiceMix (4.4? or  
>>>> 5.0?)
>>>>
>>>>> release
>>>>> that shall support Java 7?
>>>>>
>>>>> --
>>>>> View this message in context: http://servicemix.396122.n5.**
>>>>> nabble.com/ServiceMix-4-3-****fails-to-start-up-under-Java-****<http://nabble.com/ServiceMix-4-3-**fails-to-start-up-under-Java-** 
>>>>> >
>>>>> 7-tp4714183p4732266.html<http:**//servicemix.396122.n5.nabble.**
>>>>> com/ServiceMix-4-3-fails-to-**start-up-under-Java-7-**
>>>>> tp4714183p4732266.html<http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html 
>>>>> >
>>>>>>
>>>>>
>>>>> Sent from the ServiceMix - User mailing list archive at  
>>>>> Nabble.com.
>>>>>
>>>>>
>>>> ------------------------------****---------------
>>>> Freeman Fang
>>>>
>>>> FuseSource
>>>> Email:ffang@fusesource.com
>>>> Web: fusesource.com
>>>> Twitter: freemanfang
>>>> Blog: http://freemanfang.blogspot.****com <http://freemanfang.blogspot 
>>>> .*
>>>> *com <http://freemanfang.blogspot.com>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>> ------------------------------**---------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com 
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Andreas Pieber <an...@gmail.com>.
Feel free to call me a fool, but since 4.4 is not for vote by now,
karaf-2.2.3 with CXF (2.4.1) is working with java7 (and maybe camel too)
isn't it worth to give it at least a try? We can/and will release
karaf-2.2.3 very soon (and I'm sure even earlier if required e.g. by smx).
Someone has to test with the current Karaf Snapshots, Java7 and an existing
project. If e.g. camel 2.8 refuses to work with java7 that will present a
complete different situation at all of cause; but if it works I think 4.4 is
still an option, isn't it?

Just my 2 cents.

Kind regards,
Andreas

On Thu, Aug 25, 2011 at 03:52, Freeman Fang <fr...@gmail.com> wrote:

> Hi Andreas,
>
> Just FYI, Servicemix 4.4 aim to release with karaf 2.2.2, camel 2.8.0 and
> cxf 2.4.1, those version get released even before JDK 7 is out, :-), so
> there's no guarantee that Servicemix 4.4 can support JDK7.
>
> Freeman
>
> On 2011-8-25, at 上午9:36, Andreas Pieber wrote:
>
>  I'm not sure about camel TBH, but Karaf will run fine with java7 in the
>> next
>> minor release (as JB pointed out) and in my projects CXF also runs quite
>> fine on the current Karaf 2.2.3-SNAPSHOTs.
>>
>> Kind regards,
>> Andreas
>>
>> On Thu, Aug 25, 2011 at 03:32, Freeman Fang <fr...@gmail.com>
>> wrote:
>>
>>  Hi,
>>>
>>> I don't think servicemix 4.4 will support jdk7, as servicemix 4.4
>>> dependencies like cxf, camel, karaf can't run with java7 yet.
>>> But Servicemix 5.0 should aim to support java7.
>>>
>>> Freeman
>>>
>>> On 2011-8-25, at 上午7:15, lung12 wrote:
>>>
>>> Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?)
>>>
>>>> release
>>>> that shall support Java 7?
>>>>
>>>> --
>>>> View this message in context: http://servicemix.396122.n5.**
>>>> nabble.com/ServiceMix-4-3-****fails-to-start-up-under-Java-****<http://nabble.com/ServiceMix-4-3-**fails-to-start-up-under-Java-**>
>>>> 7-tp4714183p4732266.html<http:**//servicemix.396122.n5.nabble.**
>>>> com/ServiceMix-4-3-fails-to-**start-up-under-Java-7-**
>>>> tp4714183p4732266.html<http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html>
>>>> >
>>>>
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>>
>>> ------------------------------****---------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.****com <http://freemanfang.blogspot.*
>>> *com <http://freemanfang.blogspot.com>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
> ------------------------------**---------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com>
>
>
>
>
>
>
>
>
>
>

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Freeman Fang <fr...@gmail.com>.
Hi Andreas,

Just FYI, Servicemix 4.4 aim to release with karaf 2.2.2, camel 2.8.0  
and cxf 2.4.1, those version get released even before JDK 7 is  
out, :-), so there's no guarantee that Servicemix 4.4 can support JDK7.

Freeman
On 2011-8-25, at 上午9:36, Andreas Pieber wrote:

> I'm not sure about camel TBH, but Karaf will run fine with java7 in  
> the next
> minor release (as JB pointed out) and in my projects CXF also runs  
> quite
> fine on the current Karaf 2.2.3-SNAPSHOTs.
>
> Kind regards,
> Andreas
>
> On Thu, Aug 25, 2011 at 03:32, Freeman Fang <fr...@gmail.com>  
> wrote:
>
>> Hi,
>>
>> I don't think servicemix 4.4 will support jdk7, as servicemix 4.4
>> dependencies like cxf, camel, karaf can't run with java7 yet.
>> But Servicemix 5.0 should aim to support java7.
>>
>> Freeman
>>
>> On 2011-8-25, at 上午7:15, lung12 wrote:
>>
>> Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?)
>>> release
>>> that shall support Java 7?
>>>
>>> --
>>> View this message in context: http://servicemix.396122.n5.**
>>> nabble.com/ServiceMix-4-3-**fails-to-start-up-under-Java-**
>>> 7-tp4714183p4732266.html<http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html 
>>> >
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>> ------------------------------**---------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com 
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Andreas Pieber <an...@gmail.com>.
I'm not sure about camel TBH, but Karaf will run fine with java7 in the next
minor release (as JB pointed out) and in my projects CXF also runs quite
fine on the current Karaf 2.2.3-SNAPSHOTs.

Kind regards,
Andreas

On Thu, Aug 25, 2011 at 03:32, Freeman Fang <fr...@gmail.com> wrote:

> Hi,
>
> I don't think servicemix 4.4 will support jdk7, as servicemix 4.4
> dependencies like cxf, camel, karaf can't run with java7 yet.
> But Servicemix 5.0 should aim to support java7.
>
> Freeman
>
> On 2011-8-25, at 上午7:15, lung12 wrote:
>
>  Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?)
>> release
>> that shall support Java 7?
>>
>> --
>> View this message in context: http://servicemix.396122.n5.**
>> nabble.com/ServiceMix-4-3-**fails-to-start-up-under-Java-**
>> 7-tp4714183p4732266.html<http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html>
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
> ------------------------------**---------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com>
>
>
>
>
>
>
>
>
>
>

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I don't think servicemix 4.4 will support jdk7, as servicemix 4.4  
dependencies like cxf, camel, karaf can't run with java7 yet.
But Servicemix 5.0 should aim to support java7.

Freeman
On 2011-8-25, at 上午7:15, lung12 wrote:

> Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?)  
> release
> that shall support Java 7?
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: ServiceMix 4.3 fail to start up under Java 7

Posted by lung12 <lu...@yahoo.com>.
Does anyone know the schedule for the next ServiceMix (4.4? or 5.0?) release
that shall support Java 7?

--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fails-to-start-up-under-Java-7-tp4714183p4732266.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, it's in progress. Karaf 2.2.3 should be able to run with Java 7.

Regards
JB

On 08/19/2011 08:35 AM, Freeman Fang wrote:
> Hi,
>
> This is kind of expected behavior, as JAVA7 is just out and karaf
> version used for Servicemix 4.3 not support it yet.
>
> We have some discussion in Karaf about supporting JAVA7 in the near future.
>
> Freeman
> On 2011-8-19, at 上午10:10, lung12 wrote:
>
>> Installed JDK 1.7.0 and started up ServiceMix 4.3 under Windows XP.
>> (ServiceMix 4.3 startup under JDK 1.6.21 worked OK!)
>> Encountered the following errors:
>>
>> Does anybody have any idea?
>>
>> C:\tools\apache-servicemix-4.3.0\bin>servicemix
>> Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1
>> java.lang.ArrayIndexOutOfBoundsException: -1
>> at java.util.ArrayList.elementData(ArrayList.java:371)
>> at java.util.ArrayList.get(ArrayList.java:384)
>> at
>> org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050)
>>
>> at
>> org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859)
>>
>> at org.apache.felix.framework.Felix.toString(Felix.java:1019)
>> at org.apache.felix.framework.Logger.doLog(Logger.java:128)
>> at org.apache.felix.framework.Logger._log(Logger.java:181)
>> at org.apache.felix.framework.Logger.log(Logger.java:114)
>> at
>> org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
>>
>> at org.apache.felix.framework.Felix.<init>(Felix.java:374)
>> at
>> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
>>
>> at org.apache.karaf.main.Main.launch(Main.java:253)
>> at org.apache.karaf.main.Main.main(Main.java:408)
>> Error occured shutting down framework: java.lang.NullPointerException
>> java.lang.NullPointerException
>> at org.apache.karaf.main.Main.awaitShutdown(Main.java:266)
>> at org.apache.karaf.main.Main.main(Main.java:415)
>>
>>
>> --
>> View this message in context:
>> http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fail-to-start-up-under-Java-7-tp4714183p4714183.html
>>
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: ServiceMix 4.3 fail to start up under Java 7

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

This is kind of expected behavior, as JAVA7 is just out and karaf  
version used for Servicemix 4.3 not support it yet.

We have some discussion in Karaf about supporting JAVA7 in the near  
future.

Freeman
On 2011-8-19, at 上午10:10, lung12 wrote:

> Installed JDK 1.7.0 and started up ServiceMix 4.3 under Windows XP.
> (ServiceMix 4.3 startup under JDK 1.6.21 worked OK!)
> Encountered the following errors:
>
> Does anybody have any idea?
>
> C:\tools\apache-servicemix-4.3.0\bin>servicemix
> Could not create framework:  
> java.lang.ArrayIndexOutOfBoundsException: -1
> java.lang.ArrayIndexOutOfBoundsException: -1
>        at java.util.ArrayList.elementData(ArrayList.java:371)
>        at java.util.ArrayList.get(ArrayList.java:384)
>        at
> org 
> .apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java: 
> 1050)
>        at
> org 
> .apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java: 
> 859)
>        at org.apache.felix.framework.Felix.toString(Felix.java:1019)
>        at org.apache.felix.framework.Logger.doLog(Logger.java:128)
>        at org.apache.felix.framework.Logger._log(Logger.java:181)
>        at org.apache.felix.framework.Logger.log(Logger.java:114)
>        at
> org 
> .apache 
> .felix.framework.ExtensionManager.<init>(ExtensionManager.java:201)
>        at org.apache.felix.framework.Felix.<init>(Felix.java:374)
>        at
> org 
> .apache 
> .felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java: 
> 28)
>        at org.apache.karaf.main.Main.launch(Main.java:253)
>        at org.apache.karaf.main.Main.main(Main.java:408)
> Error occured shutting down framework: java.lang.NullPointerException
> java.lang.NullPointerException
>        at org.apache.karaf.main.Main.awaitShutdown(Main.java:266)
>        at org.apache.karaf.main.Main.main(Main.java:415)
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-3-fail-to-start-up-under-Java-7-tp4714183p4714183.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com