Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10121

Cxf-soap, keycloak-httpservice quickstart - there is a java.io.FileNotFoundException in log during servlet alias change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.3
    • fuse-7.3
    • Examples
    • None
    • % %
    • Fuse 7.3 Sprint 41 - Dev #2

    Description

      Run cxf-soap quickstart according to steps in README.md.

      Try to change servlet alias according option 2 (in chapter Changing /cxf servlet alias) via shell:

      config:edit org.apache.cxf.osgi
      config:property-set org.apache.cxf.servlet.context /custom
      config:update

      Look into log and see an exception there.

      Important:

      • Error is not happening with fuse-karaf 7.3.0.fuse-730020 and quickstart built from 8fc655934b35af7e33e758bfc1ae96f77a8095f0.
      • Error is happening with fuse-karaf 7.3.0.fuse-730020 (or fuse-karaf 7.3.0.fuse-730020) and quickstart built from 44504b276a1b3e02fd0bd883f23f15f1585a96f9

      --------------------------------------------------------------------------------------

      Run security/keycloak/keycloak-httpservice quickstart according to steps in https://github.com/jboss-fuse/karaf-quickstarts/tree/7.x.redhat-7-x/security/keycloak/keycloak-httpservice. Use first profile (httpservice-default), undeploy bundle and there is an exception in log:

      2019-02-13 10:48:18,925 | INFO  | pipe-uninstall 237   | p.w.s.u.i.FileSessionPersistence | 221 - org.ops4j.pax.web.pax-web-undertow - 7.2.8 | Error persisting sessions for deployment 
      java.io.FileNotFoundException: /home/jondruse/fuse/2019-02-01_ENTESB-9797_jdk11-quickstarts/f13/fuse-karaf-7.3.0.fuse-730043/data/web-sessions (Is a directory)
      	at java.io.FileOutputStream.open0(Native Method) ~[?:?]
      	at java.io.FileOutputStream.open(FileOutputStream.java:298) ~[?:?]
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:237) ~[?:?]
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:187) ~[?:?]
      	at org.ops4j.pax.web.service.undertow.internal.FileSessionPersistence.persistSessions(FileSessionPersistence.java:54) [221:org.ops4j.pax.web.pax-web-undertow:7.2.8]
      	at io.undertow.servlet.handlers.SessionRestoringHandler.stop(SessionRestoringHandler.java:108) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:594) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:589) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at io.undertow.servlet.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:603) [33:io.undertow.servlet:1.4.18.SP7-redhat-1]
      	at org.ops4j.pax.web.service.undertow.internal.Context.destroyHandler(Context.java:323) [221:org.ops4j.pax.web.pax-web-undertow:7.2.8]
      	at org.ops4j.pax.web.service.undertow.internal.Context.destroy(Context.java:233) [221:org.ops4j.pax.web.pax-web-undertow:7.2.8]
      	at org.ops4j.pax.web.service.undertow.internal.Context.stop(Context.java:180) [221:org.ops4j.pax.web.pax-web-undertow:7.2.8]
      	at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregisterConstraintMapping(HttpServiceStarted.java:1135) [219:org.ops4j.pax.web.pax-web-runtime:7.2.8]
      	at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregisterConstraintMapping(HttpServiceProxy.java:404) [219:org.ops4j.pax.web.pax-web-runtime:7.2.8]
      	at org.jboss.fuse.quickstarts.security.keycloak.hs.DefaultHttpContextActivator.stop(DefaultHttpContextActivator.java:95) [237:keycloak-httpservice:7.3.0.redhat-SNAPSHOT]
      	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719) [?:?]
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2636) [?:?]
      	at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2750) [?:?]
      	at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1055) [?:?]
      	at org.apache.karaf.bundle.command.Uninstall.executeOnBundle(Uninstall.java:34) [121:org.apache.karaf.bundle.core:4.2.3.jdk11]
      	at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:65) [121:org.apache.karaf.bundle.core:4.2.3.jdk11]
      	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [121:org.apache.karaf.bundle.core:4.2.3.jdk11]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [144:org.apache.karaf.shell.core:4.2.3.jdk11]
      	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:834) [?:?]
      2019-02-13 10:48:18,936 | INFO  | pipe-uninstall 237   | o.p.w.s.i.HttpServiceFactoryImpl | 219 - org.ops4j.pax.web.pax-web-runtime - 7.2.8 | Unbinding bundle: [keycloak-httpservice [237]]
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              jondruse@redhat.com Jiri Ondrusek
              Jan Kasztura Jan Kasztura (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: