Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-22 Thread Jean-Baptiste Onofre
Hi Ben,

I suspect FELIX-6326 to be the cause.

Let me try to reproduce and work on a fix on Felix. I will create a Jira there.

Regards
JB

> Le 22 mai 2021 à 10:51, Benjamin Graf  a écrit :
> 
> [FELIX-6326



Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-22 Thread Benjamin Graf

Hi,

a short note. It works up to Felix 6.0.3 on JDK11 and fails from version 
6.0.4+ beginning.


Some bug fix from:

Changes from 6.0.3 to 6.0.4
---

** Bug
    * [FELIX-6178] - org.osgi.framework.Bundle#getServicesInUse returns 
services with usage count = 0
    * [FELIX-6222] - Support for os.name Capability is missing for 
Windows Server 2019

    * [FELIX-6297] - unclosed InputStream on Bundle.start
    * [FELIX-6318] - Tiny thread-safety bug in BundleWiringImpl
    * [FELIX-6326] - Cannot read bundled resources with hash in the 
filename

    * [FELIX-6331] - Race condition in unget service from service factory

Should be the cause IMHO. Any Felix expert on the list?

Regards,

Benjamin

On 20.05.2021 19:00, Benjamin Graf wrote:

Hi,

just tried to run pax-transx-tm-narayana in plain Felix 7 on JDK11 and 
still the same Exception trace.


Regards

Benjamin

On 20.05.2021 18:16, Benjamin Graf wrote:

Hi Grzegorz,

Of course do I remember issue #50. And I think it's not a bug in 
pax-transx because everything is fine with Karaf 4.2.11 on JDK11. The 
error occurs on Karaf 4.3.2 maybe 4.3.x at all. So it might be a bug 
in either newer Karaf or newer Felix?!


Regards

Benjamin

On 20.05.2021 18:07, Grzegorz Grzybek wrote:

Hmm, but your remember this
https://github.com/ops4j/org.ops4j.pax.transx/issues/50 issue? I 
ensured
that pax-transx can run, build and test using JDK11... I'll check it 
again.
Could you file a bug to 
https://github.com/ops4j/org.ops4j.pax.transx/issues

?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 18:00 Benjamin Graf  
napisał(a):



Hi Grzegorz,

the same error with pax-transx 0.5.1

    - feature:repo-add pax-transx 0.5.1
    - feature:repo-add pax-transx 0.5.1

Regards

Benjamin
On 20.05.2021 17:43, Grzegorz Grzybek wrote:

Hi

Did you try `mvn clean install` latest pax-transx release?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 17:40 Benjamin Graf  
 napisał(a):



Hi JB,

I use JDK 11 as runtime environment. There is no code to compile to
reproduce this bug just plain Karaf and pax-trans-tm-narayana from 
Maven

central.

Regards

Benjamin

On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:

Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB


Le 20 mai 2021 à 08:17, Benjamin Graf  
 a écrit :


Hi,

it seems there is a bug with embedded resources. I think it is caused

by Felix and not Karaf itself.

How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |

pax-transx-tm-narayana   | 60 -
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error 
starting service


java.lang.reflect.InvocationTargetException: null
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 


~[?:?]

  at

jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 


~[?:?]

  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49) 


~[?:?]

  at

org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115) 


~[?:?]

  at

java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 


[?:?]

  at java.util.concurrent.FutureTask.run(FutureTask.java:264) 
[?:?]

  at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 


[?:?]

  at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 


[?:?]

  at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable

due to: null

  at

org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311) 


~[?:?]

  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
  at

jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 


~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) 


~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) 


~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 


~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 


~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)

~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)

~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) 
~[?:?]


  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) 
~[?:?]


 

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Benjamin Graf

Hi,

just tried to run pax-transx-tm-narayana in plain Felix 7 on JDK11 and 
still the same Exception trace.


Regards

Benjamin

On 20.05.2021 18:16, Benjamin Graf wrote:

Hi Grzegorz,

