‎2013 Mar 10 12:36 PM
Hi,
when i'm creating an abap project with the new "ABAP Project" Wizzard i'm getting an NullPointerException:
java.lang.NullPointerException
at com.sap.adt.destinations.model.internal.config.SAPJavaGuiLogonConfigReader.parseConnectionsFile(SAPJavaGuiLogonConfigReader.java:162)
at com.sap.adt.destinations.model.internal.config.SAPJavaGuiLogonConfigReader.getSystemConfigurations(SAPJavaGuiLogonConfigReader.java:120)
at com.sap.adt.destinations.model.config.SystemConfigurationService.getSystemConfigurations(SystemConfigurationService.java:83)
at com.sap.adt.tools.core.ui.internal.project.wizard.NewAbapProjectWizard.init(NewAbapProjectWizard.java:51)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:100)
at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage$2.doubleClick(NewWizardNewPage.java:368)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1477)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:515)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
My Environment:
Mac OSX 10.8.2
Eclipse JUNO 4.2.2 (64bit and 32bit)
Java 1.6
ADT 2.0
SAP GUI Java 7.30 rev1
Do you have any suggestions?
Thx & Regards Sebastian
‎2013 Mar 10 1:32 PM
Hi,
first issue is solved. I have forgotten to set the config file in sap guy.
but now i'm getting the following error when a start creating an abap project in eclipse:
An error has occurred. See error log for more details.
java.net.MalformedURLException: no protocol: = "file:////Users/seschmidt/Library/Preferences/SAP/mess.conf"
‎2013 Mar 10 1:32 PM
Hi,
first issue is solved. I have forgotten to set the config file in sap guy.
but now i'm getting the following error when a start creating an abap project in eclipse:
An error has occurred. See error log for more details.
java.net.MalformedURLException: no protocol: = "file:////Users/seschmidt/Library/Preferences/SAP/mess.conf"
‎2013 Mar 12 9:51 AM
Hi there,
does anyone have a solution/hint for me?
Thx Sebastian
‎2013 Mar 12 11:49 AM
Hi Sebastian
could you open a CSN for this problem including the error log with the above error message?
Thank you and best regards
Jörg Mann
‎2013 Mar 12 5:55 PM
‎2013 Mar 12 10:10 AM
Hi Sebastian,
during my evaluation of ADT in combination with Eclipse Juno 4.2.1 I noticed some bugs like vanished menu options using the right mouse click and so on. I didn't manage it to work with ADT2.0 and Eclipse correctly. So I decided to install Eclipse Indigo 3.7.2.
Some colleagues told me that Juno is still very "buggy" and I suggest to go back to Eclipse Indigo and have a look if the same problems still appear. So you can be sure that's no issue of Eclipse itself.
Good luck
Regards,
Martin
‎2013 Mar 12 5:39 PM
Hi Martin,
with Indigo i'm getting the same error. It seems to be an integration problem between ADT and SAP GUI Java.
Regards
Sebastian
‎2013 Apr 08 10:37 PM
Hi Sebastian,
I am trying to create an abap project with the new "ABAP Project" Wizzard and I am getting a similar message.
http://scn.sap.com/thread/3337116
I noticed that you faced similar issue and were able to change the location of config file. Can you share details on how you were able to change the folder path.
Regards,
Anuj
‎2013 Apr 09 7:04 AM
Hi all
there's currently a bug in the SAP GUI Java config reader - a fix is on its way.
For now, please try to modifiy the settings file in the following way
@INCLUDE="value WITH quotes"
@MESSAGESERVER=value WITHOUT quotes and blanks!
Regards
Jörg
‎2013 Apr 09 9:37 PM
Hi Jörg,
Thanks a lot for your reply.
Kindly share the file name that needs to be edited in order to maintain the above information.
Regards,
Anuj
‎2013 May 26 6:38 PM
Did you ever figure out which file had to be edited? I just installed Eclipse on a Mac and run into the same issue ....
‎2013 May 26 10:19 PM
Hi Jurgen,
So far this is what I have from SAP -
Due to a bug, only urls are allowed in the @INCLUDE tag.
This will be fixed and supplied in one of the next patches.
Until then you could try to use an url instead of a native file.
try something like
@INCLUDE="file:///pathToMessageServerFile/messageserverfile.txt"
Regards,
Anuj
‎2013 Jun 08 5:33 PM
Hi Anuj,
any updates on this? I couldn't get it to work on my Mac.
Is there an official SAP note I didn't find anything in OSS.
best regards,
Daniel
‎2013 Jun 10 5:15 PM
Hi Daniel,
I got a reply from SAP stating that I should update ABAP Development Tools to version 2.7.6. There is no OSS Note as such but I raised an OSS Message and was communicating through that that message with SAP.
The upgrade to new version should resolve the issue.
I have asked my Basis team to download it for me.
Lets hope it works.
Regards,
Anuj
‎2013 Nov 04 6:28 PM
Hi Anuj,
are there any updates for this problem?
I still have this problem.
Thanks
Krishan
‎2013 Nov 04 6:52 PM
Hi Krishan,
SAP has introduced a new update -https://tools.hana.ondemand.com/juno . Use this to install the ADT from SAP. This actually resolved the issue for me.
On a Mac - the System link will be something like conn=/H/ec2-XXX-XXX-XXX-XXX<Static IP address>.compute-1.amazonaws.com/S/3200
Regards,
Anuj
‎2013 Nov 07 11:30 AM
HI Anuj,
thank you for your answear but I still have the problem. I alredy tried Eclipse Juno with your link and also again seperately Eclipse Kepler. I used ABAP in Eclipse Tool 2.17 but again I get the error message with "Unhandled event loop exception" and the details:
java.lang.NullPointerException
at com.sap.adt.destinations.model.internal.config.SAPJavaGuiLogonConfigReader.parseConnectionsFile(SAPJavaGuiLogonConfigReader.java:183)
at com.sap.adt.destinations.model.internal.config.SAPJavaGuiLogonConfigReader.getSystemConfigurations(SAPJavaGuiLogonConfigReader.java:116)
at com.sap.adt.destinations.model.config.SystemConfigurationService.getSystemConfigurations(SystemConfigurationService.java:87)
at com.sap.adt.project.ui.wizard.NewAdtCoreProjectWizardBase.init(NewAdtCoreProjectWizardBase.java:62)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:100)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:908)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:515)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
‎2013 Nov 08 9:38 PM
Hi Krishan,
Can you try the below:-
1. On your Mac machine Open SAP.
2. Click on SAPGUI -> Preferences
3. On Logon Pad Change update the "Configuration File" with complete path of config. File
4. Create a file MessageServer.txt, in the same folder where you have your Config file, and update the Messageserver path as shown below.
For MessagServer.txt file the content should be your connection string i.e.
ASA : /M/ec2-<IPADDRESS>.compute-1.amazonaws.com/S/3200
Regards,
Anuj
‎2013 Nov 12 10:06 AM
Hi Anuj,
thanks for your hints I tried your instructions but still the same problem. I also tried just single lines of connection strings but no changes.
Best regards,
Krishan
‎2013 Nov 12 7:15 PM
HI Krishna,
Other possibility that I can think of is, you have installed way more components then required. i.e. when, in fresh installation of Eclipse, you click on Help - Install Software and enter https://tools.hana.ondemand.com/juno. Then you are selecting way more application then required.
On my machine I have the following components installed -
ABAP Communication Framework 2.16.0
ABAP Connectivity and Integration Development Tools 1.9.0
ABAP Connectivity And Integration Development Tools (Developer Edition) 1.9.0
ABAP Core Development Tools 2.16.2
ABAP Core Development Tools (Developer Edition) 2.16.2
ABAP Data Tools 1.9.0
ABAP Development Tools Connectivity 2.15.0
ABAP Development Tools for SAP HANA 2.16.1
ABAP Development Tools for SAP HANA (Developer Edition) 2.16.1
ABAP Development Tools for Web Dynpro 1.9.0
ABAP Development Tools for Web Dynpro (Developer Edition) 1.9.0
ABAP Development Tools Foundation 2.16.1
ABAP Development Tools Foundation - Basic Functionality 2.16.1
ABAP Development Tools Foundation - Basic Functionality (Developer Edition) 2.16.1
ABAP Development Tools Notifications UI 2.13.0
ABAP Development Tools Open Document Extension 2.13.0
ABAP Parser Infrastructure 1.15.0
ABAP Transport Management 1.13.0
Documentation for SAP HANA Cloud 1.34.1
Enterprise Service Development Tools in ABAP 1.9.0
Framework for MDRS and Proxy based UIs 1.9.0
OData Java Client Library (GWPA, Developer Edition) 1.0.4
OData Modeler and Tools Core (GWPA, Developer Edition) 1.0.4
OData Modeler and Tools Core for SAP (GWPA, Developer Edition) 1.0.4
OData Toolkit for Java Platform, Standard Edition (GWPA, Developer Edition) 1.0.4
SAP Java Connector Eclipse Integration 1.3.0
SAP Support Tools 1.9.0
SAPUI5 ABAP Repository Team Provider 1.14.5
SAPUI5 ABAP Repository Team Provider (Developer Edition) 1.14.5
SAPUI5 Application Development 1.14.5
SAPUI5 Application Development (Developer Edition) 1.14.5
SAPUI5 Runtime (Client-side Components) 1.14.5
SAPUI5 Runtime (Server-side Components) 1.14.5
Scenario based Connectivity and Configuration Tools in ABAP 1.9.0
Toolkit for HTML5 (GWPA, Developer Edition) 1.0.4
UI development toolkit for HTML5 (Developer Edition) 1.14.5
Hope with a fresh installation of Eclipse Juno this will help.
Regards,
Anuj
‎2013 Nov 13 2:36 PM
Hi Krishan,
could you please open a CSN ticket for this problem, and attach the MessagServer.txt file?
Thank you, best regards
Marco