Bug:missing request when restart service bundle

2014-02-27 Thread simafengyun1984
Hi JB,

I have constructed a karaf cluster in 2 linux server.(used karaf 2.3.3,
cellor 2.3.2 and spring-dm)
A client bundle was deployed in node1 in server1 and a service bundle was
deployed in node2 in server2
 
Client bundle will invoke service bundle via osgi service  10 times one
minute.

But when I stop  and restart the service bundle, I found there is one
request from client bundle will be miss processed by service bundle. After
my check, I am sure this issue is caused by stopping service bundle. And
just only one request will be miss processed. 
According to OSGi features, hot deployment is a well-known feature. So I
think this is bug.

below is the my code segments, maybe very useful for you analysis.

Route  in client bundle as below:

from
uri=timer://myTimer?repeatCount=200amp;fixedRate=trueamp;period=100 /
--IdOsgiTestProcessor just used to created message body, you can think is
increased number--
to id=osgiTestProcessor uri=osgiTestProcessor/
--processorService is a osgi service implemented in service bundle--  

bean ref=processorService method=processTest(${body})/
--logProcessor is just  used to log the returned value from service
bundle--
to id=IdLogProcessor uri=logProcessor/
/route

processorService's implemention code in service bundle as below

public Integer processTest(Integer message) throws Exception {

LOG.info(message:  + message);
return 0;
}


I have tested many times. There is only one request will be missed in the
period of restart service bundle.
Please confirm. 


 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Bug-missing-request-when-restart-service-bundle-tp4031974.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Cellor config issue(cellor 2.3.2 and karaf 2.3.3)

2014-02-25 Thread simafengyun1984
Hi JB,

I have a service bundle and 2 cluster nodes, node1 and node2.

I want to install the service bundle on the node2 only.

I  org.apache.karaf.cellar.groups.cfg of the node1, as below

*default.bundle.blacklist.inbound =
VantageOceanPublisher-Service*,Gravity-VantageOceanPublisher-Service**


notification: the bundle info as below
  Bundle-Name = VantageOceanPublisher-Service
  Bundle-SymbolicName =
Gravity-VantageOceanPublisher-Service

But when I install the bundle in the node2, the bundle is installed in the
node1 automatically.
Accordingly to my config, the bundle should not be installed in the nodes1
since it is added to the 
blacklist.inbound list. Do you know what's wrong?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Cellor-config-issue-cellor-2-3-2-and-karaf-2-3-3-tp4031922.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RejectedExecutionException issue

2014-02-25 Thread simafengyun1984
Hi,

I faced a RejectedExecutionException  issue in camel.  Do you have any
suggestion to fix it?

I deployed 2 bundles in KARAF2.3.3 cluster.
One is client bundle and the other is a service  bundle. Thy are deployed in
different cluster nodes.

Client bundle has a camel route. it  just receives message from JMS server
and pass the message to service bundle by invoking remote OSGI service in
the service bundle. Route as below
route id=passMessage startupOrder=10
from uri=tibicoJMSTopic /
bean ref=processorService method=process(${body})/
/route

And service bundle have an osgi service and a camel route.
the osgi service  just  save the message which is passed from client bundle
to a *blockingQueue*. The camel route just gets message from the
*blockingqueue *and process the message. The camel route as below.

route id=processMessage startupOrder=10
from 
uri=timer://myTimer?fixedRate=trueamp;period=2000/
   to id=ToMsgBlockingQueueProcessor
uri=msgBlockingQueueProcessor/
/route

The java code segment for getting message from QUEUE in the
msgBlockingQueueProcessor 
BlockingQueueTibjmsTextMessage queue = new
LinkedBlockingQueueTibjmsTextMessage();

public TibjmsTextMessage getMsgFromQueue() throws InterruptedException{

*return queue.take();*  //return queue.poll(20, 
TimeUnit.SECONDS);
}

But when I just stop the service bundle(notification: in the same  time the
client bundle  is activate and still will try to pass message to service
bundle by OSGI service). then  restart it, I can see the below error log.
And I found the first message passed to service bundle after restart will
not be pocessed.

2014-02-20 21:21:41,950 | INFO  | xtenderThread-36 | OsgiServiceFactoryBean 
 
| r.support.OsgiServiceFactoryBean  301 | 83 - org.springframework.osgi.core
- 1.2.1 | Publishing service under classes
[{com.citi.gravity.vantageocean.service.TibcoEMSProcessorService}]
2014-02-20 21:21:41,969 | ERROR |  timer://myTimer | MsgQueueProcessor  
 
| cean.processor.MsgQueueProcessor   38 | 243 -
Gravity-VantageOceanPublisher-Service - 1.0.0.A0 | set message to body
2014-02-20 21:21:42,171 | INFO  |  timer://myTimer | Activator  
 
| BundleTypeConverterLoader$Loader  353 | 63 - org.apache.camel.camel-core -
2.10.4 | Found 0 @Converter classes to load
2014-02-20 21:21:42,174 | INFO  |  timer://myTimer | DefaultTypeConverter   
 
| verter.BaseTypeConverterRegistry  522 | 63 - org.apache.camel.camel-core -
2.10.4 | TypeConverterRegistry utilization[attempts=0, hits=0, misses=0,
failures=0] mappings[total=172, misses=0]
2014-02-20 21:21:42,175 | WARN  |  timer://myTimer | TimerConsumer  
 