Of course do I remember issue #50. And I think it's not a bug in 
pax-transx because everything is fine with Karaf 4.2.11 on JDK11. The 
error occurs on Karaf 4.3.2 maybe 4.3.x at all. So it might be a bug 
in either newer Karaf or newer Felix?!


Regards

Benjamin

On 20.05.2021 18:07, Grzegorz Grzybek wrote:

Hmm, but your remember this
https://github.com/ops4j/org.ops4j.pax.transx/issues/50 issue? I ensured
that pax-transx can run, build and test using JDK11... I'll check it 
again.
Could you file a bug to 
https://github.com/ops4j/org.ops4j.pax.transx/issues

?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 18:00 Benjamin Graf  
napisał(a):



Hi Grzegorz,

the same error with pax-transx 0.5.1

    - feature:repo-add pax-transx 0.5.1
    - feature:repo-add pax-transx 0.5.1

Regards

Benjamin
On 20.05.2021 17:43, Grzegorz Grzybek wrote:

Hi

Did you try `mvn clean install` latest pax-transx release?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 17:40 Benjamin Graf  
 napisał(a):



Hi JB,

I use JDK 11 as runtime environment. There is no code to compile to
reproduce this bug just plain Karaf and pax-trans-tm-narayana from 
Maven

central.

Regards

Benjamin

On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:

Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB


Le 20 mai 2021 à 08:17, Benjamin Graf  
 a écrit :


Hi,

it seems there is a bug with embedded resources. I think it is caused

by Felix and not Karaf itself.

How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |

pax-transx-tm-narayana   | 60 -
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting 
service


java.lang.reflect.InvocationTargetException: null
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 


~[?:?]

  at

jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 


~[?:?]

  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49) 


~[?:?]

  at

org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115) 


~[?:?]

  at

java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[?:?]

  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
  at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 


[?:?]

  at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 


[?:?]

  at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable

due to: null

  at

org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311) 


~[?:?]

  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
  at

jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 


~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 


~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 


~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)

~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)

~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) 
~[?:?]


  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) 
~[?:?]


  at

jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) 
~[?:?]


  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at java.net.URLClassLoader.findClass(URLClassLoader.java:451)

~[?:?]

  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73) 


~[?:?]

  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66) 


~[?:?]

  ... 11 more
Caused by: java.lang.reflect.InvocationTargetException

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Benjamin Graf

Hi Grzegorz,

Of course do I remember issue #50. And I think it's not a bug in 
pax-transx because everything is fine with Karaf 4.2.11 on JDK11. The 
error occurs on Karaf 4.3.2 maybe 4.3.x at all. So it might be a bug in 
either newer Karaf or newer Felix?!


Regards

Benjamin

On 20.05.2021 18:07, Grzegorz Grzybek wrote:

Hmm, but your remember this
https://github.com/ops4j/org.ops4j.pax.transx/issues/50 issue? I ensured
that pax-transx can run, build and test using JDK11... I'll check it again.
Could you file a bug to https://github.com/ops4j/org.ops4j.pax.transx/issues
?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 18:00 Benjamin Graf  napisał(a):


Hi Grzegorz,

the same error with pax-transx 0.5.1

- feature:repo-add pax-transx 0.5.1
- feature:repo-add pax-transx 0.5.1

Regards

Benjamin
On 20.05.2021 17:43, Grzegorz Grzybek wrote:

Hi

Did you try `mvn clean install` latest pax-transx release?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 17:40 Benjamin Graf  
 napisał(a):


Hi JB,

I use JDK 11 as runtime environment. There is no code to compile to
reproduce this bug just plain Karaf and pax-trans-tm-narayana from Maven
central.

Regards

Benjamin

On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:

Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB


Le 20 mai 2021 à 08:17, Benjamin Graf  
 a écrit :

Hi,

it seems there is a bug with embedded resources. I think it is caused

by Felix and not Karaf itself.

How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |

pax-transx-tm-narayana   | 60 -
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service

java.lang.reflect.InvocationTargetException: null
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]

  at

jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]

  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
~[?:?]

  at

org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
~[?:?]

  at

java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[?:?]

  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
  at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[?:?]

  at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[?:?]

  at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable

due to: null

  at

org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
~[?:?]

  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
  at

jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)

~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)

~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]

  at

jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]

  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at java.net.URLClassLoader.findClass(URLClassLoader.java:451)

~[?:?]

  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
~[?:?]

  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
~[?:?]

  ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]

  at

jdk.internal.reflect.De

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Grzegorz Grzybek
Hmm, but your remember this
https://github.com/ops4j/org.ops4j.pax.transx/issues/50 issue? I ensured
that pax-transx can run, build and test using JDK11... I'll check it again.
Could you file a bug to https://github.com/ops4j/org.ops4j.pax.transx/issues
?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 18:00 Benjamin Graf  napisał(a):

> Hi Grzegorz,
>
> the same error with pax-transx 0.5.1
>
>- feature:repo-add pax-transx 0.5.1
>- feature:repo-add pax-transx 0.5.1
>
> Regards
>
> Benjamin
> On 20.05.2021 17:43, Grzegorz Grzybek wrote:
>
> Hi
>
> Did you try `mvn clean install` latest pax-transx release?
>
> regards
> Grzegorz Grzybek
>
> czw., 20 maj 2021 o 17:40 Benjamin Graf  
>  napisał(a):
>
>
> Hi JB,
>
> I use JDK 11 as runtime environment. There is no code to compile to
> reproduce this bug just plain Karaf and pax-trans-tm-narayana from Maven
> central.
>
> Regards
>
> Benjamin
>
> On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:
>
> Hi Ben,
>
> Are you using JDK 11 (for both compile and runtime) ?
>
> Regards
> JB
>
>
> Le 20 mai 2021 à 08:17, Benjamin Graf  
>  a écrit :
>
> Hi,
>
> it seems there is a bug with embedded resources. I think it is caused
>
> by Felix and not Karaf itself.
>
> How to reproduce:
>
> - Clean start of plain Karaf 4.3.2
>
> - feature:install pax-transx-tm-narayana
>
> Result:
>
> 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |
>
> pax-transx-tm-narayana   | 60 -
> org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service
>
> java.lang.reflect.InvocationTargetException: null
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>
> Method) ~[?:?]
>
>  at
>
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
>
>  at
>
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
>
>  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
>  at
>
> org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
> ~[?:?]
>
>  at
>
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
> ~[?:?]
>
>  at
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> [?:?]
>
>  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>  at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> [?:?]
>
>  at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> [?:?]
>
>  at java.lang.Thread.run(Thread.java:829) [?:?]
> Caused by: java.lang.IllegalStateException: Stream handler unavailable
>
> due to: null
>
>  at
>
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
> ~[?:?]
>
>  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
>  at
>
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
>
>  at java.security.AccessController.doPrivileged(Native Method)
>
> ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
> ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
> ~[?:?]
>
>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
>
> ~[?:?]
>
>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
>
> ~[?:?]
>
>  at java.security.AccessController.doPrivileged(Native Method)
>
> ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
>
>  at
>
> jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]
>
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
>  at java.security.AccessController.doPrivileged(Native Method)
>
> ~[?:?]
>
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:451)
>
> ~[?:?]
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
>  at
>
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
> ~[?:?]
>
>  at
>
> org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
> ~[?:?]
>
>  ... 11 more
> Caused by: java.lang.reflect.InvocationTargetException
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>
> Method) ~[?:?]
>
>  at
>
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
>
>  at
>
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Delega

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Benjamin Graf

Hi Grzegorz,

the same error with pax-transx 0.5.1

 * feature:repo-add pax-transx 0.5.1
 * feature:repo-add pax-transx 0.5.1

Regards

Benjamin

On 20.05.2021 17:43, Grzegorz Grzybek wrote:

Hi

Did you try `mvn clean install` latest pax-transx release?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 17:40 Benjamin Graf  napisał(a):


Hi JB,

I use JDK 11 as runtime environment. There is no code to compile to
reproduce this bug just plain Karaf and pax-trans-tm-narayana from Maven
central.

Regards

