Quantcast

null pointer exception blocker

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

null pointer exception blocker

hansg01
Hi

We are facing issues with glu. Our setup is console and agent running on version 5.5.1 with literally anything.

java.lang.NullPointerException: null
    at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124)
    at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2418)
    at groovy.lang.ExpandoMetaClass.setProperty(ExpandoMetaClass.java:1166)
    at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3347)
    at org.codehaus.groovy.runtime.InvokerHelper.setProperty(InvokerHelper.java:196)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.putAt(DefaultGroovyMethods.java:250)
    at org.codehaus.groovy.runtime.dgm$417.invoke(Native Method)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
    at org.linkedin.glu.agent.rest.client.RestClientFactoryImpl.createRestClient(RestClientFactoryImpl.groovy:62)
    at org.linkedin.glu.agent.rest.client.RestClientFactoryImpl.withRestClient(RestClientFactoryImpl.groovy:79)
    at org.linkedin.glu.agent.rest.client.RestClientFactory$withRestClient.call(Native Method)
    at org.linkedin.glu.agent.rest.client.AgentFactoryImpl.withRemoteAgent(AgentFactoryImpl.groovy:55)
    at org.linkedin.glu.agent.rest.client.AgentFactory$withRemoteAgent.call(Native Method)
    at org.linkedin.glu.orchestration.engine.core.action.execution.ActionExecutionFactoryImpl.withAgent(ActionExecutionFactoryImpl.groovy:217)
    at org.linkedin.glu.orchestration.engine.core.action.execution.ActionExecutionFactoryImpl.this$2$withAgent(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
    at org.linkedin.glu.orchestration.engine.core.action.execution.ActionExecutionFactoryImpl$_closure3.doCall(ActionExecutionFactoryImpl.groovy:167)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:164)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:570)
    at org.linkedin.glu.orchestration.engine.core.action.execution.ClosureActionExecution.call(ClosureActionExecution.groovy:32)
    at org.linkedin.glu.orchestration.engine.action.execution.ActionDescriptorStepExecutor.executeLeafStep(ActionDescriptorStepExecutor.java:54)
    at org.linkedin.glu.provisioner.plan.impl.StepExecutionContext.executeLeafStep(StepExecutionContext.java:94)
    at org.linkedin.glu.provisioner.plan.impl.LeafStepExecutor.doExecute(LeafStepExecutor.java:66)
    at org.linkedin.glu.provisioner.plan.impl.AbstractStepExecutor$1.call(AbstractStepExecutor.java:164)
    at org.linkedin.glu.provisioner.plan.impl.AbstractStepExecutor$1.call(AbstractStepExecutor.java:145)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: null pointer exception blocker

frenchyan
Administrator
can you please provide a little bit more details?

Where is the exception (I am assuming the console log file..) ?
What were you doing exactly?
Is it 100% reproducible?

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

Re: null pointer exception blocker

frenchyan
Administrator
In reply to this post by hansg01
Also how did you setup your environment? Did you use the glu meta model and the setup tool? Or did you do it manually?​ 

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

Re: null pointer exception blocker

hansg01
In reply to this post by frenchyan
The exception is in the console log file.

I am simply doing a deployment.

Yes it occurs every single time.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: null pointer exception blocker

hansg01
This post was updated on .
In reply to this post by frenchyan
The agent and the console both are running on the same node running version 5.5.1. I used using glu meta model and setup tool to setup the environment on this node.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: null pointer exception blocker

frenchyan
Administrator
Well that is not a lot of details to figure out what is wrong. But from what I can tell you:


* according to javadoc, ConcurrentHashMap does not allow null key or value

* since the key is obviously not null that means that _sslContext is null


* which probably means that the sslEnabled flag is set for the agent but not for the console

If it works with the tutorial, then it is certainly a configuration issue and I would strongly suggest to use the setup tool and see if the problem goes away (unless it is an issue when disabling ssl in the setup). So give it a try and let me know

Yan

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

Re: null pointer exception blocker

hansg01
Thanks Yan. Issue has now been fixed.

It was related to sslContext only, zookeeper has sslEnabled flag set as true which created problems.
Loading...