Could not create the view:An unexpected exception was thrown

Starting Servoy-Developer (6.0.1) I get the message: “Could not create the view: An unexpected exception was thrown”, and I have no access to the Solution-Explorer.
The details are as follows:

java.lang.NullPointerException
at com.servoy.eclipse.ui.views.solutionexplorer.actions.NewPostgresDbAction.setEnabledStatus(NewPostgresDbAction.java:69)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerView.createActions(SolutionExplorerView.java:2311)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerView.createPartControl(SolutionExplorerView.java:665)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:529)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:666)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:574)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568 )
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2632)
at org.eclipse.ui.internal.WorkbenchWindow$27.run(WorkbenchWindow.java:2992)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2973)
at org.eclipse.ui.internal.WorkbenchWindow$21.runWithException(WorkbenchWindow.java:2290)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1562)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2567)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438 )
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408 )

Thanks for help, Michael

Hi, I suppose you have a problem with postgres. You can try to start application server and you see if that run correctly.

do you have any errors above that in the log files? (application_server\servoy_log or workspace.log)

Hello,

in the application_server\servoy_log there is no special entry but the workspace.log contains the attached (very long) error message.

Could it be a java problem? When I sent my tax declaration to the tax office the ELSTER software said, the java-encoding is not high enough and forced me to install a higher encoding.

log.txt (66.9 KB)

what java did you install?
It seems that you are missing some kind of security packages (in what country did you download it?)

the problem area is this:

java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
at javax.crypto.Cipher.getInstance(Cipher.java:498)
at com.servoy.j2db.util.Settings.load(Settings.java:304)
at com.servoy.j2db.util.Settings.loadFromFile(Settings.java:203)
at com.servoy.j2db.server.main.ApplicationServer.loadSettings(ApplicationServer.java:567)

thats why everything fails, because our settings file can’t be loaded.

It could be that java 7 is the problem for you:

http://translate.google.com/translate?s … 2F&act=url

The installed Java version is 7 (Build 1.7.0-b147), the country is Germany. I did not download it, the updates install automatically.
Thanks for your reply.

Hello Johan,
a part of the problem is solved, I uninstalled java 7, returned to 6 and Servoy starts well again.

But now all postgres database servers have disappeared and it says “Server doesn’t listen”.

The question for me is if this problem can also occur on the customer’s side with a deployed Servoy application. A normal user could not handle these problems.

i also am using Java 7 already, i haven’t noticed that at all.
But somehow you got a version that was stripped out of some security/encryption packages…
This only is a problem for a developer or application server, not an end user using the client.

I guess your postgresql is not started somehow. Are you sure that it is installed correctly?

you can always try to start this:

postgres_db\bin\pg_ctl start -D database -l postgres_db\postgres_log.txt

in the servoy-install\application_server\ dir

This did not work, I did not get Postgres running. Now I reinstallad Servoy and Postgres and it works again.
Except the loss of time everything is allright.
Johan, thank you very much for your help.
Michael