Benjamin

On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:

Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB


Le 20 mai 2021 à 08:17, Benjamin Graf  a écrit :

Hi,

it seems there is a bug with embedded resources. I think it is caused

by Felix and not Karaf itself.

How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |

pax-transx-tm-narayana   | 60 -
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service

java.lang.reflect.InvocationTargetException: null
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]

  at

jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]

  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
~[?:?]

  at

org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
~[?:?]

  at

java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[?:?]

  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
  at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[?:?]

  at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[?:?]

  at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable

due to: null

  at

org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
~[?:?]

  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
  at

jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)

~[?:?]

  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)

~[?:?]

  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]

  at

jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]

  at

jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]

  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
  at java.security.AccessController.doPrivileged(Native Method)

~[?:?]

  at java.net.URLClassLoader.findClass(URLClassLoader.java:451)

~[?:?]

  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
~[?:?]

  at

org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
~[?:?]

  ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native

Method) ~[?:?]

  at

jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]

  at

jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]

  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at

org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
~[?:?]

  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
  at

jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
~[?:?]

  at

jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
~[?:?]

  at java.security.AccessController.doPrivileged(Native Metho

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Grzegorz Grzybek
Hi

Did you try `mvn clean install` latest pax-transx release?

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 17:40 Benjamin Graf  napisał(a):

> Hi JB,
>
> I use JDK 11 as runtime environment. There is no code to compile to
> reproduce this bug just plain Karaf and pax-trans-tm-narayana from Maven
> central.
>
> Regards
>
> Benjamin
>
> On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:
> > Hi Ben,
> >
> > Are you using JDK 11 (for both compile and runtime) ?
> >
> > Regards
> > JB
> >
> >> Le 20 mai 2021 à 08:17, Benjamin Graf  a écrit :
> >>
> >> Hi,
> >>
> >> it seems there is a bug with embedded resources. I think it is caused
> by Felix and not Karaf itself.
> >>
> >> How to reproduce:
> >>
> >> - Clean start of plain Karaf 4.3.2
> >>
> >> - feature:install pax-transx-tm-narayana
> >>
> >> Result:
> >>
> >> 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |
> pax-transx-tm-narayana   | 60 -
> org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service
> >> java.lang.reflect.InvocationTargetException: null
> >>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
> >>  at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> >>  at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> >>  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> >>  at
> org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
> ~[?:?]
> >>  at
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
> ~[?:?]
> >>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> [?:?]
> >>  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> >>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> [?:?]
> >>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> [?:?]
> >>  at java.lang.Thread.run(Thread.java:829) [?:?]
> >> Caused by: java.lang.IllegalStateException: Stream handler unavailable
> due to: null
> >>  at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
> ~[?:?]
> >>  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
> >>  at java.security.AccessController.doPrivileged(Native Method)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
> ~[?:?]
> >>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
> ~[?:?]
> >>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
> ~[?:?]
> >>  at java.security.AccessController.doPrivileged(Native Method)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]
> >>  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
> >>  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
> >>  at java.security.AccessController.doPrivileged(Native Method)
> ~[?:?]
> >>  at java.net.URLClassLoader.findClass(URLClassLoader.java:451)
> ~[?:?]
> >>  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
> >>  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
> >>  at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
> ~[?:?]
> >>  at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
> ~[?:?]
> >>  ... 11 more
> >> Caused by: java.lang.reflect.InvocationTargetException
> >>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
> >>  at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> >>  at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> >>  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> >>  at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
> ~[?:?]
> >>  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> ~[?:?]
> >>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
> >>  at
>

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Benjamin Graf

Hi JB,

I use JDK 11 as runtime environment. There is no code to compile to 
reproduce this bug just plain Karaf and pax-trans-tm-narayana from Maven 
central.


Regards

Benjamin

On 20.05.2021 10:32, Jean-Baptiste Onofre wrote:

Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB


Le 20 mai 2021 à 08:17, Benjamin Graf  a écrit :

Hi,

it seems there is a bug with embedded resources. I think it is caused by Felix 
and not Karaf itself.