| rg.apache.camel.util.CamelLogger  224 | 63 - org.apache.camel.camel-core -
2.10.4 | Error processing exchange. Exchange[Message: TextMessage={ Header={
JMSMessageID={ID:cfvtgbroker_steesb_ny_dev.50195300D214120824:1777}
JMSDestination={Topic[credit.vantage.IOI.topic]} JMSReplyTo={null}
JMSDeliveryMode={PERSISTENT} JMSRedelivered={false} JMSCorrelationID={null}
JMSType={null} JMSTimestamp={Thu Feb 20 21:21:00 EST 2014} JMSExpiration={0}
JMSPriority={4} } Properties={ Action={String:Add} AddUser={String:YM39464}
IOI_TYPE={String:SALES} SalesId={String:YM39464} }
Text={IOIWrapperioiaddTS2014-02-20T21:21:00-05:00/addTSid9901...
[Body clipped after 1000 chars, total length is 6023]]. Caused by:
[java.util.concurrent.RejectedExecutionException - null]
java.util.concurrent.RejectedExecutionException
at
org.apache.camel.processor.interceptor.DefaultChannel.continueProcessing(DefaultChannel.java:329)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:300)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[63:org.apache.camel.camel-core:2.10.4]
at

Re: RejectedExecutionException issue

2014-02-25 Thread simafengyun1984
Sorry, I don't know how to choose. I just submitted a post via website



--
View this message in context: 
http://karaf.922171.n3.nabble.com/RejectedExecutionException-issue-tp4031925p4031955.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RejectedExecutionException issue

2014-02-21 Thread simafengyun1984
Hi,

I faced a RejectedExecutionException  issue in camel.  Do you have any
suggestion to fix it?

I deployed 2 bundles in KARAF2.3.3 cluster.
One is client bundle and the other is a service  bundle. Thy are deployed in
different cluster nodes.

Client bundle has a camel route. it  just receives message from JMS server
and pass the message to service bundle by invoking remote OSGI service in
the service bundle. Route as below
route id=passMessage startupOrder=10
from uri=tibicoJMSTopic /
bean ref=processorService method=process(${body})/
/route

And service bundle have an osgi service and a camel route.
the osgi service  just  save the message which is passed from client bundle
to a *blockingQueue*. The camel route just gets message from the
*blockingqueue *and process the message. The camel route as below.

route id=processMessage startupOrder=10
from 
uri=timer://myTimer?fixedRate=trueamp;period=2000/
   to id=ToMsgBlockingQueueProcessor
uri=msgBlockingQueueProcessor/
/route

The java code segment for getting message from QUEUE in the
msgBlockingQueueProcessor 
BlockingQueueTibjmsTextMessage queue = new
LinkedBlockingQueueTibjmsTextMessage();

public TibjmsTextMessage getMsgFromQueue() throws InterruptedException{

*return queue.take();*  //return queue.poll(20, 
TimeUnit.SECONDS);
}

But when I just stop the service bundle(notification: in the same  time the
client bundle  is activate and still will try to pass message to service
bundle by OSGI service). then  restart it, I can see the below error log.
And I found the first message passed to service bundle after restart will
not be pocessed.

2014-02-20 21:21:41,950 | INFO  | xtenderThread-36 | OsgiServiceFactoryBean 
 
| r.support.OsgiServiceFactoryBean  301 | 83 - org.springframework.osgi.core
- 1.2.1 | Publishing service under classes
[{com.citi.gravity.vantageocean.service.TibcoEMSProcessorService}]
2014-02-20 21:21:41,969 | ERROR |  timer://myTimer | MsgQueueProcessor  
 
| cean.processor.MsgQueueProcessor   38 | 243 -
Gravity-VantageOceanPublisher-Service - 1.0.0.A0 | set message to body
2014-02-20 21:21:42,171 | INFO  |  timer://myTimer | Activator  
 
| BundleTypeConverterLoader$Loader  353 | 63 - org.apache.camel.camel-core -
2.10.4 | Found 0 @Converter classes to load
2014-02-20 21:21:42,174 | INFO  |  timer://myTimer | DefaultTypeConverter   
 
| verter.BaseTypeConverterRegistry  522 | 63 - org.apache.camel.camel-core -
2.10.4 | TypeConverterRegistry utilization[attempts=0, hits=0, misses=0,
failures=0] mappings[total=172, misses=0]
2014-02-20 21:21:42,175 | WARN  |  timer://myTimer | TimerConsumer  
 
| rg.apache.camel.util.CamelLogger  224 | 63 - org.apache.camel.camel-core -
2.10.4 | Error processing exchange. Exchange[Message: TextMessage={ Header={
JMSMessageID={ID:cfvtgbroker_steesb_ny_dev.50195300D214120824:1777}
JMSDestination={Topic[credit.vantage.IOI.topic]} JMSReplyTo={null}
JMSDeliveryMode={PERSISTENT} JMSRedelivered={false} JMSCorrelationID={null}
JMSType={null} JMSTimestamp={Thu Feb 20 21:21:00 EST 2014} JMSExpiration={0}
JMSPriority={4} } Properties={ Action={String:Add} AddUser={String:YM39464}
IOI_TYPE={String:SALES} SalesId={String:YM39464} }
Text={IOIWrapperioiaddTS2014-02-20T21:21:00-05:00/addTSid9901...
[Body clipped after 1000 chars, total length is 6023]]. Caused by:
[java.util.concurrent.RejectedExecutionException - null]
java.util.concurrent.RejectedExecutionException
at
org.apache.camel.processor.interceptor.DefaultChannel.continueProcessing(DefaultChannel.java:329)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:300)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[63:org.apache.camel.camel-core:2.10.4]
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[63:org.apache.camel.camel-core:2.10.4]
at

duplicated karaf instance issue

2014-02-20 Thread simafengyun1984
Hi JB,
I found there is duplicated karaf instance issue in linux ENV. I used karaf
2.3.3.

It will create  karaf instance for each time executing command start.
for instance, execute the command start twice and I can see 2 instance.
And the command stop only can stop one instance.

Log as below.
[gravity@cfnyps2d bin]$ start
[gravity@cfnyps2d bin]$ start
[gravity@cfnyps2d bin]$ ps -aux | grep karaf
Warning: bad syntax, perhaps a bogus '-'? See
/usr/share/doc/procps-3.2.7/FAQ
gravity  31863 66.6  2.5 806516 98760 pts/5Sl   02:48   0:04
*/xenv/java/X/1.6.0_31l64/bin/java* -server -Xms128M -Xmx512M
-Dcom.sun.management.jmxremote
-Dhttp.nonProxyHosts=cfnyps1d.nam.nsroot.net|cfnyps2d.nam.nsroot.net|169.193.170.86|169.193.187.231
-Dhttp.proxyHost=webproxy.wlb.nsroot.net -Dhttp.proxyPort=8080
-Djava.endorsed.dirs=/xenv/java/X/1.6.0_31l64/jre/lib/endorsed:/xenv/java/X/1.6.0_31l64/lib/endorsed:/opt/gravity/apache-karaf-2.3.3/lib/endorsed
-Djava.ext.dirs=/xenv/java/X/1.6.0_31l64/jre/lib/ext:/xenv/java/X/1.6.0_31l64/lib/ext:/opt/gravity/apache-karaf-2.3.3/lib/ext
-Dkaraf.instances=/opt/gravity/apache-karaf-2.3.3/instances
-Dkaraf.home=/opt/gravity/apache-karaf-2.3.3
-Dkaraf.base=/opt/gravity/apache-karaf-2.3.3
-Dkaraf.data=/opt/gravity/apache-karaf-2.3.3/data
-Djava.io.tmpdir=/opt/gravity/apache-karaf-2.3.3/data/tmp
-Djava.util.logging.config.file=/opt/gravity/apache-karaf-2.3.3/etc/java.util.logging.properties
-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath
/opt/gravity/apache-karaf-2.3.3/lib/karaf-jaas-boot.jar:/opt/gravity/apache-karaf-2.3.3/lib/karaf.jar
org.apache.karaf.main.Main
gravity  31912 27.2  1.5 777824 58832 pts/5Sl   02:48   0:01
*/xenv/java/X/1.6.0_31l64/bin/java* -server -Xms128M -Xmx512M
-Dcom.sun.management.jmxremote
-Dhttp.nonProxyHosts=cfnyps1d.nam.nsroot.net|cfnyps2d.nam.nsroot.net|169.193.170.86|169.193.187.231
-Dhttp.proxyHost=webproxy.wlb.nsroot.net -Dhttp.proxyPort=8080
-Djava.endorsed.dirs=/xenv/java/X/1.6.0_31l64/jre/lib/endorsed:/xenv/java/X/1.6.0_31l64/lib/endorsed:/opt/gravity/apache-karaf-2.3.3/lib/endorsed
-Djava.ext.dirs=/xenv/java/X/1.6.0_31l64/jre/lib/ext:/xenv/java/X/1.6.0_31l64/lib/ext:/opt/gravity/apache-karaf-2.3.3/lib/ext
-Dkaraf.instances=/opt/gravity/apache-karaf-2.3.3/instances
-Dkaraf.home=/opt/gravity/apache-karaf-2.3.3
-Dkaraf.base=/opt/gravity/apache-karaf-2.3.3
-Dkaraf.data=/opt/gravity/apache-karaf-2.3.3/data
-Djava.io.tmpdir=/opt/gravity/apache-karaf-2.3.3/data/tmp
-Djava.util.logging.config.file=/opt/gravity/apache-karaf-2.3.3/etc/java.util.logging.properties
-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath
/opt/gravity/apache-karaf-2.3.3/lib/karaf-jaas-boot.jar:/opt/gravity/apache-karaf-2.3.3/lib/karaf.jar
org.apache.karaf.main.Main
gravity  31950  0.0  0.0  61204   744 pts/5R+   02:48   0:00 grep karaf

my question: Do you know how to avoid duplicated instance when multi-execute
command start?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/duplicated-karaf-instance-issue-tp4031859.html
Sent from the Karaf - User mailing list archive at Nabble.com.


karaf2.3.3 command issue

2014-02-16 Thread simafengyun1984
Hi JB,

Sometimes, it will show the below message when start karaf 2.3.3 and execute
command list

*karaf@root list
  SSH Port   RMI Ports State   Pid  Name
[8101] [1099/4 ] [Started ] [30613] root*

Normally, the command list is used to show all the installed bundles. *But
why sometimes it shows wrongly?*

notification: I used karaf2.3.3 and cellar2.3.2



--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf2-3-3-command-issue-tp4031732.html
Sent from the Karaf - User mailing list archive at Nabble.com.


How to add local mvn repo?

2014-02-14 Thread simafengyun1984
Hi JB,

I want to install a demo bundle from my local mvn repository.

  modelVersion4.0.0/modelVersion
  groupIddemo.service/groupId
  artifactIddemo.service-bundle/artifactId
  version0.1/version


I config the  below in the file org.ops4j.pax.url.mvn.cfg

*org.ops4j.pax.url.mvn.settings=C:\work\softtools\apache-maven-3.1.0\conf\settings.xml
   org.ops4j.pax.url.mvn.localRepository = C:\work\softtools\maven
repository
*

and in the setting.xml file,  I config my local repository
 *localRepositoryC:\work\softtools\maven repository/localRepository*

But when I try to install my project's jar file from my local maven
repository, it failed.
log as below:
*karaf@root install mvn:demo/service/demo.service-bundle/0.1
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle mvn:demo/service/demo.service-bundle/0.1
karaf@root features:addurl
mvn:demo/service/demo.service-bundle/0.1/xml/features
Error executing command: Unable to add repositories:
URL [mvn:demo/service/demo.service-bundle/0.1/xml/features] could
not be resolved.
karaf@root features:addurl
mvn:demo.service/demo.service-bundle/0.1/xml/features
Error executing command: Unable to add repositories:
URL [mvn:demo.service/demo.service-bundle/0.1/xml/features] could
not be resolved.
karaf@root*


Do you know how to config and make it works? Thank you!





--
View this message in context: 
http://karaf.922171.n3.nabble.com/How-to-add-local-mvn-repo-tp4031695.html
Sent from the Karaf - User mailing list archive at Nabble.com.


question about generate features xml file

2014-02-13 Thread simafengyun1984
Hi JB,

I use the below plugin to generate the features.xml. 
But there is a file named bundles.properties? 
Do you know what's the content of the file or content format?



  plugin
groupIdorg.apache.karaf.tooling/groupId
artifactIdfeatures-maven-plugin/artifactId
version2.3.3/version
  executions
execution
  idgenerate/id
  phasegenerate-resources/phase
  goals
goalgenerate-features-xml/goal
  /goals
  configuration
bundlessrc/main/resources/*bundles.properties*/bundles
kernelVersion2.3.3/kernelVersion
outputFiletarget/features.xml/outputFile
  /configuration
/execution
  /executions
/plugin 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-generate-features-xml-file-tp4031683.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: question about generate features xml file

2014-02-13 Thread simafengyun1984
Yes, I have no this file.

Do you think this file is genareted by the maven project automatically?
Do you have the entire example to created the bundle maven project?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-generate-features-xml-file-tp4031683p4031690.html
Sent from the Karaf - User mailing list archive at Nabble.com.


question about features xml file and bundles.properites file

2014-02-13 Thread simafengyun1984
Yes, I have no this file. 

Do you think this file is genareted by the maven project automatically? 
Do you have the entire example to created the bundle maven project?  

Actually I just want install my project bundles via features.xml. So I want
to know how to generated the features file. if I use features-maven-plugin
to generated the features.xml. It needs the bundles.properities file. But I
have no idea of this file.


Hi, 

in your Maven project, don't you have a bundles.properties in 
src/main/resources ? 

Regards 
JB 

On 02/13/2014 11:10 AM, simafengyun1984 wrote: 

 Hi JB, 
 
 I use the below plugin to generate the features.xml. 
 But there is a file named bundles.properties? 
 Do you know what's the content of the file or content format? 
 
 
 
plugin 
  groupIdorg.apache.karaf.tooling/groupId 
  artifactIdfeatures-maven-plugin/artifactId 
  version2.3.3/version 
executions 
  execution 
idgenerate/id 
phasegenerate-resources/phase 
goals 
  goalgenerate-features-xml/goal 
/goals 
configuration 
 
bundlessrc/main/resources/*bundles.properties*/bundles 
  kernelVersion2.3.3/kernelVersion 
  outputFiletarget/features.xml/outputFile 
/configuration 
  /execution 
/executions 
  /plugin 
 
 
 
 -- 
 View this message in context:
http://karaf.922171.n3.nabble.com/question-about-generate-features-xml-file-tp4031683.html
 Sent from the Karaf - User mailing list archive at Nabble.com. 
 




--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-features-xml-file-and-bundles-properites-file-tp4031691.html
Sent from the Karaf - User mailing list archive at Nabble.com.


question about feature xml file

2014-02-12 Thread simafengyun1984
Hi JB,

I want to write my project's feature xml files in order to  install bundles
easily. 
Do you have any website resource introducing how to write customized feature
xml files?

Thank you!



--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-feature-xml-file-tp4031629.html
Sent from the Karaf - User mailing list archive at Nabble.com.


question about cellar-dosgi

2014-01-23 Thread simafengyun1984
HI JB,

I have 2 node(karaf 2.3.3, cellar 2.3.2 )

in the node1, have a service bundle and register a
service(emo.service.TransformService)

karaf@root bundle-services  157

demo.service-bundle provides:
--
*[demo.service.TransformService]*
[org.springframework.osgi.context.DelegatedExecutionOsgiBundleApplicationContext,
org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext,
org.springframework.context.ConfigurableApplicationContext,
org.springframework.context.ApplicationContext,
org.springframework.context.Lifecycle,
org.springframework.beans.factory.ListableBeanFactory,
org.springframework.beans.factory.HierarchicalBeanFactory,
org.springframework.context.MessageSource,
org.springframework.context.ApplicationEventPublisher,
org.springframework.core.io.support.ResourcePatternResolver,
org.springframework.beans.factory.BeanFactory,
org.springframework.core.io.ResourceLoader,
org.springframework.beans.factory.DisposableBean]

in the node2, I start the client bundle which depends on the service, but
failed, log as below


2014-01-23 18:25:15,202 | ERROR | ExtenderThread-1 | ContextLoaderListener  
 
| BundleApplicationContextListener   50 | 80 -
org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=demo.camel-bundle,
config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'myTransform': Initialization of bean failed; nested exception is
org.springframework.beans.TypeMismatchException: Failed to convert property
value of type 'java.lang.String' to required type 'java.lang.Class[]' for
property 'interfaces'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[demo.service.TransformService]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)[107:org.springframework.beans:3.0.7.RELEASE]
at
org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[80:org.springframework.osgi.extender:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[105:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[80:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_37]
Caused by: org.springframework.beans.TypeMismatchException: Failed to
convert property 

question about cellar 2.3.2

2014-01-22 Thread simafengyun1984
Hi JB, 
I have question about cellar. I used karaf 2.3.3, cellar 2.3.2 

I have 2 nodes, node1 and node2.
I used the below command to install cellar for the 2 nodes

*features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features  

features:install cellar 
features:install cellar-dosgi   
features:install cellar-cloud   *

I have 2 bundles,  demo.service-bundle-0.1.jar(register a service) and
demo.camel-bundle-0.1.jar(invoke the service)   
I installed demo.service-bundle-0.1.jar on the node1 and 
demo.camel-bundle-0.1.jar on the node2
Below is my test steps:

Step1: I run the command cluster:bundle-list default | grep -i demo on the
node2, I can see both of the bundles.

karaf@root cluster:bundle-list default | grep -i demo
[18  ] [Active ] demo.camel-bundle [demo.camel] (0.1.0)
[49  ] [Active ] demo.service-bundle [demo.service] (0.1.0)

 Step2: I run the command list on the node 2, the demo.camel-bundle's
status is installed and try to start the demo.camel-bundle, it failed.
karaf@root list | grep -i demo
[  54] [Installed  ] [] [   ] [   80] demo.camel-bundle
[demo.camel] (0.1)
karaf@root start 54
Error executing command: Error starting bundles:
Unable to start bundle 54: Unresolved constraint in bundle
demo.camel-bundle [54]: Unable to resolve 54.0: missing requirement [54.0]
osgi.wiring.package; ((osgi.wiring.package=demo.service)(version=0.1.0))


 Step3: I run the command list on the node 1, the demo.camel-bundle's
status is installed
karaf@root  list | grep -i demo
[ 131] [Active ] [] [Started] [   80] demo.service-bundle
[demo.service] (0.1)

*Questions 1*: in the step1, I can see demo.camel-bundle's status is active.
Does it means there must be an instance of demo.camel-bundle  running in the
cluster? But I can't see any log printed by the bundle(normally, if
demo.camel-bundle runs, it should print some log).

*Questions 2*:in the step2 demo.camel-bundle's status is installed. I am
confusing, why it's status is active in step1. why the status of the same
bundle is different in step1 and step2?

*questions 3*: in the step2, I tried to start the demo.camel-bundle, it
failed, I think
 it should be caused by  depending on the demo.service-bundle  and
demo.service-bundle is not visible on the node2. But I have installed
cellar-dosgi on the 2 nodes and cellar-dosgi supports invoking service on
the remote node. Why it still didn't work?

Appreciated!











--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-cellar-2-3-2-tp4031251.html
Sent from the Karaf - User mailing list archive at Nabble.com.


questions about cellar2.32

2014-01-21 Thread simafengyun1984

Hi JB,
I have question about cellar. I used karaf 2.3.3, cellar 2.3.2
below is got from the cellar introduction page.

Distributed OSGi (optional): cellar-dosgi provides support of Distributed
OSGi, allowing to call an OSGi service present on a remote node.


*My question: I want to construct a distributed OSGI cluster. Do you have an
simple example to demonstrate how does a client bundle in local call a
service in remote node?*

Thanks



--
View this message in context: 
http://karaf.922171.n3.nabble.com/questions-about-cellar2-32-tp4031234.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Issue about karaf 2.3.3's deployment

2014-01-19 Thread simafengyun1984
Hi JB,

I tried with you suggested, as below

karaf@root osgi:install  wrap:file:tibjmsufo-5.1.2.jar
Bundle ID: 220
karaf@root headers 220

*wrap_file_tibjmsufo-5.1.2.jar (220)
---
Manifest-Version = 1.0
Bnd-LastModified = 1390185491654
Tool = Bnd-0.0.357
Originally-Created-By = 1.5.0_10 (Sun Microsystems Inc.)
Generated-By-Ops4j-Pax-From = wrap:file:tibjmsufo-5.1.2.jar
Created-By = 1.6.0_37 (Sun Microsystems Inc.)

Bundle-Name = wrap_file_tibjmsufo-5.1.2.jar
Bundle-SymbolicName = wrap_file_tibjmsufo-5.1.2.jar
Bundle-Version = 0
Bundle-ManifestVersion = 2

Import-Package =
com.tibco.tibems.ufo;resolution:=optional,
com.tibco.tibjms;resolution:=optional,
javax.jms;resolution:=optional
Export-Package =
com.tibco.tibems.ufo;uses:=javax.jms,com.tibco.tibjms*

Apparently, it works fine. but the bundle version is wrong. If I deploy it
under the deploy folder, the bundle version is also OK. *Why the bundle
version is wrong?*



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Issue-about-karaf-2-3-3-s-deployment-tp4031037p4031186.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Issue about karaf 2.3.3's deployment

2014-01-15 Thread simafengyun1984
Hi JB,

I encountered an issue today. 
I have 5 third-party jars, but they are not the standard bundle files which
have no bundle description information in the MANIFEST.MF.

When I put them to the deploy folder. The 5 jar file will be installed and
started in the karaf automatically and karaf will wrap them. I executed the
command headers and it will show the bundle information( Actually these
information is not in the MANIFEST.MF file), like below

/karaf@root headers 98

tibjmsufo (98)
--
Manifest-Version = 1.0
Bnd-LastModified = 1389772893126
Tool = Bnd-0.0.357
Originally-Created-By = 1.5.0_10 (Sun Microsystems Inc.)
Generated-By-Ops4j-Pax-From =
wrap:file:/opt/gravity/apache-karaf-2.3.3/deploy/tibjmsufo-5.1.2.jar$Bundle-SymbolicName=tibjmsufoBundle-Version=5.1.2
Created-By = 1.6.0_31 (Sun Microsystems Inc.)

Bundle-Name = tibjmsufo
Bundle-SymbolicName = tibjmsufo
Bundle-Version = 5.1.2
Bundle-ManifestVersion = 2

Import-Package = 
com.tibco.tibems.ufo;resolution:=optional,
com.tibco.tibjms;resolution:=optional,
javax.jms;resolution:=optional
Export-Package = 
com.tibco.tibems.ufo;uses:=javax.jms,com.tibco.tibjms/


 Apparently the karaf wrap the jars to standard bundles automaticatlly
In this case, my project works file in the karaf.

But when I put the jar files out side the deploy folder and executed the
command like install file:tibjms-6.1.jar. I failed to start the bundles. I
executed the command headers, it shows no bundle information, just some
useless information got from the MANIFEST.MF, as below

/karaf@root headers 92

Bundle 92
-
Manifest-Version = 1.0
Created-By = 1.5.0_10 (Sun Microsystems Inc.)/

*My question: How to make the karaf wrap the non-standard bundle to standard
bundles when use the command like install file:tibjms-6.1.jar?
*






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Issue-about-karaf-2-3-3-s-deployment-tp4031037.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf 2.3.3 configuration files questions

2014-01-15 Thread simafengyun1984
Hi JB,
thank you very much for your quick answer to my questions

I have 3 questions about configuration files in karaf 2.3.3.
I have a bundle which includes a xml. The xml depend on 2 environment
variables, as below

*   list
value

classpath:${project.env}.ems.topic1.properties
/value
value

classpath:${project.env}.ems.topic2.properties
/value
/list*

I configured the 2 key-values in the system.properties file under the folder
etc. It works fine.

*But, I hope I can configure them to my own properties file, What should I
do?*


Actually I tried to configure the key-values in the custom.properties under
folder etc, it didn't work.
So what is use of the custom.properties?

*My last question is about the config commands. Actually there is a set of
config commands to add/delete/append/update configurations. I want to add a
new config file for my bundle, do you know how to bind the configuration
file to the specific bundle and how to get the values from the configuration
file in java class?*





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-3-configuration-files-questions-tp4031040.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Please help to fix karaf cluster issue

2014-01-14 Thread simafengyun1984
Hi JB,

regarding the below, I didn't very understand. could you give more detail?
Thank you


it's where cluster group can help: you can target the deployment of 
some resources to only some subset of nodes in the same cluster group. 

  



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Please-help-to-fix-karaf-cluster-issue-tp4030950p4031009.html
Sent from the Karaf - User mailing list archive at Nabble.com.


issue about karaf cellar cluster

2014-01-14 Thread simafengyun1984
Hi JB,

I have an issue about karaf cluster.
I used karaf 2.3.3 and cellar 2.2.2.
I have 2 nodes, node 1 and node 2.
I put camel and spring related third-party bundles under the deploy folder
of node 1

and put 3 application bundles jar files under the deploy folder of node 2
 demo.camel-bundle-0.1.jar
 demo.service-bundle-0.1.jar
 Gravity-VantageOceanPublisher-1.0_A0.jar
I changed the below config in the file org.apache.karaf.cellar.groups.cfg in
node 2
default.features.blacklist.inbound =
**VantageOceanPublisher**,management,hazelcast,cellar*
default.features.blacklist.outbound =
**VantageOceanPublisher**,management,hazelcast,cellar*

default.bundle.blacklist.inbound = **VantageOceanPublisher**
default.bundle.blacklist.outbound =* *VantageOceanPublisher**

Then I start node 1 and node 2.

when I executed the command list bundle in the node 1, I just can see 
demo.camel-bundle, 

When I executed the command   bundle-list default  I can see both
demo.camel-bundle and demo.service-bundle
*why I can't see the bundle demo.service-bundle when I executed command list
?*






--
View this message in context: 
http://karaf.922171.n3.nabble.com/issue-about-karaf-cellar-cluster-tp4031019.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Question about Cellar 2.2.2

2014-01-14 Thread simafengyun1984
Hi JB,

I used Karaf 2.3.3 and Cellar 2.2.2
I used the below command to install cellar for karaf cluster
features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
features:install cellar

But I found the below  bundles's status is Uninstalled
cellar-dosgi  
cellar-obr
cellar-eventadmin 
cellar-cloud  
cellar-webconsole 

*My question: Do I need to use command features:install to install them? If
I didn't install them, Is there anything will be affected in karaf cluster?*
thanks





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Question-about-Cellar-2-2-2-tp4031034.html
Sent from the Karaf - User mailing list archive at Nabble.com.


karaf 2.3.3 java.io.IOException: Pipe closed

2014-01-08 Thread simafengyun1984
Hi JB,

when I try to deploy the quartz-1.8.5.jar to karaf 2.3.3
It always shows the below exception.


2014-01-08 17:04:49,276 | INFO  | raf-2.3.3/deploy | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinstall -
3.2.6 | Started bundle:
wrap:file:/C:/work/softtools/Karaf%20cluster/apache-karaf-2.3.3/deploy/quartz-2.0.0.jar$Bundle-SymbolicName=quartzBundle-Version=2.0.0
 
2014-01-08 17:04:50,199 | WARN  | Thread-15| BndUtils   
 
| ps4j.pax.swissbox.bnd.BndUtils$1  178 | 2 - org.ops4j.pax.url.wrap - 1.3.6
| Bundle cannot be generated

java.io.IOException: Pipe closed

at
java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)[:1.6.0_37]
 
at
java.io.PipedInputStream.receive(PipedInputStream.java:210)[:1.6.0_37]  

at
java.io.PipedOutputStream.write(PipedOutputStream.java:132)[:1.6.0_37]  

at
java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:155)[:1.6.0_37]

at
java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:196)[:1.6.0_37]   

at
aQute.lib.osgi.Jar.writeResource(Jar.java:305)[2:org.ops4j.pax.url.wrap:1.3.6]  

at
aQute.lib.osgi.Jar.write(Jar.java:211)[2:org.ops4j.pax.url.wrap:1.3.6]  

at
org.ops4j.pax.swissbox.bnd.BndUtils$1.run(BndUtils.java:174)[2:org.ops4j.pax.url.wrap:1.3.6]




I check the MANIFEST.MF in the jar file. the content as below
*Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: cruise
Build-Jdk: 1.6.0_24*

apparently it is not a standard bundle MANIFEST.MF file. 
*Is the issue caused by the MANIFEST.MF file? Is any solution to fix this?  
*   



--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf-2-3-3-java-io-IOException-Pipe-closed-tp4030932.html
Sent from the Karaf - User mailing list archive at Nabble.com.


karaf cellar 2.3.2 issue

2014-01-08 Thread simafengyun1984
Hi JB,

I used the below command to install cellar in karaf 2.3.3

