IBM Support

Internal error "Starting Swagger UI server..." NoClassDefFoundError org.eclipse.jetty.server.nio.SelectChannelConnector

Question & Answer


Question

Why is the Eclipse Neon Explorer Aqua z/OS Connect Enterprise Edition (zCEE) API Editor Plug-in embedded Swagger UI returning Internal error occurred during: "Starting Swagger UI server...", NoClassDefFoundError org.eclipse.jetty.server.nio.SelectChannelConnector?

I downloaded the Eclipse Neon (4.6) IDE on my Windows 7 system. I tried both the 32-bit and 64-bit with the IBM Java 8. I installed the zCEE API Editor plugin from the z/OS Explorer Aqua downloads site as it shows it supports Eclipse 4.2 Luna or new ...

alt text

I can connect my zCEE API Editor plugin to my zCEE host server, but when I right-click on an API to open the embedded Swagger UI...

alt text

... I get this popup error...

alt text

If I try to open another API or even the same one, I get a NullPointerException...

alt text

I would like to know how to get the embedded Swagger UI to launch in Neon.

Answer

I downloaded both a Windows 7 32-bit Eclipse Neon Java IDE and an IBM Java 8.0.4.1 JRE 32-bit and installed the z/OS Connect API Editor and get the same "Internal error occurred NoClassDefFoundError org.eclipse.jetty.server.nio.SelectChannelConnector" when opening the Swagger UI.

I then downloaded both a Windows 7 64-bit Eclipse Neon Java IDE and an IBM Java 8.0.4.1 JRE 64-bit and installed the z/OS Connect API Editor and my 64-bit did not work. I still get the same error opening the Swagger UI.

I set "Verbose logging" on in my preferences for z/OS Connect and when I open my "Error Log" view, I see this exception:

 eclipse.buildId=4.6.2.M20161124-1400
 java.fullversion=JRE 1.8.0 IBM J9 2.8 Windows 7 x86-32 20170209_336038
 (JIT enabled, AOT enabled)
 J9VM - R28_20170209_0201_B336038
 JIT  - tr.r14.java.green_20170125_131456
 GC   - R28_20170209_0201_B336038
 J9CL - 20170209_336038
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.java.product
 Command-line arguments:  -data
 file:/C:/Users/IBM_ADMIN/workspace-Eclipse-Neon-32/ -os win32 -ws win32
 -arch x86 -product org.eclipse.epp.package.java.product
 
 org.eclipse.core.jobs
 Error
 Tue Mar 07 16:40:03 EST 2017
 An internal error occurred during: "Starting Swagger UI server...".
 
 java.lang.NoClassDefFoundError:
 org.eclipse.jetty.server.nio.SelectChannelConnector
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController.se
 tupServer(ZosConnectSwaggerUIController.java:346)
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController.ac
 cess$3(ZosConnectSwaggerUIController.java:333)
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController$4.
 run(ZosConnectSwaggerUIController.java:293)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 Caused by: java.lang.ClassNotFoundException:
 org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by
 com.ibm.zosconnect.ui.controllers_2.0.403.201702170001
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLo
 ader.java:461)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.jav
 a:372)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.jav
 a:364)
  at
 org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClass
 Loader.java:161)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
  ... 4 more

I then see a NPE exception...

 eclipse.buildId=4.6.2.M20161124-1400
 java.fullversion=JRE 1.8.0 IBM J9 2.8 Windows 7 x86-32 20170209_336038
 (JIT enabled, AOT enabled)
 J9VM - R28_20170209_0201_B336038
 JIT  - tr.r14.java.green_20170125_131456
 GC   - R28_20170209_0201_B336038
 J9CL - 20170209_336038
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.java.product
 Command-line arguments:  -data
 file:/C:/Users/IBM_ADMIN/workspace-Eclipse-Neon-32/ -os win32 -ws win32
 -arch x86 -product org.eclipse.epp.package.java.product
 
 com.ibm.zosconnect.ui.controllers
 Error
 Tue Mar 07 16:40:04 EST 2017
 
 
 java.lang.NullPointerException
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController.ge
 tApiDocsDirForConnection(ZosConnectSwaggerUIController.java:206)
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController.do
 wnloadSwagger(ZosConnectSwaggerUIController.java:232)
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController.ac
 cess$1(ZosConnectSwaggerUIController.java:216)
  at
 com.ibm.zosconnect.ui.controllers.jetty.ZosConnectSwaggerUIController$2.
 run(ZosConnectSwaggerUIController.java:138)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I reviewed with the z/OS Connect API Editor Change team and they confirmed that the z/OS Connect EE API Editor plug-in is ONLY supported in Eclipse Luna (4.4) at this time.

The Aqua download site information will be updated to reflect this.

Bill Bulfin
IBM CICS and z/OS EE Level2 support

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSNPJM","label":"IBM z\/OS Connect"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server;zCEE

Document Information

Modified date:
14 February 2023

UID

dwa1361194