How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 | 
pax-transx-tm-narayana   | 60 - 
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service
java.lang.reflect.InvocationTargetException: null
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
 at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
 at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
 at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
 at 
org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49) ~[?:?]
 at 
org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115) 
~[?:?]
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 
[?:?]
 at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
[?:?]
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
[?:?]
 at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable due to: 
null
 at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
 ~[?:?]
 at java.net.URL.openConnection(URL.java:1099) ~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
~[?:?]
 at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) 
~[?:?]
 at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) 
~[?:?]
 at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) ~[?:?]
 at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
 at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
 at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
 at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
 at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
 at jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) 
~[?:?]
 at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
 at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
 at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
 at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
 at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
 at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
 at 
org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73) 
~[?:?]
 at 
org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66) ~[?:?]
 ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
 at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
 at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
 at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
 at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
 ~[?:?]
 at java.net.URL.openConnection(URL.java:1099) ~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
~[?:?]
 at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) 
~[?:?]
 at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) 
~[?:?]
 at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
~[?:?]
 at 
jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) ~[?:?]
 at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
 at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
 at java.security.AccessController.doPrivileged(Native Method

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Grzegorz Grzybek
Hello

Mind that https://github.com/ops4j/org.ops4j.pax.transx/issues/50 was fixed
recently, but it was about missing import package.

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 10:32 Jean-Baptiste Onofre  napisał(a):

> Hi Ben,
>
> Are you using JDK 11 (for both compile and runtime) ?
>
> Regards
> JB
>
> > Le 20 mai 2021 à 08:17, Benjamin Graf  a écrit :
> >
> > Hi,
> >
> > it seems there is a bug with embedded resources. I think it is caused by
> Felix and not Karaf itself.
> >
> > How to reproduce:
> >
> > - Clean start of plain Karaf 4.3.2
> >
> > - feature:install pax-transx-tm-narayana
> >
> > Result:
> >
> > 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |
> pax-transx-tm-narayana   | 60 -
> org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service
> > java.lang.reflect.InvocationTargetException: null
> > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
> > at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> > at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> > at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> > at
> org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
> ~[?:?]
> > at
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
> ~[?:?]
> > at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> [?:?]
> > at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> > at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> [?:?]
> > at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> [?:?]
> > at java.lang.Thread.run(Thread.java:829) [?:?]
> > Caused by: java.lang.IllegalStateException: Stream handler unavailable
> due to: null
> > at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
> ~[?:?]
> > at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
> > at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
> ~[?:?]
> > at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
> ~[?:?]
> > at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
> ~[?:?]
> > at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> > at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
> ~[?:?]
> > at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
> > at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
> > at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
> ~[?:?]
> > at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
> ~[?:?]
> > ... 11 more
> > Caused by: java.lang.reflect.InvocationTargetException
> > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
> > at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> > at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> > at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> > at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
> ~[?:?]
> > at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
> > at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> > at
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
> ~[?:?]
> > at
> jdk.internal.loader.UR

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-20 Thread Jean-Baptiste Onofre
Hi Ben,

Are you using JDK 11 (for both compile and runtime) ?

Regards
JB

> Le 20 mai 2021 à 08:17, Benjamin Graf  a écrit :
> 
> Hi,
> 
> it seems there is a bug with embedded resources. I think it is caused by 
> Felix and not Karaf itself.
> 
> How to reproduce:
> 
> - Clean start of plain Karaf 4.3.2
> 
> - feature:install pax-transx-tm-narayana
> 
> Result:
> 
> 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 | 
> pax-transx-tm-narayana   | 60 - 
> org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service
> java.lang.reflect.InvocationTargetException: null
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:?]
> at 
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  ~[?:?]
> at 
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at 
> org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49) 
> ~[?:?]
> at 
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
>  ~[?:?]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  [?:?]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  [?:?]
> at java.lang.Thread.run(Thread.java:829) [?:?]
> Caused by: java.lang.IllegalStateException: Stream handler unavailable due 
> to: null
> at 
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
>  ~[?:?]
> at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
> ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
> ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 
> ~[?:?]
> at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
> at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) 
> ~[?:?]
> at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) 
> ~[?:?]
> at jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) 
> ~[?:?]
> at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
> at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
> at 
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73) 
> ~[?:?]
> at 
> org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66) 
> ~[?:?]
> ... 11 more
> Caused by: java.lang.reflect.InvocationTargetException
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:?]
> at 
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  ~[?:?]
> at 
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at 
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
>  ~[?:?]
> at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
> ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
> ~[?:?]
> at 
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 
> ~[?:?]
> at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
> at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
> at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> at jdk.internal.loader.URLC

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-19 Thread Romain Manni-Bucau
isnt it a java 11 change (for mjar useless feature)?

->
https://github.com/openjdk/jdk11u/blob/master/src/java.base/unix/classes/sun/net/www/protocol/jar/JarFileFactory.java#L154

Last time i checked OSGi ecosystem (some libs are) was not ready for this
change leading to some issues like that.

Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | Book



Le jeu. 20 mai 2021 à 08:29, Grzegorz Grzybek  a
écrit :

> Hello
>
>
> bundle://6a2c22d1-9b1f-46a3-b973-3d9276b47679_60.0:1/arjuna-5.10.6.Final.jar#runtime
> looks weird... I've never seen such URL before. Anyone can point to related
> Felix change about these URLs?
>
> I'm currently deep in Pax Web 8 refactoring and I deal with
> bundle/bundleentry resources, but this one looks strange.
>
> Normally, Felix uses bundle://30.0:0/WEB-INF/lib/primefaces-7.0.jar and
> Equinox uses
> bundleentry://30.fwk1976804832/WEB-INF/lib/primefaces-7.0.jar...
>
> regards
> Grzegorz Grzybek
>
> czw., 20 maj 2021 o 08:17 Benjamin Graf 
> napisał(a):
>
> > Hi,
> >
> > it seems there is a bug with embedded resources. I think it is caused by
> > Felix and not Karaf itself.
> >
> > How to reproduce:
> >
> > - Clean start of plain Karaf 4.3.2
> >
> > - feature:install pax-transx-tm-narayana
> >
> > Result:
> >
> > 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |
> > pax-transx-tm-narayana   | 60 -
> > org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting
> > service
> > java.lang.reflect.InvocationTargetException: null
> >  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method) ~[?:?]
> >  at
> >
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >
> > ~[?:?]
> >  at
> >
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > ~[?:?]
> >  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> >  at
> > org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
> > ~[?:?]
> >  at
> >
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
> >
> > ~[?:?]
> >  at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> > [?:?]
> >  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> >  at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> >
> > [?:?]
> >  at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> >
> > [?:?]
> >  at java.lang.Thread.run(Thread.java:829) [?:?]
> > Caused by: java.lang.IllegalStateException: Stream handler unavailable
> > due to: null
> >  at
> >
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
> >
> > ~[?:?]
> >  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
> >  at
> >
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
> >
> > ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> > ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> > ~[?:?]
> >  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> >  at
> >
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
> >
> > ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
> > ~[?:?]
> >  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
> > ~[?:?]
> >  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
> > ~[?:?]
> >  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
> >  at
> > jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
> ~[?:?]
> >  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
> >  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
> >  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> >  at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
> >  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
> >  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
> >  at
> >
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
> >
> > ~[?:?]
> >  at
> > org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
> > ~[?:?]
> >  ... 11 more
> > Caused by: java.lang.reflect.InvocationTarget

Re: Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-19 Thread Grzegorz Grzybek
Hello

bundle://6a2c22d1-9b1f-46a3-b973-3d9276b47679_60.0:1/arjuna-5.10.6.Final.jar#runtime
looks weird... I've never seen such URL before. Anyone can point to related
Felix change about these URLs?

I'm currently deep in Pax Web 8 refactoring and I deal with
bundle/bundleentry resources, but this one looks strange.

