Fórum

Creating a Liferay Workspace causes Eclipse Oxygen to crash

thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

Creating a Liferay Workspace causes Eclipse Oxygen to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hello!
I started using Liferay a few days ago and I came across a problem while trying to create a Liferay workspace, following the steps provided on this tutorial Developing a Web Application.

Step 4 of the chapter about how to create a Liferay workspace says,
Check the Download Liferay bundle checkbox to automatically download and unzip a Liferay Portal instance in your workspace. When prompted, name the server liferay-tomcat-bundle.
.

Every time I check that checkbox, it causes Eclipse to crash. I tried deleting everything and starting from scratch but again the same outcome.

What additional information should I provide you, for you to be able to help me?
$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)


$ javac -version
javac 1.8.0_151


About Eclipse:
Eclipse Java EE IDE for Web Developers.
Version: Oxygen.1a Release (4.7.1a)

Liferay Version: 3.1.2.2017090111

Thank you in advance.
thumbnail
Joye Luo, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 144 Data de Entrada: 03/05/16 Postagens Recentes
Hey Savvas,

Can u provide us the console output or error log to help us resolve this problem quickly?

And what we actually do in background when you check the checkbox:
1. download liferay bundle from Internet (you can go to {$userhome}/.liferay/bundles dir to check if your bundle is downloaded sucessfully)
2.unzip the downloaded bundle to workspace bundles dir

So what u can trying to do is:
method 1: uncheck the checkbox to create the workspace->run gradle initBundle under the root dir of liferay workspace
method 2: copy your liferay bundle to {$userhome}/.liferay/bundles dir->create Liferay workspace again
method3: uncheck the checkbox to create the workspace->create bundles dir under the root dir of liferay workspace->unzip your liferay bundle to bundles dir

Hope it can works for u.
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hello Joye,

thank you very much for the prompt response. emoticon

I tried the first method:
uncheck the checkbox to create the workspace->run gradle initBundle under the root dir of liferay workspace


I managed to create the workspace just like you said but the build failed:
gradle initBundle

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'com-liferay-docs-guestbook'.
> Failed to notify project evaluation listener.
   > org.gradle.util.CollectionUtils.first(Ljava/lang/Iterable;)Ljava/lang/Object;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 47.012 secs


I tried with the suggested --stacktrace:
gradle initBundle --stacktrace

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'com-liferay-docs-guestbook'.
> Failed to notify project evaluation listener.
   > org.gradle.util.CollectionUtils.first(Ljava/lang/Iterable;)Ljava/lang/Object;

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'com-liferay-docs-guestbook'.
        at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:49)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:510)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:90)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
        at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125)
        at org.gradle.internal.Factories$1.create(Factories.java:22)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122)
        at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:55)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
        at com.sun.proxy.$Proxy12.beforeEvaluate(Unknown Source)
        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
        at com.sun.proxy.$Proxy12.beforeEvaluate(Unknown Source)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:47)
        ... 40 more
Caused by: java.lang.NoSuchMethodError: org.gradle.util.CollectionUtils.first(Ljava/lang/Iterable;)Ljava/lang/Object;
        at com.liferay.gradle.plugins.workspace.configurators.PluginsProjectConfigurator._addRootTaskUpgradePluginsSDK(PluginsProjectConfigurator.java:182)
        at com.liferay.gradle.plugins.workspace.configurators.PluginsProjectConfigurator.configureRootProject(PluginsProjectConfigurator.java:100)
        at com.liferay.gradle.plugins.workspace.WorkspacePlugin$1.doCall(WorkspacePlugin.java:79)
        at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
        at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
        ... 52 more


BUILD FAILED

Total time: 3.401 secs


as well with --info:
gradle initBundle --infoStarting Build
PropertiesPlugin:apply Loaded 2 properties from /home/savvas/Documents/Eclipse/com-liferay-docs-guestbook/gradle.properties
PropertiesPlugin:apply Skipping /home/savvas/Documents/Eclipse/com-liferay-docs-guestbook/gradle-local.properties because it does not exist
PropertiesPlugin:apply Skipping /home/savvas/.gradle/gradle.properties because it does not exist
PropertiesPlugin:apply Loaded 0 properties from environment variables
PropertiesPlugin:apply Loaded 0 properties from system properties
PropertiesPlugin:apply Loaded 0 properties from the command line
Settings evaluated using settings file '/home/savvas/Documents/Eclipse/com-liferay-docs-guestbook/settings.gradle'.
Projects loaded. Root project using build file '/home/savvas/Documents/Eclipse/com-liferay-docs-guestbook/build.gradle'.
Included projects: [root project 'com-liferay-docs-guestbook']

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'com-liferay-docs-guestbook'.
> Failed to notify project evaluation listener.
   > org.gradle.util.CollectionUtils.first(Ljava/lang/Iterable;)Ljava/lang/Object;

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 3.297 secs


and --debug:
gradle initBundle --depug 
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'com-liferay-docs-guestbook'.
> Failed to notify project evaluation listener.
   > org.gradle.util.CollectionUtils.first(Ljava/lang/Iterable;)Ljava/lang/Object;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.978 secs