*features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
features:install cellar
features:install cellar-cloud*

*below is the log. I found there is an issue CELLAR CONFIG: failed to
update local configuration
. So do you know the solution to fix it? Thanks*

2014-01-08 22:15:46,617 | INFO  | rint Extender: 1 | XmlConfigBuilder   
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 | Using
configuration file at
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/hazelcast.xml
2014-01-08 22:15:46,618 | INFO  | rint Extender: 1 | XmlConfigBuilder   
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 | Using
configuration file at
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/hazelcast.xml
2014-01-08 22:15:46,959 | INFO  | -karaf-2.3.3/etc | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinstall -
3.2.6 | Installed
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/org.apache.karaf.cellar.node.cfg
2014-01-08 22:15:46,961 | INFO  | -karaf-2.3.3/etc | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinstall -
3.2.6 | Installed
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/org.apache.karaf.cellar.groups.cfg
2014-01-08 22:15:47,084 | INFO  | rint Extender: 1 | AddressPicker  
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 |
Prefer IPv4 stack is true.
2014-01-08 22:15:47,097 | INFO  | rint Extender: 1 | AddressPicker  
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 |
Picked Address[162.124.15.154]:5701, using socket
ServerSocket[addr=/0.0.0.0,localport=5701], bind any local is true
2014-01-08 22:15:47,242 | INFO  | rint Extender: 1 | system 
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Hazelcast Community Edition 2.6 (20130603)
starting at Address[162.124.15.154]:5701
2014-01-08 22:15:47,243 | INFO  | rint Extender: 1 | system 
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Copyright (C) 2008-2013 Hazelcast.com
2014-01-08 22:15:47,272 | INFO  | rint Extender: 1 | LifecycleServiceImpl   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Address[162.124.15.154]:5701 is STARTING
2014-01-08 22:15:50,085 | INFO  | ar.ServiceThread | MulticastJoiner
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] 


