Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 446161 - 4.4.1 - !MESSAGE Exception while setting up logging:org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
Summary: 4.4.1 - !MESSAGE Exception while setting up logging:org.eclipse.osgi.internal...
Status: CLOSED DUPLICATE of bug 445122
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-07 08:59 EDT by Valeriy Likhovskikh CLA
Modified: 2014-10-07 09:28 EDT (History)
2 users (show)

See Also:


Attachments
Run As - Eclipse Application (224.75 KB, image/jpeg)
2014-10-07 08:59 EDT, Valeriy Likhovskikh CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valeriy Likhovskikh CLA 2014-10-07 08:59:08 EDT
Created attachment 247679 [details]
Run As - Eclipse Application

1. New -> Plugin Project -> Plug-in  with sample help content -> Primary

2  Run as -> Eclipse Application

ERROR!!!

1. View IDE "Console"
   Error: Could not find or load main class Likhovskikh

2. Logfile workspace/.metadata/.log
!SESSION 2014-10-07 16:22:50.697 -----------------------------------------------
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.m2e.logback.configuration 2 0 2014-10-07 16:23:32.364
!MESSAGE Exception while setting up logging:org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
!STACK 0
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
	at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
	at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
	at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
	at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
	at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)


PROBLEM IN PLUGIN -> org.eclipse.osgi_3.10.1.v20140909-1633.jar -> class org.eclipse.osgi.internal.framework.EquinoxConfiguration 
see field NULL_CONFIG

  private static final Object NULL_CONFIG = new Object() {
  	public String toString() {
	      return "null";
	    }
	  };

Value of field NULL_CONFIG write to field "configuration" <String, String> (see methods 
  public String getConfiguration(String key) 
  public String getConfiguration(String key, String defaultValue)
  public String setConfiguration(String key, String value)
  public String clearConfiguration(String key)
  public Map<String, String> getConfiguration()
)

For fixed bug this field replace to 

  private static final Object NULL_CONFIG = "null";
Comment 1 Markus Keller CLA 2014-10-07 09:28:42 EDT

*** This bug has been marked as a duplicate of bug 445122 ***