Is Sling Jackrabbit Persistence Manager support Oracle12

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is Sling Jackrabbit Persistence Manager support Oracle12

Yanice Youbi
Hi,

I’m working on a project that uses Oracle instead of Derby as a persistence manager.
I use Oracle11 but the database is migrating to Oracle12.

I've just changed the connection string to fit with the new database but I’ve got the error below.

Can I use Oracle 12 as a persistence manager ? or do I need to migrate to Jackrabbit Oak ?
Thanks.

24.01.2019 11:05:47.561 *INFO* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl Starting repository...
24.01.2019 11:05:47.563 *INFO* [FelixStartLevel] org.apache.jackrabbit.core.fs.local.LocalFileSystem LocalFileSystem initialized at path /var/opt/jboss/v6/app-data/OPAL_DEV/jackrabbit/repository
24.01.2019 11:05:47.966 *INFO* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl Shutting down repository...
24.01.2019 11:05:47.967 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl In addition to startup fail, another unexpected problem occurred while shutting down the repository again.
java.lang.NullPointerException: null
        at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1130)
        at org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:1048)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:372)
        at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:589)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager.acquireRepository(SlingServerRepositoryManager.java:208)
        at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.start(AbstractSlingRepositoryManager.java:306)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager.activate(SlingServerRepositoryManager.java:345)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)
        at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)
        at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)
        at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)
        at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:850)
        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)
        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)
        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)
        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
        at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1003)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:992)
        at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1044)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:841)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)
        at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)
        at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)
        at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)
        at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)
        at org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)
        at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)
        at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
        at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
        at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:869)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:790)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:515)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Thread.java:748)
24.01.2019 11:05:47.976 *ERROR* [FelixStartLevel] org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager start: Uncaught Throwable trying to access Repository, calling stopRepository()
java.lang.NoClassDefFoundError: javax/crypto/interfaces/PBEKey
        at oracle.security.o5logon.O5Logon.a(Unknown Source)
        at oracle.security.o5logon.O5Logon.generateOAuthResponse(Unknown Source)
        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:833)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:639)
        at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
        at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at org.apache.jackrabbit.core.util.db.ConnectionHelper.tableExists(ConnectionHelper.java:202)
        at org.apache.jackrabbit.core.util.db.CheckSchemaOperation.run(CheckSchemaOperation.java:80)
        at org.apache.jackrabbit.core.data.db.DbDataStore.init(DbDataStore.java:609)
        at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$4.getDataStore(RepositoryConfigurationParser.java:1078)
        at org.apache.jackrabbit.core.config.RepositoryConfig.getDataStore(RepositoryConfig.java:1072)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:279)
        at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:589)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager.acquireRepository(SlingServerRepositoryManager.java:208)
        at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.start(AbstractSlingRepositoryManager.java:306)
        at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager.activate(SlingServerRepositoryManager.java:345)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)
        at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)
        at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)
        at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)
        at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:850)
        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)
        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)
        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)
        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)
        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
        at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1003)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:992)
        at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1044)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:841)
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)
        at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)
        at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)
        at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)
        at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)
        at org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)
        at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)
        at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
        at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
        at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:869)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:790)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:515)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: javax.crypto.interfaces.PBEKey not found by Oracle_JDBC_7_bundle [187]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 76 common frames omitted
24.01.2019 11:05:47.991 *INFO* [FelixStartLevel] org.apache.sling.serviceusermapper Service [org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl,181] ServiceEvent REGISTERED
24.01.2019 11:05:47.997 *INFO* [FelixStartLevel] org.apache.felix.inventory Service [194] ServiceEvent REGISTERED
24.01.2019 11:05:47.998 *INFO* [FelixStartLevel] org.apache.sling.serviceusermapper Service [org.apache.sling.serviceusermapping.impl.MappingInventoryPrinter,193] ServiceEvent REGISTERED
24.01.2019 11:05:48.001 *INFO* [FelixStartLevel] org.apache.sling.serviceusermapper Service [org.apache.sling.serviceusermapping.impl.ServiceUserMappedBundleFilter,195] ServiceEvent REGISTERED
24.01.2019 11:05:48.001 *INFO* [FelixStartLevel] org.apache.sling.serviceusermapper BundleEvent STARTED
24.01.2019 11:05:48.003 *INFO* [FelixStartLevel] org.apache.sling.servlets.get BundleEvent RESOLVED
24.01.2019 11:05:48.004 *INFO* [FelixStartLevel] org.apache.sling.servlets.get BundleEvent STARTING
24.01.2019 11:05:48.010 *INFO* [FelixStartLevel] org.apache.sling.servlets.get Service [org.apache.sling.servlets.get.impl.impl.info.SlingInfoServlet,196] ServiceEvent REGISTERED
Reply | Threaded
Open this post in threaded view
|

Re: Is Sling Jackrabbit Persistence Manager support Oracle12

Robert Munteanu-2
Hi Yanice,

On Tue, 2019-01-29 at 12:01 +0100, Yanice Youbi wrote:

> Caused by: java.lang.ClassNotFoundException:
> javax.crypto.interfaces.PBEKey not found by Oracle_JDBC_7_bundle
> [187]
>         at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
> gation(BundleWiringImpl.java:1556)
>         at
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm
> pl.java:77)
>         at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
> ss(BundleWiringImpl.java:1993)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 76 common frames omitted

Looks like you're missing an export for the javax.crypto.interfaces
package. In my Sling starter setup if I go to

http://localhost:8080/system/console/depfinder

and search for that package I see that it's exported by the
org.apache.felix.framework bundle. What results do you get?

Thanks,

Robert

Reply | Threaded
Open this post in threaded view
|

Re: Is Sling Jackrabbit Persistence Manager support Oracle12

Yanice Youbi
In reply to this post by Yanice Youbi
Hi, thank you for your help.

I get this following result


Yanice


On 2019/01/30 21:52:46, Robert Munteanu <r...@apache.org> wrote:

> Hi Yanice,>
>
> On Tue, 2019-01-29 at 12:01 +0100, Yanice Youbi wrote:>
> > Caused by: java.lang.ClassNotFoundException:>
> > javax.crypto.interfaces.PBEKey not found by Oracle_JDBC_7_bundle>
> > [187]>
> >         at>
> > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele>
> > gation(BundleWiringImpl.java:1556)>
> >         at>
> > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm>
> > pl.java:77)>
> >         at>
> > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla>
> > ss(BundleWiringImpl.java:1993)>
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)>
> >         ... 76 common frames omitted>
>
> Looks like you're missing an export for the javax.crypto.interfaces>
> package. In my Sling starter setup if I go to >
>
> http://localhost:8080/system/console/depfinder>
>
> and search for that package I see that it's exported by the>
> org.apache.felix.framework bundle. What results do you get?>
>
> Thanks,>
>
> Robert>
>
> 
Reply | Threaded
Open this post in threaded view
|

Re: Is Sling Jackrabbit Persistence Manager support Oracle12

Robert Munteanu-2
Hi Yanice,

Then I guess the problem is in your JDBC driver ... would you be able
to share a sample project which would help us reproduce the issue? I
think it should be posted at

  https://issues.apache.org/jira/browse/SLING

Thanks!

Robert

On Thu, 2019-01-31 at 11:56 +0100, Yanice Youbi wrote:

> Hi, thank you for your help.
>
> I get this following result
>
>
> Yanice
>
>
> On 2019/01/30 21:52:46, Robert Munteanu <[hidden email]> wrote:
> > Hi Yanice,>
> >
> > On Tue, 2019-01-29 at 12:01 +0100, Yanice Youbi wrote:>
> > > Caused by: java.lang.ClassNotFoundException:>
> > > javax.crypto.interfaces.PBEKey not found by
> Oracle_JDBC_7_bundle>
> > > [187]>
> > >         at>
> > >
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
> >
> > > gation(BundleWiringImpl.java:1556)>
> > >         at>
> > >
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm
> >
> > > pl.java:77)>
> > >         at>
> > >
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
> >
> > > ss(BundleWiringImpl.java:1993)>
> > >         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)>
> > >         ... 76 common frames omitted>
> >
> > Looks like you're missing an export for the
> javax.crypto.interfaces>
> > package. In my Sling starter setup if I go to >
> >
> > http://localhost:8080/system/console/depfinder>
> >
> > and search for that package I see that it's exported by the>
> > org.apache.felix.framework bundle. What results do you get?>
> >
> > Thanks,>
> >
> > Robert>
> >
> >