facebook

CodeMix completely broken after update (NPE during engine initialization)

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #652580 Reply

    nabilsayegh
    Participant

    After update to latest version CodeMix is completely broken: An internal error occured during: „Initializing CodeMix Engine“. java.lang.NullPointerException.

    Editors will hang at „About to Start“.
    „Reload CodeMix Engine“ button doesn’t help, hangs at „Restarting“.

    #652582 Reply

    nabilsayegh
    Participant

    See screenshot

    Attachments:
    You must be logged in to view attached files.
    #652589 Reply

    nabilsayegh
    Participant

    Deleting ~/.codemix doesn’t help.

    #652597 Reply

    nabilsayegh
    Participant

    Deleting ~/.codemix again and rebooting didn’t help either.

    #652598 Reply

    nabilsayegh
    Participant

    I’m using CI 2020.4.7 with

    Spring Tool Suite

    Version: 3.9.4.RELEASE
    Build Id: 201804120921
    Platform: Eclipse Oxygen.3a (4.7.3a)

    #652606 Reply

    nabilsayegh
    Participant

    eclipse log:

    !ENTRY org.eclipse.ui 2 0 2020-04-11 15:12:04.341
    !MESSAGE Warnings while parsing the images from the ‘org.eclipse.ui.commandImages’ extension point.
    !SUBENTRY 1 org.eclipse.ui 2 0 2020-04-11 15:12:04.341
    !MESSAGE Cannot bind to an undefined command: plug-in=’org.eclipse.lsp4e’, id=’org.eclipse.lsp4e.togglehighlight’

    !ENTRY com.genuitec.eclipse.code.ui 1 0 2020-04-11 15:12:06.708
    !MESSAGE CodeMix Engine will be started momentarily to support development activities

    !ENTRY org.eclipse.jface 2 0 2020-04-11 15:12:07.083
    !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2020-04-11 15:12:07.083
    !MESSAGE A conflict occurred for COMMAND+SHIFT+T:
    Binding(COMMAND+SHIFT+T,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
    Open a type in a Java editor,
    Category(org.eclipse.ui.category.navigate,Navigate,null,true),
    org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3ec457ec,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(COMMAND+SHIFT+T,
    ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
    ,
    Category(org.eclipse.lsp4e.category,Language Servers,null,true),
    org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4148a617,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

    !ENTRY org.eclipse.epp.logging.aeri.ide 2 17 2020-04-11 15:12:12.757
    !MESSAGE Server ‘com.genuitec.eclipse.aeri.server1’ failed with exception: aer.ctrlflow.com: nodename nor servname provided, or not known. ; version: 2.0.7.v20170906-1327
    !STACK 0
    java.net.UnknownHostException: aer.ctrlflow.com: nodename nor servname provided, or not known
    at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:925)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:844)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1495)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1354)
    at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1288)
    at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.apache.http.client.fluent.Request.internalExecute(Request.java:173)
    at org.apache.http.client.fluent.Executor.execute(Executor.java:262)
    at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.request(IO.java:170)
    at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.refreshConfiguration(IO.java:64)
    at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection.startUp(ServerConnection.java:124)
    at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62)
    at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
    at java.base/java.lang.Thread.run(Thread.java:844)

    !ENTRY com.genuitec.eclipse.code.core 4 0 2020-04-11 15:12:12.818
    !MESSAGE Could not obtain a profile lock for /Applications/STS.app/Contents/Eclipse/extensions
    !STACK 0
    com.genuitec.eclipse.code.core.extensions.DirectoryLock$LockFailedException: Could not obtain a profile lock for /Applications/STS.app/Contents/Eclipse/extensions
    at com.genuitec.eclipse.code.core.extensions.DirectoryLock.getDirectoryLock(DirectoryLock.java:81)
    at com.genuitec.eclipse.code.core.extensions.ExtensionsService.<init>(ExtensionsService.java:559)
    at com.genuitec.eclipse.code.core.extensions.ExtensionsService.<clinit>(ExtensionsService.java:479)
    at com.genuitec.eclipse.code.ui.problem.ValidationService.<init>(ValidationService.java:93)
    at com.genuitec.eclipse.code.ui.problem.ValidationService.getService(ValidationService.java:98)
    at com.genuitec.eclipse.code.ui.CodeService.start(CodeService.java:371)
    at com.genuitec.eclipse.code.ui.EngineStartupHandler$1.run(EngineStartupHandler.java:124)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
    Caused by: java.io.IOException: No such file or directory
    at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.base/java.io.File.createTempFile(File.java:2090)
    at com.genuitec.eclipse.code.core.extensions.DirectoryLock.internalGetProfileLock(DirectoryLock.java:99)
    at com.genuitec.eclipse.code.core.extensions.DirectoryLock.getDirectoryLock(DirectoryLock.java:78)
    … 7 more

    !ENTRY org.eclipse.epp.logging.aeri.ide 2 17 2020-04-11 15:12:15.078
    !MESSAGE Server ‘org.eclipse.epp.logging.aeri.ide.server’ failed with exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $. ; version: 2.0.7.v20170906-1327
    !STACK 0
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
    at com.google.gson.Gson.fromJson(Gson.java:888)
    at com.google.gson.Gson.fromJson(Gson.java:853)
    at com.google.gson.Gson.fromJson(Gson.java:802)
    at org.eclipse.epp.internal.logging.aeri.ide.server.json.Json.deserialize(Json.java:91)
    at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.refreshConfiguration(IO.java:66)
    at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection.startUp(ServerConnection.java:124)
    at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62)
    at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
    at java.base/java.lang.Thread.run(Thread.java:844)
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
    … 9 more

    !ENTRY org.eclipse.core.jobs 4 2 2020-04-11 15:12:23.571
    !MESSAGE An internal error occurred during: “Initializing CodeMix Engine”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.code.core.MigrateExtensionsHelper.removeOldExtensionsIfNeeded(MigrateExtensionsHelper.java:87)
    at com.genuitec.eclipse.code.core.MigrateExtensionsHelper.migrateNow(MigrateExtensionsHelper.java:38)
    at com.genuitec.eclipse.code.core.engine.app.EngineManager.initialize(EngineManager.java:82)
    at com.genuitec.eclipse.code.core.engine.EngineService.start(EngineService.java:193)
    at com.genuitec.eclipse.code.ui.CodeService.start(CodeService.java:373)
    at com.genuitec.eclipse.code.ui.EngineStartupHandler$1.run(EngineStartupHandler.java:124)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

    #652829 Reply

    support-swapna
    Moderator

    Nabil,

    Sorry that you are seeing this issue. Thank you for sharing the log entries.
    It looks like a permissions issue. With recent versions of CodeMix, the extensions folder is being moved to the STS/Eclipse installation directory from the .codemix folder of your user home directory. CodeMix is failing to create the extensions folder in your STS installation directory due to permissions issue.

    1. Does your account have full permissions including write access to the STS installation folder? If STS is installed as root user and if you are trying to run it as non-root user, then you might face issues with the permissions. Try running STS as root user and check if it fixes the issue.

    2. If you have trouble fixing the STS permissions, then you can try to change the location of the extensions directory to the location which you have permissions for. Go to Window > Preferences > CodeMix > Miscellaneous > Storage page. Uncheck the use default storage location for CodeMix Extensions and set the location to the folder where you have full permissions including write access, apply the changes and restart the IDE.

    Apologies for inconvenience caused. Please let us know how you get on with it.

    –Swapna
    Genuitec Support

    #652927 Reply

    nabilsayegh
    Participant

    Directly applied #2, works now again.
    Thank you.

    #653014 Reply

    support-swapna
    Moderator

    Nabil,

    Glad that it works.
    Please let us know if you see any other issues with CodeMix.

    –Swapna
    Genuitec Support

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: CodeMix completely broken after update (NPE during engine initialization)

You must be logged in to post in the forum log in