Every output says that it failed to notify project evaluation listener, which I do not understand what that really is or how to fix it.

UPDATE: I tried the next chapter of the tutorial: Creating your first Liferay portal application but again after step 2:
Complete the first screen of the wizard with the following information..Click Next
Eclipse crashes.

Attached the Error Log from Eclipse.
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Seems like you are using Linux environment. And from your log,
java.net.UnknownHostException: Savvas: Savvas: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
at org.eclipse.rse.core.RSECorePlugin.getLocalMachineName(RSECorePlugin.java:265)
at org.eclipse.rse.core.RSEPreferencesManager.getDefaultPrivateSystemProfileName(RSEPreferencesManager.java:358)
at org.eclipse.rse.core.RSEPreferencesManager.initDefaults(RSEPreferencesManager.java:337)
at org.eclipse.rse.internal.core.RSEPreferenceInitializer.initializeDefaultPreferences(RSEPreferenceInitializer.java:23)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:298)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:301)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131)
at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:371)
at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:222)
at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:276)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:370)
at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:623)
at org.eclipse.core.internal.preferences.DefaultPreferences.node(DefaultPreferences.java:147)
at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getDefaultPreferences(PreferenceForwarder.java:133)
at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getInt(PreferenceForwarder.java:487)
at org.eclipse.rse.logging.Logger.initialize(Logger.java:249)
at org.eclipse.rse.logging.Logger.<init>(Logger.java:135)
at org.eclipse.rse.logging.LoggerFactory.getLogger(LoggerFactory.java:45)
at org.eclipse.rse.core.RSECorePlugin.getLogger(RSECorePlugin.java:392)
at org.eclipse.rse.internal.core.RSEInitJob.<init>(RSEInitJob.java:133)
at org.eclipse.rse.internal.core.RSEInitJob.<clinit>(RSEInitJob.java:65)
at org.eclipse.rse.core.RSECorePlugin.waitForInitCompletion(RSECorePlugin.java:142)
at org.eclipse.rse.internal.ui.RSEUIInitJob.run(RSEUIInitJob.java:32)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.net.UnknownHostException: Savvas: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
... 25 more

It might be an issue with hosts configuration
Open /etc/hosts using your favorite text editor and add this to it <your-machine-ip> <your-machine-name> localhost
It might look like this after this
192.168.0.1 Savvas localhost
127.0.0.1    localhost localhost.localdomain localhost4 localhost4.localdomain4
::1          localhost localhost.localdomain localhost6 localhost6.localdomain6


HTH
Arun
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hey Arun,

thank you for the suggestion. I did change my /etc/hosts file just like you said but nothing really changed. I still have the same problem.
I also tried everything from the beginning with Eclipse Neon3 but still the same problem with Eclipse crashing.
Any other suggestions? Or a different approach to install Liferay on Eclipse Neon3 or Oxygen on Linux Mint 18?
thumbnail
Joye Luo, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 144 Data de Entrada: 03/05/16 Postagens Recentes
Hey Savvas,

There is a way for u to create Liferay Workspace without using Eclipse. So we can see it's the problem of Eclipse or your environment.
Use Liferay Blade Cli:
1. install liferay blade cli
2. run blade init command(this command is to create liferay workspace)
3. run blade gw initBundle(this command is to download bundle and unzip it)

Here is the tutorial link: https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/7-0/blade-cli

Hope that can works in your side.
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hey Joye,

Thank you again for your help. I used Liferay Blade Cli just like you said.

1. install liferay blade cli

Worked fine.

2. run blade init command(this command is to create liferay workspace)

Worked fine as well.

3. run blade gw initBundle(this command is to download bundle and unzip it)

$ blade gw initBundle

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '9.0.1'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


with stacktrace:
$ blade gw initBundle --stacktrace

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '9.0.1'.

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
java.lang.IllegalArgumentException: Could not determine java version from '9.0.1'.
        at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:68)
        at org.gradle.api.JavaVersion.current(JavaVersion.java:78)
        at org.gradle.internal.jvm.UnsupportedJavaRuntimeException.assertUsingVersion(UnsupportedJavaRuntimeException.java:29)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:32)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:210)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:174)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)


with info:
$ blade gw initBundle --info
Initialized native services in: /home/savvas/.gradle/native

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '9.0.1'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.


with debug:
$ blade gw initBundle --debug
21:07:01.836 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /home/savvas/.gradle/native
21:07:01.963 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
21:07:01.965 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
21:07:01.965 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
21:07:01.965 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
21:07:01.968 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not determine java version from '9.0.1'.
21:07:01.968 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
21:07:01.968 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
21:07:01.969 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Seems like you have Java 9.0.1 installed. Remove this vertsion to get rid of those errors. DXP supports up to JDK 8 only
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hello Arun,

thank you for your suggestion. Removing JDK 9 and installing JDK 8 solved the problem.

I followed again the steps Joye mentioned:
1. install liferay blade cli
2. run blade init command(this command is to create liferay workspace)
3. run blade gw initBundle(this command is to download bundle and unzip it)


