exclamation-circle [Solved] NullPointerException on Project Creation

5 years 8 months ago #2163 by Wayne-Riesterer
Hello

Here is my setup:

Version 3.0.0 (Open Source)
Build: 201309241706
Metamodel: 9017
System: linux (3.7-trunk-amd64)
Architecture: x86_64

I get the following:
  • On creating a New Project
  • InternalError
  • Reason > org.eclipse.e4.core.di.injectionException:java.lang.NullPointerException

I have done the following to explore it:
  • Checked that I have a valid workspace
  • Changed the workspace
  • Changed the project name
  • Checked an unchecked the Java checkbox

I noticed that starting Modelio in Linux should be done using ./modelio.sh, but this file is not included in the archive. All I can find is an executable called modelio.

Can you suggest what is going on and how to get this program working.


Regards - Wayne

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2164 by osl
Hi Wayne,

To start Modelio 3 on a Linux platform, use:
./modelio
[/color]

You can also activate a console log:
./modelio -consoleLog
[/color]

Can you post the contents of the console log here as well as your Linux distribution (name and version)?

Best regards

Go pro

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2166 by osl
Hi again,

Can you also specify what JRE you are using?

Go pro

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2167 by Wayne-Riesterer
Hello and thanks for your reply.

I am using JRE 1.7.

The log is as follows:

06:13:49,598 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
06:13:49,598 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
06:13:49,598 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [bundleresource://239.fwk1755306561:1/logback.xml]
06:13:49,611 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5cd5efe2 - URL [bundleresource://239.fwk1755306561:1/logback.xml] is not of type file
06:13:49,806 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
06:13:49,809 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [LOGFILE]
06:13:49,931 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
06:13:49,968 |-INFO in ch.qos.logback.core.FileAppender[LOGFILE] - File property is set to [/root/.modelio/3.0/modelio.log]
06:13:49,979 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
06:13:49,981 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
06:13:49,984 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
06:13:49,985 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
06:13:49,985 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
06:13:49,985 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [LOGFILE] to Logger[ROOT]
06:13:49,986 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
06:13:49,987 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@72d5ae44 - Registering current configuration as safe fallback point
06:13:49.990 INFO org.modelio.log - BundleEvent STARTED
06:13:50.008 INFO org.modelio.ui - BundleEvent STARTED
06:13:50.026 INFO o.m.d.editor - BundleEvent STARTED
06:13:50.027 INFO o.m.e.richnote - BundleEvent STARTED
06:13:50.027 INFO .m.e.texteditors - BundleEvent STARTED
06:13:50.027 INFO o.modelio.app.ui - BundleEvent STARTED
06:13:50.027 INFO o.m.a.p.core - BundleEvent STARTED
06:13:50.385 INFO o.m.app.core - BundleEvent STARTED
06:13:53.979 INFO o.m.d.styles - BundleEvent STARTED
06:13:54.032 INFO .m.m.propertytab - BundleEvent STARTED
06:13:54.047 INFO org.modelio.api - BundleEvent STARTED
06:13:54.071 INFO o.m.app.ramcs - BundleEvent STARTED
06:13:54.111 INFO o.m.d.elements - BundleEvent STARTED
06:13:54.120 INFO .m.d.persistence - BundleEvent STARTED
06:13:54.167 INFO o.m.core.ui - BundleEvent STARTED
06:13:54.251 INFO o.m.d.e.state - BundleEvent STARTED
06:13:54.310 INFO o.m.d.e.statik - BundleEvent STARTED
06:13:54.397 INFO o.m.d.e.sequence - BundleEvent STARTED
06:13:54.433 INFO o.m.d.e.activity - BundleEvent STARTED
06:13:54.511 INFO o.m.d.e.bpmn - BundleEvent STARTED
06:13:54.574 INFO o.m.d.e.usecase - BundleEvent STARTED
06:13:54.625 INFO m.d.e.deployment - BundleEvent STARTED
06:13:54.650 INFO .e.communication - BundleEvent STARTED
06:13:54.660 INFO o.m.d.e.object - BundleEvent STARTED
06:13:54.665 INFO .m.d.e.composite - BundleEvent STARTED
06:13:54.670 INFO o.m.api.impl - BundleEvent STARTED
Not a valid list position.
06:13:55.546 INFO o.m.m.commands - BundleEvent STARTED
06:13:55.562 INFO o.modelio.vaudit - BundleEvent STARTED
06:13:55.610 INFO o.m.mda.infra - BundleEvent STARTED
06:13:55.678 INFO o.modelio.audit - BundleEvent STARTED
06:13:55.725 INFO o.m.m.browser - BundleEvent STARTED
06:13:56.343 INFO o.modelio.script - BundleEvent STARTED
06:13:57.486 INFO o.m.core.help - BundleEvent STARTED
06:13:57.591 INFO .m.a.preferences - BundleEvent STARTED
06:13:57.607 INFO o.m.a.project.ui - BundleEvent STARTED
06:13:57.645 INFO org.modelio.xmi - BundleEvent STARTED
06:13:57.651 INFO o.m.a.m.import - BundleEvent STARTED
06:13:57.662 INFO o.m.m.property - BundleEvent STARTED
06:13:57.679 INFO o.m.d.c.wizard - BundleEvent STARTED
06:13:57.691 INFO o.m.a.p.conf - BundleEvent STARTED
06:13:57.753 INFO o.m.a.p.ui.ext - FrameworkEvent INFO
06:13:57.755 INFO o.m.a.p.ui.ext - BundleEvent STARTED
06:13:57.760 INFO o.m.model.search - BundleEvent STARTED
06:13:57.767 INFO .m.d.diagramauto - BundleEvent STARTED
!SESSION 2013-10-24 06:13:46.170
eclipse.buildId=unknown
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU
Framework arguments: -clearPersistedState
Command-line arguments: -os linux -ws gtk -arch x86_64 -clearPersistedState -consoleLog

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-10-24 06:14:12.446
!MESSAGE Internal Error
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:162)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.NullPointerException
at org.modelio.app.project.ui.newproject.NewProjectHandler.execute(NewProjectHandler.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 33 more
06:14:20.010 INFO o.m.api.impl - BundleEvent STOPPED
06:14:20.012 INFO o.m.a.m.import - BundleEvent STOPPED
06:14:20.013 INFO o.m.model.search - BundleEvent STOPPED
06:14:20.013 INFO o.m.a.p.conf - BundleEvent STOPPED
06:14:20.013 INFO o.m.a.p.ui.ext - BundleEvent STOPPED
06:14:20.014 INFO o.m.d.browser - BundleEvent STOPPED
06:14:20.014 INFO o.m.d.c.wizard - BundleEvent STOPPED
06:14:20.014 INFO o.m.e.notes - BundleEvent STOPPED
06:14:20.014 INFO o.m.link.editor - BundleEvent STOPPED
06:14:20.014 INFO o.modelio.app.ui - BundleEvent STOPPED
06:14:20.015 INFO o.m.a.project.ui - BundleEvent STOPPED
06:14:20.015 INFO o.m.app.ramcs - BundleEvent STOPPED
06:14:20.015 INFO o.m.m.property - BundleEvent STOPPED
06:14:20.015 INFO o.modelio.script - BundleEvent STOPPED
06:14:20.015 INFO org.modelio.xmi - BundleEvent STOPPED
06:14:20.015 INFO o.m.m.browser - BundleEvent STOPPED
06:14:20.016 INFO o.modelio.audit - BundleEvent STOPPED
06:14:20.016 INFO .m.d.diagramauto - BundleEvent STOPPED
06:14:20.016 INFO o.m.diagram.api - BundleEvent STOPPED
06:14:20.016 INFO o.m.d.e.activity - BundleEvent STOPPED
06:14:20.016 INFO o.m.d.e.bpmn - BundleEvent STOPPED
06:14:20.016 INFO .e.communication - BundleEvent STOPPED
06:14:20.016 INFO .m.d.e.composite - BundleEvent STOPPED
06:14:20.016 INFO m.d.e.deployment - BundleEvent STOPPED
06:14:20.016 INFO o.m.d.e.object - BundleEvent STOPPED
06:14:20.016 INFO o.m.d.editor - ServiceEvent UNREGISTERING
06:14:20.017 INFO o.m.d.editor - ServiceEvent UNREGISTERING
06:14:20.017 INFO o.m.d.e.sequence - BundleEvent STOPPED
06:14:20.017 INFO o.m.e.richnote - ServiceEvent UNREGISTERING
06:14:20.018 INFO o.m.d.e.state - BundleEvent STOPPED
06:14:20.018 INFO o.m.d.e.usecase - BundleEvent STOPPED
06:14:20.018 INFO o.m.d.e.statik - BundleEvent STOPPED
06:14:20.018 INFO o.m.d.editor - BundleEvent STOPPED
06:14:20.019 INFO o.m.d.elements - BundleEvent STOPPED
06:14:20.019 INFO o.m.d.styles - BundleEvent STOPPED
06:14:20.020 INFO .e.r.libreoffice - BundleEvent STOPPED
06:14:20.020 INFO o.m.e.richnote - BundleEvent STOPPED
06:14:20.020 INFO .m.m.propertytab - BundleEvent STOPPED
06:14:20.020 INFO o.m.a.p.core - BundleEvent STOPPED
06:14:20.028 INFO o.m.s.engine - BundleEvent STOPPED
06:14:20.028 INFO o.m.mda.infra - BundleEvent STOPPED
06:14:20.028 INFO .m.a.preferences - BundleEvent STOPPED
06:14:20.028 INFO .m.d.persistence - BundleEvent STOPPED
06:14:20.028 INFO o.modelio.vaudit - BundleEvent STOPPED
06:14:20.028 INFO .m.e.texteditors - ServiceEvent UNREGISTERING
06:14:20.029 INFO o.m.core.ui - BundleEvent STOPPED
06:14:20.029 INFO o.m.d.outline - BundleEvent STOPPED
06:14:20.029 INFO .m.e.texteditors - BundleEvent STOPPED
06:14:20.034 INFO o.m.m.b.commands - BundleEvent STOPPED
06:14:20.034 INFO o.m.m.commands - BundleEvent STOPPED
06:14:20.034 INFO o.m.app.core - BundleEvent STOPPED
06:14:20.034 INFO org.modelio.api - BundleEvent STOPPED
06:14:20.035 INFO o.m.core.help - BundleEvent STOPPED
06:14:20.035 INFO org.modelio.ui - BundleEvent STOPPED

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2170 by cde
Hi Wayne,

Could you check if you have sufficient rights on your Modelio workspace (this is where the projects are saved) ?
By default it is located in the /home/USER/modelio/workspace directory...
You can also try to change the workspace by using the File\Switch workspace command.

Hope this help,
cde.

Please Log in or Create an account to join the conversation.

5 years 8 months ago #2171 by Wayne-Riesterer
Thanks for your help :)

I'm using Kali Linux where everything is operated from "root" permissions.

As far as the workspace goes, I've changed that to my "home" folder, where permissions should not be a problem.

I can see, perhaps, that Modelio is bassed on the Eclipse IDE. The NullPointerException maybe coming from some sort of installation dependency issues...maybe?

I spent a little bit of time trying to debug the fault...but simply run out of time.

Still, is the JRE version the problem? Does the install download dependencies on first load fail because of non-reachable libraries (that might not be accessible from sources.list), is the Maven file trying to access repositories that my installation is not able to 'see' (as such)?

I know a bit and understand a little, but hopefully we can work this out together.

All the best - Wayne

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.051 seconds
^ Back to Top