Members [1] {
Member [162.124.15.154]:5701 this
}

2014-01-08 22:15:50,128 | INFO  | rint Extender: 1 | LifecycleServiceImpl   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Address[162.124.15.154]:5701 is STARTED
2014-01-08 22:15:50,138 | INFO  | ar.ServiceThread | PartitionManager   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Initializing cluster partition table first
arrangement...
2014-01-08 22:15:50,343 | ERROR | pool-10-thread-1 |
ConfigurationEventHandler| config.ConfigurationEventHandler   91 |
91 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:71)[91:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:36)[91:org.apache.karaf.cellar.config:2.3.2]
at Proxy5a0c99d0_cd52_44ca_ad31_987947754f1f.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[87:org.apache.karaf.cellar.core:2.3.2]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)[:1.6.0_26]
at java.lang.Thread.run(Unknown Source)[:1.6.0_26]
2014-01-08 22:15:50,344 | ERROR | pool-10-thread-2 |
ConfigurationEventHandler| config.ConfigurationEventHandler   91 |
91 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:71)[91:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:36)[91:org.apache.karaf.cellar.config:2.3.2]
at Proxy5a0c99d0_cd52_44ca_ad31_987947754f1f.handle(Unknown
Source)[:]
at

karaf cellar 2.3.2 issue

