satyagraha / gfm_viewer

An Eclipse plugin providing an accurate view of GitHub Flavored Markdown (.md) files
95 stars 27 forks source link

Just wont work on my machine... #85

Open MonkeyNinja opened 8 years ago

MonkeyNinja commented 8 years ago

I get this error:

An internal error occurred during: "Transforming: test.md".
Could not initialize class com.sun.jersey.spi.service.ServiceFinder

I've noticed when browsing here you require 32-bit JRE/JDK, i'm using a 64bit one, is that the cause of the above error?

satyagraha commented 8 years ago

The 32-bit JDK is only necessary if building the plugin, I've just run it successfully with Eclipse Mars.2 64-bit with Sun JVM 1.8.0_92 on Windows 7-64. I note that GitHub is not directly serving user content via the "raw" subdomain now, so try this as the update site: https://raw.githubusercontent.com/satyagraha/gfm_viewer/master/p2-composite - the version presented for install should be 2.0.1. Minimum JVM version is now 1.7. Let us know how you get on.

MonkeyNinja commented 8 years ago

I've tried it on Mars and it works, I was trying it on a Juno with the Mulesoft plugins, rolled up as Anypoint Studio....

I've installed again from the link you provided above...and now get the following slightly larger error message:

An internal error occurred during: "Transforming: test.md".
com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider

The Mars installation where it works (E for Developers, current one from the Eclipse web site) doesent have any 'jersey' stuff in the install details/plugins.

Whilst the one where it fails Anypoint Studio, has :

image

not sure what jersey is...sorry new to Java!

satyagraha commented 8 years ago

What appears to be happening is that two versions of the Jersey REST web client library are being seen by the plugin code, one from my plugin, and one from the preconfigured Anypoint Studio installation.

The OSGi bundle and classloader mechanism is meant to prevent this sort of collision happening, but there may be a configuration issue on the plugin. Background at: http://www.vogella.com/tutorials/OSGi/article.html . I will take a look when I can, but am pretty busy.