Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26099

SSP Server does not work correctly when running in Apache Felix

XMLWordPrintable

      When running ssp distribution with apache felix findServerBeans request fails with exception below:

      Jun 15, 2018 12:12:01 AM org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError
      SEVERE: Unable to invoke no-args constructor for class org.jboss.tools.ssp.api.dao.DiscoveryPath. Register an InstanceCreator with Gson for this type may fix this problem.
      java.lang.RuntimeException: Unable to invoke no-args constructor for class org.jboss.tools.ssp.api.dao.DiscoveryPath. Register an InstanceCreator with Gson for this type may fix this problem.
              at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:226)
              at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210)
              at com.google.gson.Gson.fromJson(Gson.java:887)
              at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.fromJson(MessageTypeAdapter.java:298)
              at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.parseParams(MessageTypeAdapter.java:229)
              at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:115)
              at org.eclipse.lsp4j.jsonrpc.json.adapters.MessageTypeAdapter.read(MessageTypeAdapter.java:51)
              at com.google.gson.Gson.fromJson(Gson.java:887)
              at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:113)
              at org.eclipse.lsp4j.jsonrpc.json.MessageJsonHandler.parseMessage(MessageJsonHandler.java:108)
              at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:182)
              at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:92)
              at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:95)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.UnsupportedOperationException: Cannot allocate class org.jboss.tools.ssp.api.dao.DiscoveryPath
              at com.google.gson.internal.UnsafeAllocator$4.newInstance(UnsafeAllocator.java:104)
              at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:223)
              ... 17 more
      

      Running server-wildfly with maven

      mvn exec:java -f server-wildfly

      works fine

              rob.stryker Rob Stryker (Inactive)
              nivologd@gmail.com Denis Golovin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: