[
https://issues.jboss.org/browse/JBIDE-26284?page=com.atlassian.jira.plugi...
]
Jan Richter commented on JBIDE-26284:
-------------------------------------
The steps I used (rough representation of a code):
{noformat}
beans = findServerBeans({ discoveryPath: '../../Downloads/Wildfly12' }) -
relative path
createServer({ id: 'wildfly', serverType: beans[0].serverAdapterTypeId,
attributes: { 'server.home.dir': beans[0].location } })
startServerAsync({ mode: 'run', params: { id: 'wildfly', serverType:
beans[0].serverAdapterTypeId, attributes: { 'server.home.dir': beans[0].location }
} })
{noformat}
The start part used to fail, but now something seems to have changed. Now I'm stuck at
the first step with an internal error:
{noformat}
SEVERE: Internal error: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:63)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:116)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:252)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:181)
at
org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:183)
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.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:61)
... 11 more
Caused by: java.lang.NullPointerException
at
org.jboss.tools.ssp.server.minishift.discovery.MinishiftDiscovery.folderWhiteListBin(MinishiftDiscovery.java:40)
at
org.jboss.tools.ssp.server.minishift.discovery.MinishiftDiscovery.getMinishiftBinaryFromFolder(MinishiftDiscovery.java:26)
at
org.jboss.tools.ssp.server.minishift.discovery.MinishiftDiscovery.folderContainsMinishiftBinary(MinishiftDiscovery.java:30)
at
org.jboss.tools.ssp.server.minishift.discovery.MinishiftBeanTypeProvider$MinishiftBeanType.isServerRoot(MinishiftBeanTypeProvider.java:35)
at
org.jboss.tools.ssp.server.discovery.serverbeans.ServerBeanLoader.loadTypeInternal(ServerBeanLoader.java:54)
at
org.jboss.tools.ssp.server.discovery.serverbeans.ServerBeanLoader.loadBeanInternal(ServerBeanLoader.java:47)
at
org.jboss.tools.ssp.server.discovery.serverbeans.ServerBeanLoader.getServerBean(ServerBeanLoader.java:35)
at
org.jboss.tools.ssp.server.ServerManagementServerImpl.findServerBeans(ServerManagementServerImpl.java:169)
... 16 more
{noformat}
Servers created from relative path can't start
----------------------------------------------
Key: JBIDE-26284
URL:
https://issues.jboss.org/browse/JBIDE-26284
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: runtime-server-protocol
Reporter: Jan Richter
Assignee: Rob Stryker
Servers created with their ''server.home.dir'' attribute set to a
relative path will error on starting.
Example log from wildfly (and yes, that is the complete log):
{noformat}Error: Could not find or load main class org.jboss.modules.Main{noformat}
Relative paths either need to be resolved, or rejected.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)