Current position:  Home > Default > Issue with Apache Camel and Kura

Issue with Apache Camel and Kura

Time:November 30
Advertisement
Hi,
I was trying to integrate Apache Camel with Kura since Apache Camel run as a separate container.
I uploaded sample code @ https ://github.com/parulagrawal14/Came-Kura.
As per steps mentioned in http ://camel.apache.org/kura.html I installed the following bundles.
install file:///home/camel-core-2.15.2.jar
install file:///home/camel-core-osgi-2.15.2.jar
install file:///home/camel-kura-2.15.2.jar
But while installing my camel-kura i am getting the below errors.
install file:///home//org.eclipse.kura.example.camel_osgi_1.0.0.201506291149.jar
!ENTRY org.eclipse.equinox.ds 4 0 2015-07-19 14:52:55.587
!MESSAGE Exception occurred while creating new instance of component Component[
name = org.eclipse.kura.example.camel_osgi
activate = activate
deactivate = deactivate
modified =
configuration-policy = optional
factory = null
autoenable = true
immediate = true
implementation = org.eclipse.kura.example.camel_osgi.KuraRouter
state = Unsatisfied
properties =
serviceFactory = false
serviceInterface = null
references = null
located in bundle = org.eclipse.kura.example.camel_osgi_1.0.0.201507191449 [46]
!STACK 0
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:493)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:272)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:333)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
!ENTRY org.eclipse.equinox.ds 4 0 2015-07-19 14:52:55.588
!MESSAGE Exception occurred while creating new instance of component Component[
name = org.eclipse.kura.example.camel_osgi
activate = activate
deactivate = deactivate
modified =
configuration-policy = optional
factory = null
autoenable = true
immediate = true
implementation = org.eclipse.kura.example.camel_osgi.KuraRouter
state = Unsatisfied
properties =
serviceFactory = false
serviceInterface = null
references = null
located in bundle = org.eclipse.kura.example.camel_osgi_1.0.0.201507191449 [46]
!STACK 0
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:493)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:272)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:333)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Any idea what could be the issue since i have just used the sample code. Am i missing something very obvious.
Kindly help me in this.
Thanks and Regards,
Parul
Advertisement
Hi Parul,
I have looked inside your sample code for Camel-Kura integration. The error states that your OSGi Bundle encountered an exception due to OSGi Declarative Service Component Initialisation.
Reference Code:
https://github.com/parulagrawal14/Came-Kura/blob/master/org.eclipse.kura.example.camel_osgi/OSGI-INF/component.xml
This is the Declarative Service Component Descriptor and it has the component activate and deactivate methods set to start and stop.
Reference Code:
https://github.com/parulagrawal14/Came-Kura/blob/master/org.eclipse.kura.example.camel_osgi/src/org/eclipse/kura/example/camel_osgi/KuraRouter.java
Your actual service component is also defined as an Activator which is highly unexpected as it violates the principles of OSGi. Even more to it, the start and stop methods are inherited from BundleActivator but the OSGi Declarative Service Component Runtime will initialise this as a service component but the the runtime will never be able to initialise it as it will invoke start method as a component activation method but the start method is inherited from BundleActivator and it has an argument of BundleContext and for component activation, the runtime needs ComponentContext which is never injected there.
This is why you are encountering such an error.
I hope it helps.
Thanks and Regards,

Any issues using Apache's SOAP version 2 with Weblogic

-0001-11-30

Hi, The Weblogic sever is not one in the list of servers that have been tried succesfully with Apache's SOAP. This is the list: Apache Tomcat v3.1 IBM WebSphere v3.02 JRun vx.y.z Microsoft Internet Information Server Has anyone tried SOAP with Weblog

SSL configuratation issue in Apache

-0001-11-30

Hi All, We are using Apache as reverse proxy. We having following scenario, Internet req --> Apache --> SAP Portal --> SAP Web Dispatcher --> SAP SRM 7.0 We have planned to terminate the SSL at Apahe reverse proxy and we bought certificate for

Issues with Apache integration with Crystal Reports

-0001-11-30

Hi, We are using Apache as a reverse proxy to Crystal reports. Couple of our users are having an issue with the Re-direction or executing the Crystal reports. The apache logs show, [Sun Mar 08 14:42:38 2009] [error] [client 10.13.34.3] proxy: error r

Session stickyness issue of Apache plugin

-0001-11-30

