Jenkins integration error


#1

I have receive an error and get stuck when i try to build. What is the problem?

!MESSAGE Application error!STACK 1java.lang.IllegalStateException: The platform metadata area could not be written: /Applications/Katalon Studio.app/Contents/MacOS/config/.metadata.  By default the platform writes its contentunder the current working directory when the platform is launched.  Use the -data parameter tospecify a different content area for the platform.	at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)	at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129)	at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44)	at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:209)	at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:59)	at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:220)	at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352)	at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340)	at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:391)	at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:60)	at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:95)	at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:84)	at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)	at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:77)	at com.kms.katalon.preferences.internal.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:216)	at com.kms.katalon.preferences.internal.ScopedPreferenceStore.<init>(ScopedPreferenceStore.java:117)	at com.kms.katalon.preferences.internal.PreferenceStoreManager.initialPreferenceStore(PreferenceStoreManager.java:25)	at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:21)	at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:14)	at com.kms.katalon.util.ApplicationSession.getStore(ApplicationSession.java:51)	at com.kms.katalon.util.ApplicationSession.clean(ApplicationSession.java:17)	at com.kms.katalon.core.application.Application.preRunInit(Application.java:80)	at com.kms.katalon.core.application.Application.start(Application.java:49)	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)	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.equinox.launcher.Main.invokeFramework(Main.java:673)	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)	at org.eclipse.equinox.launcher.Main.run(Main.java:1519) 2018-11-08 17:09:10.167 katalon[21859:179355] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted 

#2

Hi @Chris_Trevarthen,

getting below error while executing from Jenkins on mac
!ENTRY org.eclipse.osgi 4 0 2019-05-27 15:00:45.171
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: /Applications/Katalon Studio.app/Contents/MacOS/config/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129)
at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44)
at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:209)
at org.eclipse.core.internal.preferences.InstancePreferences.(InstancePreferences.java:59)
at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:220)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340)
at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:391)
at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:60)
at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:95)
at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:84)
at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:77)
at com.kms.katalon.preferences.internal.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:216)
at com.kms.katalon.preferences.internal.ScopedPreferenceStore.(ScopedPreferenceStore.java:117)
at com.kms.katalon.preferences.internal.PreferenceStoreManager.initialPreferenceStore(PreferenceStoreManager.java:25)
at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:21)
at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:14)
at com.kms.katalon.util.ApplicationSession.getStore(ApplicationSession.java:51)
at com.kms.katalon.util.ApplicationSession.clean(ApplicationSession.java:17)
at com.kms.katalon.core.application.Application.preRunInit(Application.java:88)
at com.kms.katalon.core.application.Application.start(Application.java:56)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
2019-05-27 15:00:45.569 katalon[61757:1444630] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener ‘ClientCallsAuxiliary’: Connection interrupted

Any help ?


#3

Hi @chandu.komireddy,

From the error log:

java.lang.IllegalStateException: The platform metadata area could not be written: /Applications/Katalon Studio.app/Contents/MacOS/config/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.

I am guessing that Jenkins is running on a user account that doesn’t have access to write to the /Applications directory. Per the suggestion in the error message, can you try adding a -data parameter and giving it a directory that is within the Jenkins project workspace, opposed to the system’s /Applications directory?

Hope this helps,

Chris