IBM Worklight 6.1 - Error TRAS0033E

2019-02-15 17:41发布

问题:

This is my first time using IBM Worklight. I have followed this article.

However, when I tried to run Worklight Development Server from the Servers view, I got the following error:

TRAS0033E: Runtime injection of detailed method trace failed for class, with exception and then the server won't start.

I am using Eclipse Kepler and Worklight 6.1.

Some of the error code :

E TRAS0033E: Runtime injection of detailed method trace failed for class javax/naming/spi/InitialContextFactoryBuilder with exception java.lang.IllegalArgumentException at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at com.ibm.ws.ras.instrument.internal.main.AlpineRuntimeTransformer.transform(AlpineRuntimeTransformer.java:276) at com.ibm.ws.ras.instrument.internal.main.AlpineRuntimeTransformer.transform(AlpineRuntimeTransformer.java:337) at sun.instrument.TransformerManager.transform(Unknown Source) at sun.instrument.InstrumentationImpl.transform(Unknown Source) at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.ibm.ws.kernel.internal.classloader.BootstrapChildFirstJarClassloader.loadClass(BootstrapChildFirstJarClassloader.java:56) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.osgi.internal.loader.SystemBundleLoader.findLocalClass(SystemBundleLoader.java:117) at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

回答1:

Are you using Java JRE/JDK 8 by any chance?



回答2:

I had the same problem. I fixed setting to use Java 1.7 version.

  1. On command prompt check java -version. Ensure that is 1.7;
  2. Open Eclipse > Window > Preferences > Java > Installed JREs. Ensure that is JDK 1.7;


回答3:

This is a very old article. It is almost 2 years old.
Try this instead:

  1. Download Eclipse Java EE 4.3.1 ("Kepler" SR1)
  2. Navigate to Help > Eclipse Marketplace > search for "worklight", install Worklight Studio 6.1.0.1
  3. Once installed and Eclipse is restarted...
  4. Proceed with learning Worklight (how to create applications, etc) via the IBM Worklight Getting Started training modules


回答4:

You do not need to start the server anymore. Because Worklight Server V6.0.0 and later can support multiple Worklight projects, there are no longer Start Server and Stop Server menu options that are associated directly to the Worklight project. Instead, the server that is associated with a Worklight project is started automatically (if the server is not already running) when you perform an action against that server or adapter. For example, the target server starts when you use the Worklight Studio command Run As > Run on Worklight Development Server.

See Working with multiple Worklight Servers in Worklight Studio