留言板

EquinoxConfiguration$1 cannot be cast to java.lang.String

Yasir Qureshi,修改在9 年前。

EquinoxConfiguration$1 cannot be cast to java.lang.String

New Member 帖子: 3 加入日期: 14-11-26 最近的帖子
I am new to Liferay and successfully have it running on my laptop.When I try to create a new Liferay project I get NullPointerException.

This is my environment:
Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800
Liferay v6.1 CEServer (Tomcat 7)
jre1.8.0_25

This is my console output:
[Console output redirected to file:C:\Yasir\eclipse.ws\sunshine.portal\.metadata\.plugins\com.liferay.ide.eclipse.sdk\sdk.log]

Buildfile: C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\portlets\build.xml

BUILD FAILED
C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\build-common.xml:47: The following error occurred while executing this line:
C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\build-common-ivy.xml:34: The following error occurred while executing this line:
C:\Yasir\eclipse.ws\sunshine.portal\liferay-plugins-sdk-6.2\build-common-ivy.xml:50: java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String

Total time: 1 second
thumbnail
Gregory Amerson,修改在9 年前。

RE: Can't create Liferay project.

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
This is a known issue with Eclipse 4.4.1. They have already released a patch for this bug at this location [1] You will need to install this feature [2] and then that will be fixed.

[1] http://download.eclipse.org/eclipse/updates/4.4
[2] E4 RCP Patch (bugzillas 445122) 1.0.0

See screenshot for more details.
Yasir Qureshi,修改在9 年前。

RE: Can't create Liferay project.

New Member 帖子: 3 加入日期: 14-11-26 最近的帖子
Updated and same results not working. Please see attach screenshot and please help.
thumbnail
Lu Li,修改在9 年前。

RE: Can't create Liferay project.

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi Yasir ,

Its a problem related to Liferay 6.0 JRE ,here is a ticket for and there is solution under it .
https://issues.liferay.com/browse/IDE-1282

you have two ways to solve the problem , whether to use JDK 1.6 to run your IDE , or set runtime JRE to not use it's default Liferay v6.0 CE (Tomcat 6) JRE

1. go to Windows >>Preferences>>Java>>Installed JREs
change the default jre to a jdk 1.6
then change the Java >> Complier , change JDK compliance level to 1.6
2. go to Windows >>Preferences>>Server>>Runtime Environments _25 edit your server , in the Edit Server Runtime Environment dialog , Select Runtime JRE to jre 1.8.0_25

let me know if you still have problem ,thanks
Yasir Qureshi,修改在9 年前。

RE: Can't create Liferay project.

New Member 帖子: 3 加入日期: 14-11-26 最近的帖子
Worked!!! Successfully created a portal project.

Thanks again!