Hi Guys , We found a issue of session stickyness for apache plugin . the issue is when apache forward a complex jsp page which including couple of css,js,child jsp and image to weblogic cluster , all those child contents will go to different wls inst

Session invalidate issue on apache server

-0001-11-30

Can someone help me with the session.invalid() issue? I had a logout page which i wanted to get rid of the session scope variables when i hit the logout button. But i got the IO Exception error and plus the Session scope variables were still there wh

[fixed], but issues with Apache's environment remain

-0001-11-30

Hi, I am writing a script that parses the output of 'svn log' in php. The script works flawlessly on Gentoo and Redhat (a box at home and the dev server at work), and worked on my laptop (Arch) yesterday. However, with today's revision, I get a permi

Localhost result in 403 Error (Apache Issue)

-0001-11-30

Trying to access my localhost through browser and i get the error below in browser. Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the

Apache httpd.conf issue

-0001-11-30

Hi, so I think I made some bad mistake when editing some files earlier today in terminal. I have been trying to get a working development enviornment setup for running Laravel 4. So I wanted to see if there were any issues with Apache after I tried f

Issue in parsing the response of a WebService in Service Link

2015-10-11

I am getting issues in connecting an external (non cisco) application via WebService. Appreciate if anyone can help in fixing the issue. I am using 9.3.2 Patch 6. Connectivity to an external system (a 3rd party application in my firm) was achieved vi

Camel and jmx

2015-10-11

i have a problem connecting a jmx client to camel. i just wanna connect to the default MBeans exposed by camel so it shouldn't be much of a problem but it appears that it is ( for me :) ) JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi

Apache 1.3.12 and Weblogic 5.1 SP6 Performance downgrade

-0001-11-30

Hi, We are developing a transaction site currently using Weblogic 5.1 SP6 as app server and Apache server 1.3.12 as the web server. When we hit directly to the weblogic server, bypassing the apache server, the JSP pages are displayed instantly (max 1

Help with Apache Reverse Proxy configuration with SAP Portal and SAP Webgui

-0001-11-30

Dear Experts, I have an issue configuring Apache to work with SAP Portal and ERP webgui. Accessing Portal through Reverse Proxy is working fine. But the problem arises when we try to open an iView ERP webgui transaction page from Portal with the Reve

How to clear cache in oracle without bouncing apache,

-0001-11-30

Hi guys, Can any one please suggest how to clear cache without apache bounce.... Thanks in advanceThanks for your reply.... I have done controller extension ,through personalization i have added the new controller path to the seeded page............

Apache-siteminder-weblgogic

-0001-11-30

Hi ALL, I am facing one issue in apache-siteminder-weblogic environment. We are using Siteminder for SSO functionality where webagent is configured to apache and there is a redirection logic in apache Coming to issue: we recently upgraded weblogic fr

[Solved] Unable to start Apache

-0001-11-30

Hi All, I install Apache with "sudo pacman -S apache"but "sudo systemctl start httpd.service" failed and "sudo systemctl status httpd.service" showed: httpd.service - Apache Web Server Loaded: loaded (/usr/lib/systemd/system/

HCI/ECC connection issue with reverse proxy

-0001-11-30

Hi, we are struggling to set up the connection from C4C to ECC using a reverse proxy (apache). Thank you for any help! Best Regards Florian Our apache config is as follows: <VirtualHost *:443>   ServerName customer.reverseproxy.com   SSLEngine      

Building OpenSSO Policy Agent 2.2 for Apache 2.x

-0001-11-30

Hi, I've been trying to build OpenSSO policy agent using sources from opensso_agentbranch22 on WINNT for Apache 2.0 web server. The reason I can't use the pre-build binary is because we are trying to customize the agent to integrate with another SSO

Weblogic 10.3.5.0 and Oracle AQ 10.2.0.5 user_data contains no message text

2015-10-11

Hi, we want to migrate our application from Oracle AS 10.3.3 to the Weblogic 10.3.5.0 server. The application uses Oracle AQ with Apache Camel. Our queue is persisted in the oracle database 10.2.0.5. the problem we have now is that, when we send a me

Producing message to temporary JMS destination

2015-10-11

Hi, Has anyone managed to produce a message to a temporary JMS destination using the JMS Adapter? I'm trying to get this request/reply-pattern working: -Java client connects to a Connection Factory and creates a temporary reply queue (works, CF retur