Karaf 4.1.x / httplite incompatibility

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Karaf 4.1.x / httplite incompatibility

winnall
I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf): 

    java.lang.ClassCastException: org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to org.osgi.service.http.HttpService 

The problem seems to be that the latest version of org.apache.felix.httplite.complete, which provides org.apache.felix.httplite.osgi.HttpServiceImpl, i.e. 0.1.5, requires a version of java.servlet that is incompatible with the rest of Karaf 4.1.1, which - I think - expects 3.1.0. The following comes from the MANIFEST.MF of org.apache.felix.httplite.complete-0.1.5.jar: 

    Import-Package: javax.servlet;version="[2.4,3)" 

So, any hints on how to stop Karaf trying to httplite? Or is there another way of avoiding this error? The following is an extract from the effective POM: 

      <plugin>
        <groupId>org.apache.karaf.tooling</groupId>
        <artifactId>karaf-maven-plugin</artifactId>
        <version>4.1.1</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <id>default-archive</id>
            <phase>package</phase>
            <goals>
              <goal>archive</goal>
            </goals>
            <configuration>
              <installedFeatures>
                <feature>wrapper</feature>
              </installedFeatures>
              <bootFeatures>
                <feature>minimal</feature>
              </bootFeatures>
              <javase>1.8</javase>
            </configuration>
          </execution>
          <execution>
            <id>default-assembly</id>
            <phase>process-resources</phase>
            <goals>
              <goal>assembly</goal>
            </goals>
            <configuration>
              <installedFeatures>
                <feature>wrapper</feature>
              </installedFeatures>
              <bootFeatures>
                <feature>minimal</feature>
              </bootFeatures>
              <javase>1.8</javase>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <installedFeatures>
            <feature>wrapper</feature>
          </installedFeatures>
          <bootFeatures>
            <feature>minimal</feature>
          </bootFeatures>
          <javase>1.8</javase>
        </configuration>
      </plugin>

Steve


P.S. Apologies if this turns up twice. I tried to submit it via Nabble, but got a failure notice from the [hidden email], so I submitted it again via e-mail.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Mark Derricutt
On 10 Apr 2017, at 21:40, Stephen Winnall wrote:

> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf): 

Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.

--
Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt

signature.asc (494 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

winnall
I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.

I’m a bit surprised no-one else commented on it, though.

Steve

> On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:
>
> On 10 Apr 2017, at 21:40, Stephen Winnall wrote:
>
>> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):
>
> Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.
>
> --
> Mark Derricutt
> http://www.theoryinpractice.net
> http://www.chaliceofblood.net
> http://plus.google.com/+MarkDerricutt
> http://twitter.com/talios
> http://facebook.com/mderricutt

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

jbonofre
Hi,

do you have a test case to reproduce it ? I will take a look.

Regards
JB

On 04/26/2017 01:24 PM, Stephen Winnall wrote:

> I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.
>
> I’m a bit surprised no-one else commented on it, though.
>
> Steve
>
>> On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:
>>
>> On 10 Apr 2017, at 21:40, Stephen Winnall wrote:
>>
>>> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):
>>
>> Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.
>>
>> --
>> Mark Derricutt
>> http://www.theoryinpractice.net
>> http://www.chaliceofblood.net
>> http://plus.google.com/+MarkDerricutt
>> http://twitter.com/talios
>> http://facebook.com/mderricutt
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Guillaume Nodet-2
I suppose it's mostly a matter of having a new release of httplite which could support the servlet api 3.1 in the range.

2017-04-27 6:25 GMT+02:00 Jean-Baptiste Onofré <[hidden email]>:
Hi,

do you have a test case to reproduce it ? I will take a look.

Regards
JB


On 04/26/2017 01:24 PM, Stephen Winnall wrote:
I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.

I’m a bit surprised no-one else commented on it, though.

Steve

On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:

On 10 Apr 2017, at 21:40, Stephen Winnall wrote:

I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):

Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.

--
Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com



--
------------------------
Guillaume Nodet

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Guillaume Nodet-2
I've fixed the httplite headers.

We should still investigate why httplite is involved in the problem at all, as it should not be installed unless explicitely required.