I managed to download and install the bundle from the terminal. I created a Liferay Workspace, this time without checking the "Download Liferay bundle" checkbox. Then I tried to create a Liferay Module Project. I followed the steps from the tutorial ( Liferay Module Project)and the moment I clicked next Eclipse crashed.

Any suggestions?
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Seems like your IDE issue. Which version of eclipse are you using? Can you try downloading a fresh eclipse-jee-neon, then download liferay ide from eclipse marketplace and try to create liferay workspace.?

Arun
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
I am using the same version I was using at the beginning:
Version: Oxygen.1a Release (4.7.1a)
I already removed and reinstalled both Eclipse Oxygen and Neon, but the problem is still there.
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
You can try on what Joye suggested. Also can you try downloading eclipse-jee-neon, then download liferay ide from eclipse marketplace and try to create liferay workspace.? I've tried this on a fresh Linux Mint 18.2 and seems to have no issues at all. Eclipse was not responsive for a few mins, but didn't crash.
Some debugging steps based on the log.
1. Telnet to dev.eclipse.org like the image attached and check whether can connect?
2. Also can show how your hosts file look like?
3. Type hostname on your terminal and ping to the hostname. What's the IP binded to it?
The above might be irrelevant, but those are based on the log you uploaded.
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Arun Das:
Hi,
You can try on what Joye suggested. Also can you try downloading eclipse-jee-neon, then download liferay ide from eclipse marketplace and try to create liferay workspace.? I've tried this on a fresh Linux Mint 18.2 and seems to have no issues at all. Eclipse was not responsive for a few mins, but didn't crash.
Some debugging steps based on the log.
1. Telnet to dev.eclipse.org like the image attached and check whether can connect?
2. Also can show how your hosts file look like?
3. Type hostname on your terminal and ping to the hostname. What's the IP binded to it?
The above might be irrelevant, but those are based on the log you uploaded.

Did you try this? I was able to create workspace successfully on bot Oxygen and Neon Releases of Eclipse. Before starting eclipse, delete all from your eclipse workspace (.metadata folder especially). Is it crashed or hang? For the first time, it will take some time to download all the dependencies. So if you think it hang, please wait as it depends on your internet connection too. If you still have issues, please post the latest eclipse log.

Arun
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hey Arun,

thank you for still trying to help me.
I did try it, but I forgot to write about it. Starting and connecting the server, on Oxygen or Neon is not a problem. The only problem is, that Eclipse crashes when checking either the Download Liferay Bundle or Next while creating a Liferay Workspace or Module.

I also deleted everything from my Eclipse Workspace (also the .metadata) but it crashed the moment I clicked on the above mentioned options.

I started Eclipse Neon once again and tried to create a Liferay Workspace. It crashed so here is the error log. The entry at 18:15:09 at line 493 is my last try.
thumbnail
Joye Luo, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 144 Data de Entrada: 03/05/16 Postagens Recentes
Hey Savvas,

I am trying my best to reproduce your problem.
By reading the log u provided, this one is an warning, and will not cause this crash.
!ENTRY org.eclipse.ui 2 0 2017-11-24 18:15:09.480
!MESSAGE Warnings while parsing the images from the 'org.eclipse.ui.commandImages' extension point.
!SUBENTRY 1 org.eclipse.ui 2 0 2017-11-24 18:15:09.480
!MESSAGE Cannot bind to an undefined command: plug-in='com.liferay.ide.project.ui', id='com.liferay.ide.project.ui.upgrade.openLiferay7UpgradeAssistant'

The main reason could be this one.
!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-11-23 20:35:02.594
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:426)
at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:154)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:176)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:106)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:139)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:903)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:156)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
at org.eclipse.osgi.container.Module.doStop(Module.java:634)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:191)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.0.v20160319-0612
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:361)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:353)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 21 more
!SESSION 2017-11-24 12:03:30.621 -----------------------------------------------
eclipse.buildId=4.6.0.I20160606-1100
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -data file:/home/savvas/Documents/Eclipse/Neon/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

And can u set your Eclipse java environment to jdk 8 for sure? We really hope that we can solve this problem soon.
thumbnail
Arun Das, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi Joye,
Indeed he had a Java 9 which later he removed(if you notice the previous post). If you see the latest log file, with timestamp he mentioned there are no errors. Not sure a system permission issue can cause this or not. I was successfully able to create a workspace on Linux Mint without any errors or crash.

Arun
thumbnail
Savvas Yiannopoulos, modificado 6 Anos atrás.

RE: Creating a Liferay Workspace causes Eclipse to crash

New Member Postagens: 18 Data de Entrada: 16/11/17 Postagens Recentes
Hey Joye and Arun,
thank you both for your help. Indeed, as Arun already said I updated to Java 9 to check if it fixes the problem but that was not the case, so I re-installed Java 8.

I installed Eclipse Luna and tried the tutorial once again and everything worked fine! I do not know why Oxygen and Neon are crashing but Luna is not.

Bottom line, I am able to work with Liferay from Eclipse Luna but I would like to know at some point if there is any solution for the problem with the other two Eclipse versions.