2014-01-08 Thread simafengyun1984
Hi JB,

I used the below command to install cellar in karaf 2.3.3

*features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
features:install cellar
features:install cellar-cloud*

*below is the log. I found there is an issue CELLAR CONFIG: failed to
update local configuration
. So do you know the solution to fix it? Thanks*

2014-01-08 22:15:46,617 | INFO  | rint Extender: 1 | XmlConfigBuilder   
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 | Using
configuration file at
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/hazelcast.xml
2014-01-08 22:15:46,618 | INFO  | rint Extender: 1 | XmlConfigBuilder   
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 | Using
configuration file at
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/hazelcast.xml
2014-01-08 22:15:46,959 | INFO  | -karaf-2.3.3/etc | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinstall -
3.2.6 | Installed
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/org.apache.karaf.cellar.node.cfg
2014-01-08 22:15:46,961 | INFO  | -karaf-2.3.3/etc | fileinstall
 
| ?   ? | 6 - org.apache.felix.fileinstall -
3.2.6 | Installed
/opt/gravity/ym39464/apache-karaf-2.3.3/etc/org.apache.karaf.cellar.groups.cfg
2014-01-08 22:15:47,084 | INFO  | rint Extender: 1 | AddressPicker  
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 |
Prefer IPv4 stack is true.
2014-01-08 22:15:47,097 | INFO  | rint Extender: 1 | AddressPicker  
 
