I got the following error in felix.log after adding javax.xml.soap:javax.xml.soap-api-1.4.0.jar in osgi/custo directory, how to understand the error message and what could be the possible fix?
WARN - 2022-10-17 14:36:22,821 - FelixDispatchQueue - Could not start bundle: file:custo/cxf-rt-frontend-jaxws-3.4.8.jar
org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve resource org.apache.cxf.cxf-rt-frontend-jaxws [org.apache.cxf.cxf-rt-frontend-jaxws [231](R 231.0)] because it is exposed to package 'javax.xml.soap' from resources javax.xml.soap-api [javax.xml.soap-api [144](R 144.0)] and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via two dependency chains.
Chain 1:
org.apache.cxf.cxf-rt-frontend-jaxws [org.apache.cxf.cxf-rt-frontend-jaxws [231](R 231.0)]
import: (&(osgi.wiring.package=javax.xml.soap)(version>=1.4.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package: javax.xml.soap
javax.xml.soap-api [javax.xml.soap-api [144](R 144.0)]
Chain 2:
org.apache.cxf.cxf-rt-frontend-jaxws [org.apache.cxf.cxf-rt-frontend-jaxws [231](R 231.0)]
import: (&(osgi.wiring.package=javax.xml.ws.handler.soap)(version>=0.0.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package: javax.xml.ws.handler.soap; uses:=javax.xml.soap
export: osgi.wiring.package=javax.xml.soap
org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-jaxws [231](R 231.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.ws.handler.soap)(version>=0.0.0)(!(version>=3.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
at org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
at org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
at org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
at org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
at java.lang.Thread.run(Thread.java:750)
if I don't install javax.xml.soap-api-1.4.0.jar, I will get the following exception with cxf 3.4.8 package:
WARN - 2022-10-19 07:48:04,272 - FelixDispatchQueue - Could not start bundle: file:custo/cxf-rt-frontend-simple-3.4.8.jar
org.osgi.framework.BundleException: Unable to resolve org.apache.cxf.cxf-rt-frontend-simple [25](R 25.0): missing requirement [org.apache.cxf.cxf-rt-frontend-simple [25](R 25.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.cxf.binding.soap.interceptor)(version>=3.4.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.cxf.cxf-rt-bindings-soap [112](R 112.0): missing requirement [org.apache.cxf.cxf-rt-bindings-soap [112](R 112.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.soap)(version>=1.4.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-simple [25](R 25.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.cxf.binding.soap.interceptor)(version>=3.4.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
at org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
at org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
at org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
at org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
at java.lang.Thread.run(Thread.java:750)
WARN - 2022-10-19 07:48:04,881 - FelixDispatchQueue - Could not start bundle: file:custo/cxf-rt-frontend-jaxws-3.4.8.jar
org.osgi.framework.BundleException: Unable to resolve org.apache.cxf.cxf-rt-frontend-jaxws [84](R 84.0): missing requirement [org.apache.cxf.cxf-rt-frontend-jaxws [84](R 84.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.soap)(version>=1.4.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-jaxws [84](R 84.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.xml.soap)(version>=1.4.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
at com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
at org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
at org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
at org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
at org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
at java.lang.Thread.run(Thread.java:750)
Related
Issue/Problem Description : I am not able to start server after spring cloud migration 2021 0 4 and Java 17 . Can any one help me on this
I have tried to upgrade various spring eureka jars . I need to start application without any errors
Error log :
java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.netflix.eureka.config.DiscoveryClientOptionalArgsConfiguration.defaultEurekaClientHttpRequestFactorySupplier\n\t
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60)\n\t
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)\n\t
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:193)\n\t
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:153)\n\t
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:129)\n\t
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:343)\n\t
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:247)\n\t
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)\n\t
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:112)\n\t
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)\n\t
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)\n\t
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)\n\t
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)\n\t
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)\n\t
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)\n\t
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)\n\t
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)\n\t
at com.dt.rts.eregusa.discovery.Application.main(Application.java:12)\n\t
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\t
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\t
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\t
at java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\t
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)\n\t
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)\n\t
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)\n\t
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)\n
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.netflix.eureka.config.DiscoveryClientOptionalArgsConfiguration] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader#61af1510]\n\t
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)\n\t
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:361)\n\t
at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:418)\n\t
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeForFactoryMethod$2(AbstractAutowireCapableBeanFactory.java:765)\n\t
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1740)\n\t
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:764)\n\t
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:703)\n\t
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:674)\n\t
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1684)\n\t
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:570)\n\t
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:542)\n\t
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:250)\n\t
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:243)\n\t
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:233)\n\t
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:181)\n\t
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:156)\n\t
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)\n\t...
25 common frames omitted\n
Caused by: java.lang.NoClassDefFoundError: com/netflix/discovery/DiscoveryClient$DiscoveryClientOptionalArgs\n\t
at java.base/java.lang.ClassLoader.defineClass1(Native Method)\n\t
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)\n\t
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)\n\t
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)\n\t
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)\n\t
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)\n\t
Here is the crash log:
2021-11-09 14:09:39.214 30577-30577/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.bosch.smartcamera.test, PID: 30577 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/datatransport/runtime/dagger/internal/Factory; at com.google.android.datatransport.runtime.DaggerTransportRuntimeComponent.builder(DaggerTransportRuntimeComponent.java:70) at com.google.android.datatransport.runtime.TransportRuntime.initialize(TransportRuntime.java:76) at com.google.firebase.datatransport.TransportRegistrar.lambda$getComponents$0(TransportRegistrar.java:37) at com.google.firebase.datatransport.-$$Lambda$TransportRegistrar$cPZPPfWZLxVwhtSgzJNU9TpSidE.create(Unknown Source:0) at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(ComponentRuntime.java:132) at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$ComponentRuntime(Unknown Source:0) at com.google.firebase.components.-$$Lambda$ComponentRuntime$4FqOW9eOQsvFYo-HpMfxCOnPQr0.get(Unknown Source:4) at com.google.firebase.components.Lazy.get(Lazy.java:53) at com.google.firebase.components.AbstractComponentContainer.get(AbstractComponentContainer.java:27) at com.google.firebase.components.ComponentRuntime.get(ComponentRuntime.java:45) at com.google.firebase.components.RestrictedComponentContainer.get(RestrictedComponentContainer.java:89) at com.google.firebase.messaging.FirebaseMessagingRegistrar.lambda$getComponents$0$FirebaseMessagingRegistrar(com.google.firebase:firebase-messaging##22.0.0:7) at com.google.firebase.messaging.FirebaseMessagingRegistrar$$Lambda$0.create(Unknown Source:0) at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(ComponentRuntime.java:132) at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$ComponentRuntime(Unknown Source:0) at com.google.firebase.components.-$$Lambda$ComponentRuntime$4FqOW9eOQsvFYo-HpMfxCOnPQr0.get(Unknown Source:4) at com.google.firebase.components.Lazy.get(Lazy.java:53) at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents(ComponentRuntime.java:291) at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(ComponentRuntime.java:281) at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:584) at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:303) at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:267) at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:252) at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51) at android.content.ContentProvider.attachInfo(ContentProvider.java:2092) at android.content.ContentProvider.attachInfo(ContentProvider.java:2066) at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45) at android.app.ActivityThread.installProvider(ActivityThread.java:7237) at android.app.ActivityThread.installContentProviders(ActivityThread.java:6782) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6693) at android.app.ActivityThread.access$1400(ActivityThread.java:232) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2014) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:241) at android.app.ActivityThread.main(ActivityThread.java:7617) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941) Caused by: java.lang.ClassNotFoundException: com.google.android.datatransport.runtime.dagger.internal.Factory at com.google.android.datatransport.runtime.DaggerTransportRuntimeComponent.builder(DaggerTransportRuntimeComponent.java:70)Â at com.google.android.datatransport.runtime.TransportRuntime.initialize(TransportRuntime.java:76)Â at com.google.firebase.datatransport.TransportRegistrar.lambda$getComponents$0(TransportRegistrar.java:37)Â at com.google.firebase.datatransport.-$$Lambda$TransportRegistrar$cPZPPfWZLxVwhtSgzJNU9TpSidE.create(Unknown Source:0)Â at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(ComponentRuntime.java:132)Â at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$ComponentRuntime(Unknown Source:0)Â at com.google.firebase.components.-$$Lambda$ComponentRuntime$4FqOW9eOQsvFYo-HpMfxCOnPQr0.get(Unknown Source:4)Â at com.google.firebase.components.Lazy.get(Lazy.java:53)Â at com.google.firebase.components.AbstractComponentContainer.get(AbstractComponentContainer.java:27)Â at com.google.firebase.components.ComponentRuntime.get(ComponentRuntime.java:45)Â at com.google.firebase.components.RestrictedComponentContainer.get(RestrictedComponentContainer.java:89)Â at com.google.firebase.messaging.FirebaseMessagingRegistrar.lambda$getComponents$0$FirebaseMessagingRegistrar(com.google.firebase:firebase-messaging##22.0.0:7)Â at com.google.firebase.messaging.FirebaseMessagingRegistrar$$Lambda$0.create(Unknown Source:0)Â at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(ComponentRuntime.java:132)Â at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$ComponentRuntime(Unknown Source:0)Â at com.google.firebase.components.-$$Lambda$ComponentRuntime$4FqOW9eOQsvFYo-HpMfxCOnPQr0.get(Unknown Source:4)Â at com.google.firebase.components.Lazy.get(Lazy.java:53)Â at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents(ComponentRuntime.java:291)Â at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(ComponentRuntime.java:281)Â at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:584)Â at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:303)Â at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:267)Â at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:252)Â at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)Â at android.content.ContentProvider.attachInfo(ContentProvider.java:2092)Â at android.content.ContentProvider.attachInfo(ContentProvider.java:2066)Â at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)Â at android.app.ActivityThread.installProvider(ActivityThread.java:7237)Â at android.app.ActivityThread.installContentProviders(ActivityThread.java:6782)Â at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6693)Â at android.app.ActivityThread.access$1400(ActivityThread.java:232)Â at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2014)Â at android.os.Handler.dispatchMessage(Handler.java:107)Â at android.os.Looper.loop(Looper.java:241)Â at android.app.ActivityThread.main(ActivityThread.java:7617)Â at java.lang.reflect.Method.invoke(Native Method)Â at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)Â at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)Â 2021-11-09 14:09:39.279 4694-12739/? W/ActivityTaskManager: Force finishing activity
You need to install Xamarin.Google.Dagger from the Nuget package manager
Mapper.xml
<insert id = "insertVacation" parameterType = "Vacation">
INSERT INTO ferias (audit_dt, audit_usuario, audit_st_ope,
feri_cfun_cd_mat, feri_fepa_ano, feri_sq, feri_dt_inicio, feri_dt_fim,
feri_fsfr_cd, feri_st_pag, feri_ds_obs, feri_st_ad13sal, feri_dt_pagref,
feri_st_autorizado, fepa_st_recebe_adferias, feri_fl_periodo_ativo,
feri_dt_programacao, feri_dt_autorizacao, feri_tp_programacao,
feri_fl_adiantamento_durante, feri_fl_13_durante )
VALUES (#{auditDate, typeHandler="br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"}, #{auditUser}, #{auditStatus}, #{userCode},
#{currentYear}, #{sequencial}, #{initialPeriod}, #{finalPeriod},
#{status}, #{paymentStatus}, #{note}, #{advance13th}, #{paymentDate},
#{statusAuthorized}, #{additional}, #{activePeriod}, #{scheduleDate},
#{authorizationDate}, #{typeProgramming}, #{advanceVacation},
#{advance13thVacation} )
</insert>
mybatis-config.xml
<typeHandlers>
<typeHandler javaType="org.joda.time.DateTime" jdbcType="DATE" handler="br.gov.df.terracap.grh.util.DateTimeTypeHandler"/>
<typeHandler javaType="org.joda.time.LocalDateTime" jdbcType="TIMESTAMP" handler="br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"/>
</typeHandlers>
Error when test the Insert
### Error updating database. Cause:
org.apache.ibatis.builder.BuilderException: Error resolving class .
Cause: org.apache.ibatis.type.TypeException: Could not resolve type
alias '"br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"'.
Cause: java.lang.ClassNotFoundException: Cannot find class:
"br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler" ### Cause:
org.apache.ibatis.builder.BuilderException: Error resolving class .
Cause: org.apache.ibatis.type.TypeException: Could not resolve type
alias '"br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"'.
Cause: java.lang.ClassNotFoundException: Cannot find class:
"br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"
org.apache.ibatis.exceptions.PersistenceException
VALUES (#{auditDate, typeHandler="br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler"}
Correct:
VALUES (#{auditDate,
typeHandler=br.gov.df.terracap.grh.util.LocalDateTimeTypeHandler}
*without quotes
The Karaf output is as under :
JBossFuse:karaf#root> features:addurl mvn:org.jboss.quickstarts.fuse/jms/6.1.0.redhat-355/xml/features
JBossFuse:karaf#root> features:install quickstart-jms
[Fatal Error] :6:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
Error executing command: The element type "hr" must be terminated by the matching end-tag "</hr>".
I am not sure where this html element is being used.
log:display-exceptionreveals :
2016-02-12 07:36:24,571 | INFO | l Console Thread | Console | ?
? | 17 - org.apache.karaf.shell.console - 2.3.0.redhat-610355 | Exception caught while executing command
org.xml.sax.SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
JBossFuse:karaf#root> log:display-exception
org.xml.sax.SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)[:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:
52)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl
.java:215)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:256)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:1
015)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:97
3)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.jav
a:395)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:
62)[37:org.apache.karaf.features.command:2.3.0.redhat-610355]
at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.jav
a:41)[37:org.apache.karaf.features.command:2.3.0.redhat-610355]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.
apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[17:org.
apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[17:org.apache.karaf.shell.console:2.3.0.redhat-610355]
JBossFuse:karaf#root>
If anyone can help me get this working it will help.
TIA
I got most of the quickstarts (incl the JMS one) to work on this version -> jboss-fuse-6.0.0.redhat-024. My JDK was 1.7.0_60 and was set to JAVA_HOME.
I've a problem when try deploy a profile on a cluster of fabric8 CR5.
this's a log part on karaf.log
2014-09-09 12:33:43,142 | INFO | o.fabric8.agent) | DeploymentAgent | 66 - io.fabric8.fabric-agent - 1.1.0.CR5 | DeploymentAgent updated with {repository.karaf-enterprise=mvn:org.apache.karaf.assemblies.features/enterprise/2.3.0.redhat-610379/xml/features, optional.mvn:org.apache.activemq/activemq-osgi/5.10.0=mvn:org.apache.activemq/activemq-osgi/5.10.0, attribute.parents=feature-camel, feature.insight-log=insight-log, org.ops4j.pax.url.mvn.defaultrepositories=file:/opt/fabric8-karaf-1.1.0.CR5/system#snapshots#id=karaf-default,file:/opt/fabric8-karaf-1.1.0.CR5/local-repo#snapshots#id=karaf-local, feature.camel=camel, feature.fabric-jaas=fabric-jaas, attribute.abstract=false, fabric.zookeeper.pid=io.fabric8.agent, bundle.mvn:anagrafiche_bloomberg/mortgages/0.1=mvn:anagrafiche_bloomberg/Mortgages/0.1, feature.camel-blueprint=camel-blueprint, bundle.mvn:anagrafiche_bloomberg/varcomty/0.1=mvn:anagrafiche_bloomberg/Varcomty/0.1, feature.fabric-core=fabric-core, optional.ops4j-base-lang=mvn:org.ops4j.base/ops4j-base-lang/1.4.0, service.pid=io.fabric8.agent, org.ops4j.pax.url.mvn.repositories=http://repo1.maven.org/maven2#id=central, https://repo.fusesource.com/nexus/content/groups/public#id=fusepublic, https://repository.jboss.org/nexus/content/repositories/public#id=jbosspublic, https://repo.fusesource.com/nexus/content/repositories/releases#id=jbossreleases, https://repo.fusesource.com/nexus/content/groups/ea#id=jbossearlyaccess, http://repository.springsource.com/maven/bundles/release#id=ebrreleases, http://repository.springsource.com/maven/bundles/external#id=ebrexternal, http://10.0.0.124:8081/artifactory/libs-release-local#id=pippo, feature.fabric-web=fabric-web, feature.fabric-git-server=fabric-git-server, repository.apache-camel=mvn:org.apache.camel.karaf/apache-camel/2.13.2/xml/features, bundle.mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1=mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1, bundle.mvn:anagrafiche_bloomberg/equities/0.1=mvn:anagrafiche_bloomberg/Equities/0.1, resolve.optional.imports=false, repository.fabric8=mvn:io.fabric8/fabric8-karaf/1.1.0.CR5/xml/features, feature.camel-amq=camel-amq, optional.mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1=mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1, bundle.mvn:anagrafiche_bloomberg/equity_option_warrants/0.1=mvn:anagrafiche_bloomberg/Equity_Option_Warrants/0.1, feature.karaf=karaf, feature.camel-ftp=camel-ftp, feature.fabric-agent=fabric-agent, feature.jolokia=jolokia, feature.fabric-git=fabric-git, feature.camel-core=camel-core, feature.fabric-camel=fabric-camel, hash=ProfileImpl[id='Anagrafica_Bloomberg', version='1.0']-328b4e0-9859682-9859682-cbe9c83, bundle.mvn:anagrafiche_bloomberg/commodities/0.1=mvn:anagrafiche_bloomberg/Commodities/0.1, repository.karaf-spring=mvn:org.apache.karaf.assemblies.features/spring/2.3.0.redhat-610379/xml/features, lastrefresh.anagrafica_bloomberg=1410258607347, patch.repositories=https://repo.fusesource.com/nexus/content/repositories/releases, https://repo.fusesource.com/nexus/content/groups/ea, repository.karaf-standard=mvn:org.apache.karaf.assemblies.features/standard/2.3.0.redhat-610379/xml/features, bundle.mvn:anagrafiche_bloomberg/vargov_corp_muni/0.1=mvn:anagrafiche_bloomberg/Vargov_Corp_Muni/0.1, bundle.mvn:it.gestielle/anagrafica_bloomberg/1.0=mvn:it.gestielle/Anagrafica_Bloomberg/1.0}
2014-09-09 12:33:44,157 | ERROR | agent-1-thread-1 | DeploymentAgent | 66 - io.fabric8.fabric-agent - 1.1.0.CR5 | Unable to update agent
org.osgi.service.resolver.ResolutionException: Unable to resolve dummy/0.0.0: missing requirement [dummy/0.0.0] osgi.identity; osgi.identity=anagrafiche_bloomberg.Commodities; type=osgi.bundle; version="[0.1.0,0.1.0]" [caused by: Unable to resolve anagrafiche_bloomberg.Commodities/0.1.0: missing requirement [anagrafiche_bloomberg.Commodities/0.1.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.cxf.management.counters)"]
at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at org.apache.felix.resolver.Candidates.populate(Candidates.java:153)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:148)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentBuilder.resolve(DeploymentBuilder.java:224)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:575)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:301)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
this is my local repository
http://10.0.0.124:8081/artifactory/libs-release-local#id=pippo
set on org.ops4j.pax.url.mvn.repositories property where the jar are deploy.
Can someone help me ??
Why the dependencies are not resolve?
Thanks
Mirko
dummy/0.0.0.0 is just the entry point -- read the rest of the error where it walks the dependency chain.
You'll see it's requiring anagrafiche_bloomberg.Commodities, which is requiring org.apache.cxf.management.counters. Be sure to install the CXF package.