cancel
Showing results for 
Search instead for 
Did you mean: 

Local Test Server Start Problem

Former Member
0 Kudos

Just trying to set up my IDE for a little playing with NW Cloud.

I am able to create a test program and deploy it to the cloud.

But if I want to use the Local Test Server for Netweaver Cloud I get the following error:

java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

    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:619)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

Using Eclipse Juno, Oracle JDK 7 and Cloud SDK 1.13.1 on 32 bit windows.

Anyone familiar with this issue?

anton

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kaloyan, Robert,

I was able to identify the problem in my installation. It seems that I simply ran into some ressource problems on my laptop with the default launch configuration for the local server.

To reproducibly solve the problem on my machine I have to:

  • (open a few NW cloud tutorials, a few browser windows, editors, mail program, ... Eclipse of course ... on my 32 bit, 3GB RAM client)
  • delete the local server and re-create it
  • double-click the local server & in "Overview" choose "Open Launch Configuration"
  • (experience the error condition)
  • choose tab "Arguments",in VM arguments find -Xmx1024m and change to -Xmx512m
  • if necessary also reduce XX:MaxPermSize=256M

It works well now for me, hope it helps someone else too.

regards, anton

Former Member
0 Kudos

Hi Anton,

I am glad it works for you now.

This is an interesting finding and I am very thankful for your summary. We will take a look how we can improve the error handling in this situation, so it is easier to recognize and resolve the problem.

Greetings,

Kaloyan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anton,

Could you run the wizard on Help > Collect Support Information... and attach the generated support.zip file? This will give us more details to analyze the problem.

Thanks,

Kaloyan

Former Member
0 Kudos

Hi Kaloyan,

don't want to post loads of details about my machine in semi-public. If you want to, I can send the support.zip by email to you.

For the record for others:

One major problem according to eclipse.log seems to be this failing connection:

!ENTRY com.sap.core.tools.eclipse.server.common 4 0 2012-11-21 22:08:26.321

!MESSAGE Could not trigger server stop.

!STACK 0

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:

    java.net.ConnectException: Connection refused: connect]

    at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)

    at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)

    at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)

    at com.sap.core.tools.eclipse.server.common.server.control.ServerCommunicator.initJmxConnection(ServerCommunicator.java:369)

    at com.sap.core.tools.eclipse.server.common.server.control.ServerCommunicator.getPID(ServerCommunicator.java:531)

    at com.sap.core.tools.eclipse.server.common.server.control.ServerCommunicator.stopServer(ServerCommunicator.java:492)

    at com.sap.core.tools.eclipse.server.common.server.control.GenericSapServerBehavior.stop(GenericSapServerBehavior.java:56)

    at com.sap.core.tools.eclipse.server.common.server.control.LocalServerBehavior.stop(LocalServerBehavior.java:54)

    at org.eclipse.wst.server.core.internal.Server.stopImpl2(Server.java:3616)

    at org.eclipse.wst.server.core.internal.Server.stopImpl(Server.java:3573)

    at org.eclipse.wst.server.core.internal.Server$StopJob.run(Server.java:396)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:

    java.net.ConnectException: Connection refused: connect]

    at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)

    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)

    at javax.naming.InitialContext.lookup(Unknown Source)

    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)

    at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)

    ... 12 more

Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:

    java.net.ConnectException: Connection refused: connect

    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)

    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)

    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)

    at sun.rmi.server.UnicastRef.newCall(Unknown Source)

    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

    ... 17 more

Caused by: java.net.ConnectException: Connection refused: connect

    at java.net.DualStackPlainSocketImpl.connect0(Native Method)

    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

    at java.net.PlainSocketImpl.connect(Unknown Source)

    at java.net.SocksSocketImpl.connect(Unknown Source)

    at java.net.Socket.connect(Unknown Source)

    at java.net.Socket.connect(Unknown Source)

    at java.net.Socket.<init>(Unknown Source)

    at java.net.Socket.<init>(Unknown Source)

    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)

    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)

    ... 22 more

my 2 cents,

anton

Former Member
0 Kudos

Hi Anton,

This exception is a good pointer. The IDE tries to connect to the local server, but the connection cannot be established. Do you have a firewall or some other security software on your system? Could you switch it off and try again?

If this does not help, then please send me the support.zip file to kaloyan.raev@sap.com.

Greetings,

Kaloyan

Former Member
0 Kudos

Hi Anton,

Over the last few days i was encountering a lot of problems in getting the localhost to work.

I think i have seen a log like yours one or two times.

I googled for it but couldn't find anything worthwhile. In the end I just re-installed the whole Eclipse IDE.

Then it was ok again. 🙂

If you do find a way to get past this error without re-installing please post the solution here for future reference. Thx

Kr

Robert