Eclipse Null Pointer when adding HTML under skin folder - ibm-mobilefirst

I have a simple hybrid App for Android phones. I have a skin folder created for Android tablets. I create an HTML file under the android.tablet but if this HTML file name match the same name of the HTML file under common folder then Eclipse shows a pop up error message that says:
'Building Workspace' has encountered a problem
Errors occurred during the build.
Java.Lang.NullPointerException
I have Eclipse Kepler SR1 64bits on OS X I get same error in Eclipse Juno on Win7.
This is the exception:
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
org.eclipse.core.runtime.CoreException: java.lang.NullPointerException
at com.worklight.studio.plugin.utils.PluginUtils.toCoreException(PluginUtils.java:138)
at com.worklight.studio.plugin.builders.PreviewResourceDeltaVisitor.visit(PreviewResourceDeltaVisitor.java:112)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
at com.worklight.studio.plugin.builders.WorklightProjectBuilder.incrementalBuild(WorklightProjectBuilder.java:73)
at com.worklight.studio.plugin.builders.WorklightProjectBuilder.build(WorklightProjectBuilder.java:61)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.NullPointerException
at com.worklight.studio.plugin.builders.PreviewResourceDeltaVisitor.visit(PreviewResourceDeltaVisitor.java:78)
... 19 more

I cannot confirm this using Worklight 6.1.0:
Created new project and application, "test"
Added the Android environment
Add a skin to the Android environment, "android.skin"
Copied common\index.html to android.skin\
No pop-up
Changed the HTML a bit
Run As > Run on Worklight Server
No pop-up
Suggestions:
Try with a new workspace
Close Eclipse and follow these instructions to delete the wlBuildResources folder

Related

NullPointerException in SetupUIPlugin.performStartup()

I developed a plug-in project using elipse and it was working fine as expected. I then exported this project as an archive file and imported it to a new workspace. On executing the project is the new workspace I get the below null-pointer exception. There have been few posts on such kind of errors in eclipse forums, but I could not find anything concrete. Please let me know if you have faced such an issue before.
!ENTRY org.eclipse.oomph.setup.ui 2 0 2017-04-10 22:11:10.525
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:443)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$5(SetupUIPlugin.java:414)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:253)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Two potential fixes reported here: java.lang.NullPointerException when launching Eclipse would be to:
clean your .metadata folder and re-import the projects.
or
Right click on project > Select Run As > Run Configurations Click on Select Other link next to Using VisualVM Launcher Select Eclipse EDT launcher Click ok

How to import sample codename one demos in IntelliJ

I have downloaded the official codename one demos from here : https://github.com/codenameone/codenameone-demos
I opened one of the projects ( such as KitchenSink or Dr.Sbaitso ) in IntelliJ by going to File-> Open -> Selecting a project folder (KitchenSink).
I get the following error if I try to run the project:
Exception in thread "main" java.lang.ClassNotFoundException: com.codename1.impl.javase.Simulator
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0
Do I need to add some library files?Please share the process. Also, is there a way to automate this step(adding libraries) whenever we open a codename one project? For example, If I import an existing Android project, IntelliJ/Android Studio automatically configures it.
Thanks in Advance!
I suggest creating a new project with that name. Then copying the code from the demo. This will provide the libraries necessary to compile and the IntelliJ specific files.
Ideally we'll make this process simpler like we did on Eclipse/NetBeans but we currently don't have a dedicated IDEA plugin developer on staff.

IBM Worklight 6.0 - Internal error occurred during: Worklight application builder

This is my first worklight app. I get this error when I Build All and Deploy after creating the project (without including any code):
An internal error occurred during: "Worklight application builder".
Illegal character in path at index 5: /Todo
Project/console/api/applications/upload
Create a new Worklight project or rename the current project so that there won't be any spaces in the project name. That is: "TodoProject" instead of "Todo Project". Deployment will then pass.
I have opened a defect for this. Thanks.

native library in an application Client

I'm using jogl in an application that is deploeyd from a glassfish server .
I have tested the part using jogl in a jse and it works fine.
When i paste the code and add the libraries and run the programm via netbeans it didn't work.
I get this exception:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
What can i do to fix this problems ?
Thanks
In NetBeans under File / Project Properties, select "Run" from the "Categories" tree. In the "VM Options" box, add -Djava.library.path="<full path to your library>" with the quotation marks.

wsdl2java codegen eclipse plugin- java.lang.reflect.invocationtargetexception

I had added the Axis2_Codegen_Wizard_1.3.0,Axis2_Service_Archiver_1.3.0 to eclipse plugin. On clicking finish button, after I go through all the steps which include specifying wsdl file path and output path, I a pop up with following error.
An error occurred while completing the process
java.lang.reflect.invocationtargetexception
Any idea ?
Thanks
-Aj
Well, the problem was solved on upgrading to Eclipse IDE 3.6.