Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with OSGI while starting Pepper for the first time #123

Open
colan101 opened this issue Aug 7, 2018 · 0 comments
Open

Problem with OSGI while starting Pepper for the first time #123

colan101 opened this issue Aug 7, 2018 · 0 comments

Comments

@colan101
Copy link

colan101 commented Aug 7, 2018

Hello,

I wanted to use Pepper to convert CONLL files into the Annis format. The problem is, that Pepper does not run, because I always get the following error message:

2018-08-07 14:10:36,761 INFO [main] o.c.p.c.PepperStarter [PepperStarter.java:1383] An error occured, while starting Pepper. To get more information on that, please check the log file, which is by default located at 'PEPPER_HOME/pepper_out.log'. You now can exit Pepper or try to find out more about that exception using the Pepper console.
org.corpus_tools.pepper.cli.exceptions.PepperOSGiException: The OSGi environment could not have been started: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.corpus_tools.pepper.connectors.impl.PepperOSGiConnector.init(PepperOSGiConnector.java:139)
at org.corpus_tools.pepper.cli.PepperStarter.setPepper(PepperStarter.java:130)
at org.corpus_tools.pepper.cli.PepperStarter.main(PepperStarter.java:1381)
Caused by: java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:656)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:69)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:264)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
at org.corpus_tools.pepper.connectors.impl.PepperOSGiConnector.startEquinox(PepperOSGiConnector.java:232)
at org.corpus_tools.pepper.connectors.impl.PepperOSGiConnector.init(PepperOSGiConnector.java:137)
... 2 common frames omitted
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
... 9 common frames omitted
Caused by: java.lang.IllegalStateException: The System Bundle could not be resolved: Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.5
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.checkSystemState(BaseStorage.java:827)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseStorage.java:800)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:387)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.frameworkStart(BaseStorage.java:923)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.frameworkStart(BaseAdaptor.java:250)
at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 11 common frames omitted

When I try "start-osgi" in debug mode, I get the same error with the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.osgi.framework.internal.core.Framework (file:...pepper/lib/osgi-3.9.1-v20130814-1242.jar) to field java.net.URL.factory
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.framework.internal.core.Framework
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

I know a little bit about programming, but not enough to find a solution. So after a few hours of searching the internet I thought maybe you could help me. I'm working on Windows10 and I have 2 Versions of Java installed (Version 9.0.4 and Version 1.8.0_181).

Thanks it advance,
Corinna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant