Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahboob
Contributor
Contributor

Karaf Shell Error

Has anyone faced an issue where the Karaf dies and comes back up after a good few minutes (like 10 min or more). When this error occurs I am kicked out of Karaf client and can't log back in during interim (get the following error --> "Failed to get the session."). This happens if I deploy/undeploy or update the .cfg file etc consistently. I am pasting the log, which highlights the error (not sure how helpful it will be) !!

 

 

2019-04-04T16:53:57,064 | INFO | features-1-thread-1 | nsport.http.osgi.ServletExporter 125 | 62 - org.apache.cxf.cxf-rt-transports-http - 3.2.4 | Registering new instance of "/cxf" servlet
2019-04-04T16:53:57,504 | INFO | features-1-thread-1 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.cxf.cxf-rt-transports-http_3.2.4 [62]]
2019-04-04T16:53:57,506 | INFO | features-1-thread-1 | etty.internal.HttpServiceContext 164 | 187 - org.ops4j.pax.web.pax-web-jetty - 6.0.9 | ServletContext service already removed
2019-04-04T16:53:57,509 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.cxf.cxf-rt-rs-service-description-swagger-ui/3.2.4
2019-04-04T16:53:57,510 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-jdbc/4.3.14.RELEASE_1
2019-04-04T16:53:57,511 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-tx/4.3.14.RELEASE_1
2019-04-04T16:53:57,511 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1
2019-04-04T16:53:57,512 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.jasypt-spring31/1.9.2.1
2019-04-04T16:53:57,513 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-stax/2.2.1
2019-04-04T16:53:57,513 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-policy-stax/2.2.1
2019-04-04T16:53:57,514 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-dom/2.2.1
2019-04-04T16:53:57,515 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-common/2.2.1
2019-04-04T16:53:57,516 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-context-support/4.3.14.RELEASE_1
2019-04-04T16:53:57,516 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-context/4.3.14.RELEASE_1
2019-04-04T16:53:57,517 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.not-yet-commons-ssl/0.3.11.1
2019-04-04T16:53:57,518 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.ops4j.pax.web.pax-web-runtime/6.0.9
2019-04-04T16:53:57,524 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.webconsole.plugins.event_1.1.8 [79]]
2019-04-04T16:53:57,529 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.instance_4.1.5 [119]]
2019-04-04T16:53:57,530 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.http_4.1.5 [118]]
2019-04-04T16:53:57,538 | INFO | paxweb-config-5-thread-2 | pport.AbstractApplicationContext 984 | 321 - org.apache.activemq.activemq-web-console - 5.15.2 | Closing Root WebApplicationContext: startup date [Thu Apr 04 16:37:17 CEST 2019]; root of context hierarchy
2019-04-04T16:53:57,544 | INFO | paxweb-config-5-thread-2 | r.handler.ContextHandler$Context 2167 | 171 - org.eclipse.jetty.util - 9.3.21.v20170918 | Destroying Spring FrameworkServlet 'dispatcher'
2019-04-04T16:53:57,544 | INFO | paxweb-config-5-thread-2 | pport.AbstractApplicationContext 984 | 321 - org.apache.activemq.activemq-web-console - 5.15.2 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Thu Apr 04 16:37:17 CEST 2019]; parent: Root WebApplicationContext
2019-04-04T16:53:57,548 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.activemq.activemq-web-console_5.15.2 [321]]
2019-04-04T16:53:57,552 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.ops4j.pax.web.pax-web-extender-whiteboard_6.0.9 [328]]
2019-04-04T16:53:57,552 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.webconsole.plugins.ds_2.0.8 [78]]
2019-04-04T16:53:57,554 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.inventory_1.0.4 [75]]
2019-04-04T16:53:57,559 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.console_4.1.5 [115]]
2019-04-04T16:53:57,563 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.gogo_4.1.5 [117]]
2019-04-04T16:53:57,563 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.features_4.1.5 [116]]
2019-04-04T16:53:57,564 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.jolokia.osgi_1.3.5 [272]]
2019-04-04T16:53:57,578 | INFO | features-1-thread-1 | x.web.service.internal.Activator 224 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Pax Web stopped
2019-04-04T16:53:57,581 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.karaf.shell.ssh/4.1.5
2019-04-04T16:53:57,583 | INFO | features-1-thread-1 | mpl.action.osgi.CommandExtension 146 | 111 - org.apache.karaf.shell.core - 4.1.5 | Unregistering commands for bundle org.apache.karaf.shell.ssh/4.1.5
2019-04-04T16:53:57,625 | ERROR | Karaf ssh console user tadmin | he.karaf.shell.support.ShellUtil 149 | 111 - org.apache.karaf.shell.core - 4.1.5 | Exception caught while executing command
java.lang.NullPointerException: null
at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:348) [1110683p000009MA5A.pngrg.apache.karaf.shell.core:4.1.5]
at java.lang.Thread.run(Thread.java:748) [?:?]
2019-04-04T16:53:57,628 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.opensaml/3.3.0.2
2019-04-04T16:53:57,629 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.jaxb-xjc/2.2.11.1
2019-04-04T16:53:57,630 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.ops4j.pax.logging.pax-logging-log4j2/1.10.1

 

 

Thanks,

Mahboob

Labels (1)
  • Other

2 Replies
Anonymous
Not applicable


@mr wrote:

Has anyone faced an issue where the Karaf dies and comes back up after a good few minutes (like 10 min or more). When this error occurs I am kicked out of Karaf client and can't log back in during interim (get the following error --> "Failed to get the session."). This happens if I deploy/undeploy or update the .cfg file etc consistently. I am pasting the log, which highlights the error (not sure how helpful it will be) !!

 

 

2019-04-04T16:53:57,064 | INFO | features-1-thread-1 | nsport.http.osgi.ServletExporter 125 | 62 - org.apache.cxf.cxf-rt-transports-http - 3.2.4 | Registering new instance of "/cxf" servlet
2019-04-04T16:53:57,504 | INFO | features-1-thread-1 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.cxf.cxf-rt-transports-http_3.2.4 [62]]
2019-04-04T16:53:57,506 | INFO | features-1-thread-1 | etty.internal.HttpServiceContext 164 | 187 - org.ops4j.pax.web.pax-web-jetty - 6.0.9 | ServletContext service already removed
2019-04-04T16:53:57,509 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.cxf.cxf-rt-rs-service-description-swagger-ui/3.2.4
2019-04-04T16:53:57,510 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-jdbc/4.3.14.RELEASE_1
2019-04-04T16:53:57,511 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-tx/4.3.14.RELEASE_1
2019-04-04T16:53:57,511 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1
2019-04-04T16:53:57,512 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.jasypt-spring31/1.9.2.1
2019-04-04T16:53:57,513 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-stax/2.2.1
2019-04-04T16:53:57,513 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-policy-stax/2.2.1
2019-04-04T16:53:57,514 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-dom/2.2.1
2019-04-04T16:53:57,515 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.wss4j.wss4j-ws-security-common/2.2.1
2019-04-04T16:53:57,516 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-context-support/4.3.14.RELEASE_1
2019-04-04T16:53:57,516 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.spring-context/4.3.14.RELEASE_1
2019-04-04T16:53:57,517 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.not-yet-commons-ssl/0.3.11.1
2019-04-04T16:53:57,518 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.ops4j.pax.web.pax-web-runtime/6.0.9
2019-04-04T16:53:57,524 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.webconsole.plugins.event_1.1.8 [79]]
2019-04-04T16:53:57,529 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.instance_4.1.5 [119]]
2019-04-04T16:53:57,530 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.http_4.1.5 [118]]
2019-04-04T16:53:57,538 | INFO | paxweb-config-5-thread-2 | pport.AbstractApplicationContext 984 | 321 - org.apache.activemq.activemq-web-console - 5.15.2 | Closing Root WebApplicationContext: startup date [Thu Apr 04 16:37:17 CEST 2019]; root of context hierarchy
2019-04-04T16:53:57,544 | INFO | paxweb-config-5-thread-2 | r.handler.ContextHandler$Context 2167 | 171 - org.eclipse.jetty.util - 9.3.21.v20170918 | Destroying Spring FrameworkServlet 'dispatcher'
2019-04-04T16:53:57,544 | INFO | paxweb-config-5-thread-2 | pport.AbstractApplicationContext 984 | 321 - org.apache.activemq.activemq-web-console - 5.15.2 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Thu Apr 04 16:37:17 CEST 2019]; parent: Root WebApplicationContext
2019-04-04T16:53:57,548 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.activemq.activemq-web-console_5.15.2 [321]]
2019-04-04T16:53:57,552 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.ops4j.pax.web.pax-web-extender-whiteboard_6.0.9 [328]]
2019-04-04T16:53:57,552 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.webconsole.plugins.ds_2.0.8 [78]]
2019-04-04T16:53:57,554 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.felix.inventory_1.0.4 [75]]
2019-04-04T16:53:57,559 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.console_4.1.5 [115]]
2019-04-04T16:53:57,563 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.gogo_4.1.5 [117]]
2019-04-04T16:53:57,563 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.apache.karaf.webconsole.features_4.1.5 [116]]
2019-04-04T16:53:57,564 | INFO | paxweb-config-5-thread-2 | .internal.HttpServiceFactoryImpl 43 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Unbinding bundle: [org.jolokia.osgi_1.3.5 [272]]
2019-04-04T16:53:57,578 | INFO | features-1-thread-1 | x.web.service.internal.Activator 224 | 188 - org.ops4j.pax.web.pax-web-runtime - 6.0.9 | Pax Web stopped
2019-04-04T16:53:57,581 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.karaf.shell.ssh/4.1.5
2019-04-04T16:53:57,583 | INFO | features-1-thread-1 | mpl.action.osgi.CommandExtension 146 | 111 - org.apache.karaf.shell.core - 4.1.5 | Unregistering commands for bundle org.apache.karaf.shell.ssh/4.1.5
2019-04-04T16:53:57,625 | ERROR | Karaf ssh console user tadmin | he.karaf.shell.support.ShellUtil 149 | 111 - org.apache.karaf.shell.core - 4.1.5 | Exception caught while executing command
java.lang.NullPointerException: null
at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:348) [1110683p000009MA5A.pngrg.apache.karaf.shell.core:4.1.5]
at java.lang.Thread.run(Thread.java:748) [?:?]
2019-04-04T16:53:57,628 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.opensaml/3.3.0.2
2019-04-04T16:53:57,629 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.apache.servicemix.bundles.jaxb-xjc/2.2.11.1
2019-04-04T16:53:57,630 | INFO | features-1-thread-1 | rnal.service.FeaturesServiceImpl 1286 | 11 - org.apache.karaf.features.core - 4.1.5 | org.ops4j.pax.logging.pax-logging-log4j2/1.10.1

 

 

Thanks,

Mahboob


The exit command goes to the parent subshell iTunes Login

Anonymous
Not applicable

Hello @mr 

Could you please give us a more bit description to repro your issue? On which talend esb build version you got that?

Please have a look at this jira issue:https://jira.talendforge.org/browse/TESB-21576 to see if it is what you are looking for?

Best regards

Sabrina