[
https://issues.apache.org/jira/browse/OAK-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra updated OAK-3248:
---------------------------------
Description:
When using Oak with pojosr support in Spring Boot based application then
following exception is seen
{noformat}
Caused by: java.lang.RuntimeException:
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.startBundles(OakOSGiRepositoryFactory.java:341)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.initializeServiceRegistry(OakOSGiRepositoryFactory.java:217)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.getRepository(OakOSGiRepositoryFactory.java:161)
at
com.meta64.mobile.repo.OakRepository.createRepository(OakRepository.java:258)
at
com.meta64.mobile.repo.OakRepository.initRepository(OakRepository.java:226)
at
com.meta64.mobile.repo.OakRepository.postConstruct(OakRepository.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 51 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -4
at java.lang.String.substring(String.java:1875)
at org.apache.felix.connect.PojoSR.buildRevision(PojoSR.java:334)
at org.apache.felix.connect.PojoSR.startBundles(PojoSR.java:259)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.startBundles(OakOSGiRepositoryFactory.java:339)
... 63 more
{noformat}
Application used here a modified form of https://github.com/Clay-Ferguson/meta64
was:
When using Oak with pojosr support in Spring Boot based application then
following exception is seen
{noformat}
Caused by: java.lang.RuntimeException:
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.startBundles(OakOSGiRepositoryFactory.java:341)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.initializeServiceRegistry(OakOSGiRepositoryFactory.java:217)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.getRepository(OakOSGiRepositoryFactory.java:161)
at
com.meta64.mobile.repo.OakRepository.createRepository(OakRepository.java:258)
at
com.meta64.mobile.repo.OakRepository.initRepository(OakRepository.java:226)
at
com.meta64.mobile.repo.OakRepository.postConstruct(OakRepository.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
{noformat}
Application used here a modified form of https://github.com/Clay-Ferguson/meta64
> Felix Connect throws exception when launching Oak in Spring Boot env
> --------------------------------------------------------------------
>
> Key: OAK-3248
> URL: https://issues.apache.org/jira/browse/OAK-3248
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: pojosr
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.3.5
>
>
> When using Oak with pojosr support in Spring Boot based application then
> following exception is seen
> {noformat}
> Caused by: java.lang.RuntimeException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -4
> at
> org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.startBundles(OakOSGiRepositoryFactory.java:341)
> at
> org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.initializeServiceRegistry(OakOSGiRepositoryFactory.java:217)
> at
> org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.getRepository(OakOSGiRepositoryFactory.java:161)
> at
> com.meta64.mobile.repo.OakRepository.createRepository(OakRepository.java:258)
> at
> com.meta64.mobile.repo.OakRepository.initRepository(OakRepository.java:226)
> at
> com.meta64.mobile.repo.OakRepository.postConstruct(OakRepository.java:158)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
> ... 51 more
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: -4
> at java.lang.String.substring(String.java:1875)
> at org.apache.felix.connect.PojoSR.buildRevision(PojoSR.java:334)
> at org.apache.felix.connect.PojoSR.startBundles(PojoSR.java:259)
> at
> org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.startBundles(OakOSGiRepositoryFactory.java:339)
> ... 63 more
> {noformat}
> Application used here a modified form of
> https://github.com/Clay-Ferguson/meta64
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)