2017-04-27 8:52 GMT+02:00 Guillaume Nodet <[hidden email]>:
I suppose it's mostly a matter of having a new release of httplite which could support the servlet api 3.1 in the range.

2017-04-27 6:25 GMT+02:00 Jean-Baptiste Onofré <[hidden email]>:
Hi,

do you have a test case to reproduce it ? I will take a look.

Regards
JB


On 04/26/2017 01:24 PM, Stephen Winnall wrote:
I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.

I’m a bit surprised no-one else commented on it, though.

Steve

On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:

On 10 Apr 2017, at 21:40, Stephen Winnall wrote:

I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):

Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.

--
Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com



--
------------------------
Guillaume Nodet




--
------------------------
Guillaume Nodet

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

winnall
In reply to this post by jbonofre
I attach the source tree of a test case. Just unpack, build and run, and log:display.

Steve


> On 27 Apr 2017, at 06:25, Jean-Baptiste Onofré <[hidden email]> wrote:
>
> Hi,
>
> do you have a test case to reproduce it ? I will take a look.
>
> Regards
> JB
>
> On 04/26/2017 01:24 PM, Stephen Winnall wrote:
>> I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.
>>
>> I’m a bit surprised no-one else commented on it, though.
>>
>> Steve
>>
>>> On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:
>>>
>>> On 10 Apr 2017, at 21:40, Stephen Winnall wrote:
>>>
>>>> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):
>>>
>>> Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.
>>>
>>> --
>>> Mark Derricutt
>>> http://www.theoryinpractice.net
>>> http://www.chaliceofblood.net
>>> http://plus.google.com/+MarkDerricutt
>>> http://twitter.com/talios
>>> http://facebook.com/mderricutt
>>
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com


karaf-4.1.x-httplite.tbz (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Guillaume Nodet-2
Could you please raise a JIRA issue and attach your project ?
I'll try to have a look.

2017-04-27 13:42 GMT+02:00 Stephen Winnall <[hidden email]>:
I attach the source tree of a test case. Just unpack, build and run, and log:display.

Steve


> On 27 Apr 2017, at 06:25, Jean-Baptiste Onofré <[hidden email]> wrote:
>
> Hi,
>
> do you have a test case to reproduce it ? I will take a look.
>
> Regards
> JB
>
> On 04/26/2017 01:24 PM, Stephen Winnall wrote:
>> I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.
>>
>> I’m a bit surprised no-one else commented on it, though.
>>
>> Steve
>>
>>> On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:
>>>
>>> On 10 Apr 2017, at 21:40, Stephen Winnall wrote:
>>>
>>>> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):
>>>
>>> Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.
>>>
>>> --
>>> Mark Derricutt
>>> http://www.theoryinpractice.net
>>> http://www.chaliceofblood.net
>>> http://plus.google.com/+MarkDerricutt
>>> http://twitter.com/talios
>>> http://facebook.com/mderricutt
>>
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com





--
------------------------
Guillaume Nodet

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

winnall
done that - see https://issues.apache.org/jira/browse/KARAF-5110

Steve

On 27 Apr 2017, at 15:52, Guillaume Nodet <[hidden email]> wrote:

Could you please raise a JIRA issue and attach your project ?
I'll try to have a look.

2017-04-27 13:42 GMT+02:00 Stephen Winnall <[hidden email]>:
I attach the source tree of a test case. Just unpack, build and run, and log:display.

Steve


> On 27 Apr 2017, at 06:25, Jean-Baptiste Onofré <[hidden email]> wrote:
>
> Hi,
>
> do you have a test case to reproduce it ? I will take a look.
>
> Regards
> JB
>
> On 04/26/2017 01:24 PM, Stephen Winnall wrote:
>> I haven’t resolved this, but it isn’t actually causing me any problems at the moment (i.e. I’m ignoring it). It just makes the log files look untidy.
>>
>> I’m a bit surprised no-one else commented on it, though.
>>
>> Steve
>>
>>> On 26 Apr 2017, at 05:36, Mark Derricutt <[hidden email]> wrote:
>>>
>>> On 10 Apr 2017, at 21:40, Stephen Winnall wrote:
>>>
>>>> I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf):
>>>
>>> Stephen - Did you ever resolve this? I was hit with the same thing updating from 4.0.8 straight to 4.1.1, opted to just migrate to 4.0.9 instead for now.
>>>
>>> --
>>> Mark Derricutt
>>> http://www.theoryinpractice.net
>>> http://www.chaliceofblood.net
>>> http://plus.google.com/+MarkDerricutt
>>> http://twitter.com/talios
>>> http://facebook.com/mderricutt
>>
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com





--
------------------------
Guillaume Nodet


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

winnall
Jean-Baptiste Onofré fixed this issue for 4.1.2 and others. Thank you! So - with the release today of 4.1.2 - I tried it out. The original problem has indeed disappeared, but I'm now seeing new behaviour that appears also to have its root in httplite.

When I start Karaf, I see
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]" java.lang.RuntimeException: 
Port already in use: 44444; 
You may have started two containers.  If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports
	at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:268)
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (4.1.2)
 and in the log I see
2017-08-08 12:43:52,703 | ERROR | FelixStartLevel  | complete                         | 36 - org.apache.felix.httplite.complete - 0.1.6 | Unable to create Http Service.
java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) [?:?]
	at java.net.ServerSocket.bind(ServerSocket.java:375) [?:?]
	at java.net.ServerSocket.<init>(ServerSocket.java:237) [?:?]
	at java.net.ServerSocket.<init>(ServerSocket.java:128) [?:?]
	at org.apache.felix.httplite.server.Server.start(Server.java:271) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.httplite.osgi.HttpServiceImpl.start(HttpServiceImpl.java:198) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.httplite.osgi.HttpServiceFactoryImpl.getService(HttpServiceFactoryImpl.java:79) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) [?:?]
	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) [?:?]
	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) [?:?]
	at org.apache.felix.framework.Felix.getService(Felix.java:3721) [?:?]
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) [?:?]
	at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.addingService(OsgiManager.java:873) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:1100) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.<init>(OsgiManager.java:342) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManager.<init>(KarafOsgiManager.java:48) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManagerActivator.start(KarafOsgiManagerActivator.java:56) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [?:?]
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2239) [?:?]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2145) [?:?]
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372) [?:?]
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?]
	at java.lang.Thread.run(Thread.java:745) [?:?]
2017-08-08 12:43:52,718 | ERROR | lixDispatchQueue | console                          | 76 - org.apache.karaf.webconsole.console - 4.1.2 | FrameworkEvent ERROR - org.apache.karaf.webconsole.console
org.osgi.framework.ServiceException: Service factory returned null. (org.apache.felix.httplite.osgi.HttpServiceFactoryImpl@2cc9e78d)
	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380) [?:?]
	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) [?:?]
	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) [?:?]
	at org.apache.felix.framework.Felix.getService(Felix.java:3721) [?:?]
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) [?:?]
	at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.addingService(OsgiManager.java:873) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:1100) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.<init>(OsgiManager.java:342) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManager.<init>(KarafOsgiManager.java:48) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManagerActivator.start(KarafOsgiManagerActivator.java:56) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [?:?]
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2239) [?:?]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2145) [?:?]
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372) [?:?]
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?]
	at java.lang.Thread.run(Thread.java:745) [?:?]
2017-08-08 12:43:52,722 | ERROR | rafOsgiManager]) | complete                         | 36 - org.apache.felix.httplite.complete - 0.1.6 | Unable to create Http Service.
java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) [?:?]
	at java.net.ServerSocket.bind(ServerSocket.java:375) [?:?]
	at java.net.ServerSocket.<init>(ServerSocket.java:237) [?:?]
	at java.net.ServerSocket.<init>(ServerSocket.java:128) [?:?]
	at org.apache.felix.httplite.server.Server.start(Server.java:271) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.httplite.osgi.HttpServiceImpl.start(HttpServiceImpl.java:198) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.httplite.osgi.HttpServiceFactoryImpl.getService(HttpServiceFactoryImpl.java:79) [36:org.apache.felix.httplite.complete:0.1.6]
	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) [?:?]
	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) [?:?]
	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) [?:?]
	at org.apache.felix.framework.Felix.getService(Felix.java:3721) [?:?]
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) [?:?]
	at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.addingService(OsgiManager.java:873) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:1100) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.ConfigurationSupport.updated0(ConfigurationSupport.java:87) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.ConfigurationSupport.updated(ConfigurationSupport.java:78) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1463) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1419) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [8:org.apache.felix.configadmin:1.8.14]
	at java.lang.Thread.run(Thread.java:745) [?:?]
2017-08-08 12:43:52,724 | ERROR | lixDispatchQueue | console                          | 76 - org.apache.karaf.webconsole.console - 4.1.2 | FrameworkEvent ERROR - org.apache.karaf.webconsole.console
org.osgi.framework.ServiceException: Service factory returned null. (org.apache.felix.httplite.osgi.HttpServiceFactoryImpl@2cc9e78d)
	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380) [?:?]
	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) [?:?]
	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) [?:?]
	at org.apache.felix.framework.Felix.getService(Felix.java:3721) [?:?]
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) [?:?]
	at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.addingService(OsgiManager.java:873) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [?:?]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?]
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:1100) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.ConfigurationSupport.updated0(ConfigurationSupport.java:87) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.webconsole.internal.servlet.ConfigurationSupport.updated(ConfigurationSupport.java:78) [76:org.apache.karaf.webconsole.console:4.1.2]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1463) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1419) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [8:org.apache.felix.configadmin:1.8.14]
	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [8:org.apache.felix.configadmin:1.8.14]
	at java.lang.Thread.run(Thread.java:745) [?:?]

Is this a follow-on issue or something quite different that was hidden by the previous issue?

Steve
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Achim Nierbeck
Hi, 

looks more like you already have another instance of Karaf running, no? 

regards, Achim 

2017-08-08 12:55 GMT+02:00 winnall <[hidden email]>:
Jean-Baptiste Onofré fixed this issue for 4.1.2 and others. Thank you! So -
with the release today of 4.1.2 - I tried it out. The original problem has
indeed disappeared, but I'm now seeing new behaviour that appears also to
have its root in httplite.

When I start Karaf, I see
 and in the log I see


Is this a follow-on issue or something quite different that was hidden by
the previous issue?

Steve



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-x-httplite-incompatibility-tp4050094p4051180.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

winnall
<embarassed />

Yes, Achim, you were right. I had a Karaf instance left over from somewhere that had got detached from NetBeans… When I killed it the problem went away.

Apologies.

Steve

On 8 Aug 2017, at 13:37, Achim Nierbeck <[hidden email]> wrote:

Hi, 

looks more like you already have another instance of Karaf running, no? 

regards, Achim 

2017-08-08 12:55 GMT+02:00 winnall <[hidden email]>:
Jean-Baptiste Onofré fixed this issue for 4.1.2 and others. Thank you! So -
with the release today of 4.1.2 - I tried it out. The original problem has
indeed disappeared, but I'm now seeing new behaviour that appears also to
have its root in httplite.

When I start Karaf, I see
 and in the log I see


Is this a follow-on issue or something quite different that was hidden by
the previous issue?

Steve



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-x-httplite-incompatibility-tp4050094p4051180.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master 


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Karaf 4.1.x / httplite incompatibility

Achim Nierbeck
No Problem :) 


This message gave me the hint: 
Port already in use: 44444;  

That usually only happens if at least two instances are running

regards, Achim 

2017-08-08 15:42 GMT+02:00 Stephen Winnall <[hidden email]>:
<embarassed />

Yes, Achim, you were right. I had a Karaf instance left over from somewhere that had got detached from NetBeans… When I killed it the problem went away.

Apologies.

Steve

On 8 Aug 2017, at 13:37, Achim Nierbeck <[hidden email]> wrote:

Hi, 

looks more like you already have another instance of Karaf running, no? 

regards, Achim 

2017-08-08 12:55 GMT+02:00 winnall <[hidden email]>:
Jean-Baptiste Onofré fixed this issue for 4.1.2 and others. Thank you! So -
with the release today of 4.1.2 - I tried it out. The original problem has
indeed disappeared, but I'm now seeing new behaviour that appears also to
have its root in httplite.

When I start Karaf, I see
 and in the log I see


Is this a follow-on issue or something quite different that was hidden by
the previous issue?

Steve



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-x-httplite-incompatibility-tp4050094p4051180.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master 





--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master 

Loading...