[jbosstools-issues] [JBoss JIRA] (JBDS-4784) RHCodeReady fail when run on MacOS 10.14.4

André Dietisheim (Jira) issues at jboss.org
Thu Oct 17 04:51:00 EDT 2019


    [ https://issues.jboss.org/browse/JBDS-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800825#comment-13800825 ] 

André Dietisheim edited comment on JBDS-4784 at 10/17/19 4:50 AM:
------------------------------------------------------------------

[~javiervivanco] I strongly believe that your CodeReady installation is corrupt. Reinstalling CodeReady Studio should fix your issue. 
Your stacktrace shows that it starts with a Filereader trying to extract values from a bundle context and causing an NPE:
{code}
Caused by: java.lang.NullPointerException
	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77
{code}
The code discussed is here: https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.transport.ecf/src/org/eclipse/equinox/internal/p2/transport/ecf/FileReader.java?id=e421fd9ec19155d412a64851f348e23dbbd3a948#n60
{code}
	static private String getProperty(String key, String defaultValue) {
		String value = Activator.getContext().getProperty(key);
		if (value == null) {
			value = defaultValue;
		}
		return value;
	}
{code}
If you reinstall CodeReady Studio, do you still get this error? I strongly expect that you wont.


was (Author: adietish):
[~javiervivanco] I strongly believe that your CodeReady installation is corrupt. Your stacktrace shows that it starts with a Filereader trying to extract values from a bundle context and causing an NPE:
{code}
Caused by: java.lang.NullPointerException
	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77
{code}
The code discussed is here: https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.transport.ecf/src/org/eclipse/equinox/internal/p2/transport/ecf/FileReader.java?id=e421fd9ec19155d412a64851f348e23dbbd3a948#n60
{code}
	static private String getProperty(String key, String defaultValue) {
		String value = Activator.getContext().getProperty(key);
		if (value == null) {
			value = defaultValue;
		}
		return value;
	}
{code}
If you reinstall CodeReady Studio, do you still get this error? I strongly expect that you wont.

> RHCodeReady fail when run on MacOS 10.14.4
> ------------------------------------------
>
>                 Key: JBDS-4784
>                 URL: https://issues.jboss.org/browse/JBDS-4784
>             Project: Red Hat CodeReady Studio (devstudio)
>          Issue Type: Bug
>          Components: product
>    Affects Versions: 12.12.0.GA
>         Environment: MacOS 10.14.4
> java 11.0.1 2018-10-16 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
>            Reporter: Javier Vivanco
>            Assignee: André Dietisheim
>            Priority: Major
>             Fix For: 12.13.0.GA
>
>
> When open the IDE i see.
> {code}
> $ /Applications/codereadystudio/codereadystudio.app/Contents/MacOS/codereadystudio
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> Exception in thread "Thread-7" java.lang.ExceptionInInitializerError
> 	at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.download(RepositoryTransport.java:83)
> 	at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.download(RepositoryTransport.java:158)
> 	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.handleRemoteIndexFile(AbstractRepositoryManager.java:713)
> 	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadIndexFile(AbstractRepositoryManager.java:707)
> 	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:649)
> 	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:110)
> 	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:105)
> 	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.getAvailableRepositories(UpdateChecker.java:152)
> 	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.checkForUpdates(UpdateChecker.java:130)
> 	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker$UpdateCheckThread.run(UpdateChecker.java:78)
> Caused by: java.lang.NullPointerException
> 	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
> 	at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77)
> 	... 10 more
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jbosstools-issues mailing list