Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352211

Summary: [Gogo] NPE in the logs when telnet is starting up
Product: [RT] Virgo Reporter: Chris Frost <eclipse>
Component: runtimeAssignee: Borislav Kapukaranov <b.kapukaranov>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: b.kapukaranov, glyn.normington, l.kirchev
Version: 3.0.0.M06   
Target Milestone: 3.0.0.RC1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 352195    
Bug Blocks:    

Description Chris Frost CLA 2011-07-15 09:35:53 EDT
[2011-07-15 12:37:02.912] INFO  kernel-dm-7                  o.s.osgi.service.importer.support.OsgiServiceProxyFactoryBean     Looking for mandatory OSGi service dependency for bean [kernelConfig] matching filter (objectClass=org.eclipse.virgo.kernel.core.KernelConfig) 
[2011-07-15 12:37:02.912] INFO  kernel-dm-7                  o.s.osgi.service.importer.support.OsgiServiceProxyFactoryBean     Found mandatory OSGi service for bean [kernelConfig] 
[2011-07-15 12:37:02.915] INFO  iLogServiceListener@566798eb org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.console.supportability_1.0.0.N20110626-2000, Service 140, ServiceEvent REGISTERED 
[2011-07-15 12:37:02.931] ERROR iLogServiceListener@566798eb org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.cm_1.0.300.v20101204, null java.lang.NullPointerException: null
	at org.eclipse.equinox.console.telnet.TelnetCommand$TelnetConfigurator.updated(TelnetCommand.java:206)
	at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:181)
	at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)

[2011-07-15 12:37:02.936] INFO  iLogServiceListener@566798eb org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.console.supportability_1.0.0.N20110626-2000, Service 141, ServiceEvent REGISTERED 
[2011-07-15 12:37:02.939] INFO  iLogServiceListener@566798eb org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.console.supportability_1.0.0.N20110626-2000, Service 142, ServiceEvent REGISTERED 
[2011-07-15 12:37:02.939] INFO  kernel-dm-7                  o.s.osgi.service.exporter.support.OsgiServiceFactoryBean          Publishing service under classes [{org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer}] 
[2011-07-15 12:37:02.940] ERROR iLogServiceListener@566798eb org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.cm_1.0.300.v20101204, null java.lang.NullPointerException: null
	at org.eclipse.equinox.console.ssh.SshCommand$SshConfigurator.updated(SshCommand.java:269)
	at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:181)
	at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)

[2011-07-15 12:37:02.941] INFO  kernel-dm-7                  .a.d.i.BlueprintEventPostingOsgiBundleApplicationContextListener  Sending event to topic 'org/osgi/service/blueprint/container/GRACE_PERIOD' with properties '{bundle.id=36, bundle.symbolicName=org.eclipse.virgo.kernel.model, mandatory=[Z@1edb587, timestamp=1310729822940, dependencies=[Ljava.lang.String;@1d28b30e, type=6, bean.name=[Ljava.lang.String;@5b036b16, bundle=org.eclipse.virgo.kernel.model_3.0.0.D-20110708095805 [36], bundle.version=3.0.0.D-20110708095805}' 
[2011-07-15 12:37:02.941] INFO  kernel-dm-7                  o.e.v.k.c.internal.blueprint.ApplicationContextDependencyMonitor  Service dependency 


To recreate,
1. take a fresh build or web-server and start it.
2. Stop it and look in the logs, about 380 lines in.
Comment 1 Chris Frost CLA 2011-07-15 09:48:31 EDT
This, sometimes, also results in error messages during shutdown as the org.eclipse.equinox.console.supportability bundle tries to shutdown the telnet service but it didn't start in the first place.
Comment 2 Lazar Kirchev CLA 2011-07-18 02:53:10 EDT
(In reply to comment #1)
> This, sometimes, also results in error messages during shutdown as the
> org.eclipse.equinox.console.supportability bundle tries to shutdown the telnet
> service but it didn't start in the first place.

Is there any additional step to reproduce the problem? I tried both on Mac and Windows, but the NPE did not occur. Did it happen more than once on your setup?
Comment 3 Chris Frost CLA 2011-07-18 05:00:35 EDT
Hi,

I just tried it on M06 and a recent Snapshot of web-server, unziped it and started it with no arguments or modification at all.

On the M06 build I got:

I have TelnetServer errors at line 1056.
sshServer errors at line 1572
and then the NPEs starting at around 1718.

On the Snapshot build:

NPEs for Telnet and SSH at line 382. Exactly as given above.


So it would seem things have changed since M06, it has to be a recent web-server build. It is also happening reliably, I tried 6 startups in a row just now, using only the '-clean' option and I got these errors out 5 of the 6 times. So for me it's not every time but is most of them.

Chris.
Comment 4 Borislav Kapukaranov CLA 2011-07-19 05:06:07 EDT
The NPE is fixed and will appear in the latest build of the supportability bundle.
Its upload in EBR is tracked in bug 352195
Comment 5 Glyn Normington CLA 2011-07-19 05:08:59 EDT
(In reply to comment #4)
> The NPE is fixed and will appear in the latest build of the supportability
> bundle.

Great.

> Its upload in EBR is tracked in bug 352195

Noting the pre-req.