This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232702 - Oracle cloud plugin cannot be installed
Summary: Oracle cloud plugin cannot be installed
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Oracle Cloud (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 11:40 UTC by Martin Janicek
Modified: 2013-07-18 02:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2013-07-15 11:40:48 UTC
While fixing issue 219706, I tried to get Oracle cloud remove server working in my environment following guidelines from [1]. When trying to install oracle cloud plugins (point 1 from the mentioned link), the plugin installer shows me following error message:

Some plugins require plugin RESTful Web Service Libraries to be installed.
The plugin RESTful Web Service Libraries is requested in version >= 1.12 (release version 0) but only 2.2 (of release version different from 0) was found.  The following plugin is affected:       Oracle Cloud SDK


I guess it might be related to recent upgrade from Jersey 1.12 to Jersey 2.0 ? Not sure what is priority of this issue, I hardly believe Oracle cloud is used by many users so feel free to decrease to P3 or something.

[1] http://jupiter.cz.oracle.com/wiki/view/Netbeans/Cloud9HOWTO
Comment 1 David Konecny 2013-07-15 22:58:29 UTC
I think the information on [1] is for NB 7.2. Since NB 7.3 Oracle Cloud is part of daily build and dependencies should just work and be verified by daily build. Please reopen if I missed something. Thx.
Comment 2 Martin Janicek 2013-07-16 15:41:01 UTC
You're right, I was able to install the plugin directly. But now I have another exception on a different place and it looks again related to Jersey. I have created new Oracle cloud account, follow the instructions and when trying to go from step 2 and 3, following exception was thrown:


INFO [org.netbeans.modules.cloud.oracle.ui.OracleWizardComponent]: cannot connect
java.lang.ClassNotFoundException: com.sun.jersey.api.client.filter.ClientFilter
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Caused: java.lang.NoClassDefFoundError: com/sun/jersey/api/client/filter/ClientFilter
	at oracle.cloud.paas.internal.CloudApplicationServiceProvider.createApplicationManagerConnection(CloudApplicationServiceProvider.java:21)
	at oracle.cloud.paas.api.ApplicationManagerConnectionFactory.createServiceEndpoint(ApplicationManagerConnectionFactory.java:46)
	at oracle.cloud.paas.api.ApplicationManagerConnectionFactory.createServiceEndpoint(ApplicationManagerConnectionFactory.java:27)
	at org.netbeans.libs.oracle.cloud.ext.ApplicationManagerConnectionFactoryImpl.createServiceEndpoint(ApplicationManagerConnectionFactoryImpl.java:71)
	at org.netbeans.modules.cloud.oracle.OracleInstance.createApplicationManager(OracleInstance.java:306)
	at org.netbeans.modules.cloud.oracle.OracleInstance.getApplicationManager(OracleInstance.java:295)
	at org.netbeans.modules.cloud.oracle.OracleInstance.testConnection(OracleInstance.java:311)
[catch] at org.netbeans.modules.cloud.oracle.ui.OracleWizardPanel.validate(OracleWizardPanel.java:221)
	at org.openide.WizardDescriptor$11.run(WizardDescriptor.java:1458)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 3 David Konecny 2013-07-16 21:57:03 UTC
This sucks. Oracle Public Cloud SDK requires Jersey 1.x.
Comment 4 David Konecny 2013-07-17 01:24:54 UTC
Lucky!! This one was easy to fix: web-main#1e3c3ea8b141
I cannot test it fully as I do not have OPC account. But exception is not thrown anymore and attempt with fake credentials fails with TimeoutException - maybe my SDK is too old??
Comment 5 Martin Janicek 2013-07-17 09:51:55 UTC
I'm sorry, but I'm still getting the same exception. I can send you credentials for my cloud trial account but it will expire in three days I think
Comment 6 Martin Janicek 2013-07-17 14:29:01 UTC
Changing status back to FIXED. As PetrJ pointed out, it was caused by the fact that those changes were not propagated yet through the nbms-and-javadoc job.
I was finally able to finish the wizard. Wohoho!
Comment 7 Quality Engineering 2013-07-18 02:40:12 UTC
Integrated into 'main-silver', will be available in build *201307172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1e3c3ea8b141
User: David Konecny <dkonecny@netbeans.org>
Log: #232702 - Oracle cloud plugin cannot be installed