Normally, Felix uses bundle://30.0:0/WEB-INF/lib/primefaces-7.0.jar and
Equinox uses
bundleentry://30.fwk1976804832/WEB-INF/lib/primefaces-7.0.jar...

regards
Grzegorz Grzybek

czw., 20 maj 2021 o 08:17 Benjamin Graf  napisał(a):

> Hi,
>
> it seems there is a bug with embedded resources. I think it is caused by
> Felix and not Karaf itself.
>
> How to reproduce:
>
> - Clean start of plain Karaf 4.3.2
>
> - feature:install pax-transx-tm-narayana
>
> Result:
>
> 2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 |
> pax-transx-tm-narayana   | 60 -
> org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting
> service
> java.lang.reflect.InvocationTargetException: null
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
>  at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> ~[?:?]
>  at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> ~[?:?]
>  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
>  at
> org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49)
> ~[?:?]
>  at
> org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115)
>
> ~[?:?]
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> [?:?]
>  at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>
> [?:?]
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>
> [?:?]
>  at java.lang.Thread.run(Thread.java:829) [?:?]
> Caused by: java.lang.IllegalStateException: Stream handler unavailable
> due to: null
>  at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311)
>
> ~[?:?]
>  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
>
> ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
>  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750)
>
> ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725)
> ~[?:?]
>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
> ~[?:?]
>  at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
> ~[?:?]
>  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
>  at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
>  at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73)
>
> ~[?:?]
>  at
> org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66)
> ~[?:?]
>  ... 11 more
> Caused by: java.lang.reflect.InvocationTargetException
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
>  at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> ~[?:?]
>  at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> ~[?:?]
>  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
>  at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303)
>
> ~[?:?]
>  at java.net.URL.openConnection(URL.java:1099) ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815)
>
> ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758)
> ~[?:?]
>  at
> jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751)
> ~[?:?]
>  at java.security.AccessController.doPrivileged(Native Method) ~[?:?

Problem after install pax-trans-tm-narayana with Karaf 4.3.2

2021-05-19 Thread Benjamin Graf

Hi,

it seems there is a bug with embedded resources. I think it is caused by 
Felix and not Karaf itself.


How to reproduce:

- Clean start of plain Karaf 4.3.2

- feature:install pax-transx-tm-narayana

Result:

2021-05-20T08:16:02,787 | WARN  | paxtransx-config-1-thread-1 | 
pax-transx-tm-narayana   | 60 - 
org.ops4j.pax.transx.pax-transx-tm-narayana - 0.5.0 | Error starting service

java.lang.reflect.InvocationTargetException: null
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
    at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
    at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[?:?]

    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at 
org.jboss.narayana.osgi.jta.internal.Activator.doStart(Activator.java:49) 
~[?:?]
    at 
org.ops4j.pax.transx.tm.impl.AbstractActivator.run(AbstractActivator.java:115) 
~[?:?]
    at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 
[?:?]

    at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
[?:?]
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
[?:?]

    at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.IllegalStateException: Stream handler unavailable 
due to: null
    at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311) 
~[?:?]

    at java.net.URL.openConnection(URL.java:1099) ~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) 
~[?:?]

    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 
~[?:?]

    at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
    at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]

    at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    at 
org.jboss.narayana.osgi.jta.internal.OsgiServer.doStart(OsgiServer.java:73) 
~[?:?]
    at 
org.jboss.narayana.osgi.jta.internal.OsgiServer.start(OsgiServer.java:66) 
~[?:?]

    ... 11 more
Caused by: java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
    at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
    at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[?:?]

    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:303) 
~[?:?]

    at java.net.URL.openConnection(URL.java:1099) ~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:815) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:758) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:751) 
~[?:?]

    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:750) 
~[?:?]
    at 
jdk.internal.loader.URLClassPath$JarLoader.(URLClassPath.java:725) 
~[?:?]

    at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493) ~[?:?]
    at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444) ~[?:?]
    at 
jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313) ~[?:?]

    at java.net.URLClassLoader$1.run(URLClassLoader.java:455) ~[?:?]
    at java.net.URLClassLoader$1.run(URLClassLoader.java:4