| dardLoggerFactory$StandardLogger   46 | 86 - com.hazelcast - 2.6.0 |
Picked Address[162.124.15.154]:5701, using socket
ServerSocket[addr=/0.0.0.0,localport=5701], bind any local is true
2014-01-08 22:15:47,242 | INFO  | rint Extender: 1 | system 
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Hazelcast Community Edition 2.6 (20130603)
starting at Address[162.124.15.154]:5701
2014-01-08 22:15:47,243 | INFO  | rint Extender: 1 | system 
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Copyright (C) 2008-2013 Hazelcast.com
2014-01-08 22:15:47,272 | INFO  | rint Extender: 1 | LifecycleServiceImpl   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Address[162.124.15.154]:5701 is STARTING
2014-01-08 22:15:50,085 | INFO  | ar.ServiceThread | MulticastJoiner
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] 


Members [1] {
Member [162.124.15.154]:5701 this
}

2014-01-08 22:15:50,128 | INFO  | rint Extender: 1 | LifecycleServiceImpl   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Address[162.124.15.154]:5701 is STARTED
2014-01-08 22:15:50,138 | INFO  | ar.ServiceThread | PartitionManager   
 
| dardLoggerFactory$StandardLogger   50 | 86 - com.hazelcast - 2.6.0 |
[162.124.15.154]:5701 [cellar] Initializing cluster partition table first
arrangement...
2014-01-08 22:15:50,343 | ERROR | pool-10-thread-1 |
ConfigurationEventHandler| config.ConfigurationEventHandler   91 |
91 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:71)[91:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:36)[91:org.apache.karaf.cellar.config:2.3.2]
at Proxy5a0c99d0_cd52_44ca_ad31_987947754f1f.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[87:org.apache.karaf.cellar.core:2.3.2]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)[:1.6.0_26]
at java.lang.Thread.run(Unknown Source)[:1.6.0_26]
2014-01-08 22:15:50,344 | ERROR | pool-10-thread-2 |
ConfigurationEventHandler| config.ConfigurationEventHandler   91 |
91 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:71)[91:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.java:36)[91:org.apache.karaf.cellar.config:2.3.2]
at Proxy5a0c99d0_cd52_44ca_ad31_987947754f1f.handle(Unknown
Source)[:]
at

Please help to fix karaf cluster issue

2014-01-08 Thread simafengyun1984
Hi JB, 

I used karaf cellar 2.2.2 to construct my karaf cluster.
I tried to construct a cellar cluster in my local. I had 3 nodes in the
cluster.  3 kinds of bundles ,as below
*  1.  third-party bundles(ex: spring-dm bundle) deployed in the node1
  2. my customized camel component bundles deployed in the node2
  3. my application bundles deployed in the node3*

when the 3 node joined in the same group, it seems all the bundles in one
node will be copy to other nodes and each of the bundles will have 3
instances  in the 3 nodes. 
in this case, the third-party bundles and custmized camel component bundles
are fine. but for my application bundle which is used to listening to the
JMS topic and process jms message. Apparently each JMS message will be
process in  3 times. 
* Question1: Do you know any solution of keepping only one instance for a 
bundle  in cluster in the same time?*

*Question2:  I run command  start  bundleID in one node. and the bundle
will be started in other nodes. *So what's the difference between command
start and cluster:bundle-start?*
I used cellar to build 2 nodes cluster. 
*

*Question3: I have 2 nodes, one in IP 192.168.1.50, the other in IP
192.169.0.50. But they can't see each other and can't be connected to the
same group.  Apparently the 2 IP are not in the same net segment. does it
caused by the IP which are not in the same net segment.*




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Please-help-to-fix-karaf-cluster-issue-tp4030950.html
Sent from the Karaf - User mailing list archive at Nabble.com.


how to config the start order of bundles karaf 2.3.3

2014-01-07 Thread simafengyun1984
Hi JB,

Is there an easy way to config the start order of bundles because sometimes
we need to start a bundle before another. I use karaf 2.3.3



--
View this message in context: 
http://karaf.922171.n3.nabble.com/how-to-config-the-start-order-of-bundles-karaf-2-3-3-tp4030921.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: How to use karaf cluster[Urgent]

2014-01-07 Thread simafengyun1984
yes, I meant using karaf cellar to construct cluster. Which benefit it can
provide because I didn't find the benefit from the cluster. Please see my
below anlaysis 

recently I tried to construct a cellar cluster in my local. I had 3 nodes in
the cluster.  3 kinds of bundles ,as below 
  1.  third-part bundles(ex: spring-dm bundle) deployed in the node1 
  2. my customized camel component bundles deployed in the node2 
  3. my application bundles deployed in the node3

when the 3 node joined in the same group, it seems all the bundles in one
node will be copy to other nodes and each of the bundles will have 3
instances  in 3 nodes. 
in this case, the third-part bundles and custmized camel component bundles
are fine. but for my application bundle which is used to listening to the
JMS topic and process jms message. Apparently each JMS message will be
process in  3 times. Do you know any solution of keepping only one instance
for a  bundle  in cluster in the same time?

another question:  I run command  start  bundleID in one node. and the
bundle will be started in other nodes. So what's the difference between
command start and cluster:bundle-start?






--
View this message in context: 
http://karaf.922171.n3.nabble.com/How-to-use-karaf-cluster-Urgent-tp4030916p4030929.html
Sent from the Karaf - User mailing list archive at Nabble.com.