[jboss-user] [JBoss Messaging Users] - Re: jbm 1.4.6.GA download missing
Hi Can you let me know where I can find dependencies to build 1.4.6, please? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267642#4267642 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Database Failure and JBM
Scenario: 1) Put 1000 messages in queue while consumer is not running 2) Shutdown Mysql instance while JBoss As instance ,which hosts jbm, is running 3) Start Mysql instance again 4) Start consumer for the queue on jbm View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267517#4267517 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Database Failure and JBM
Hi All I have duplicate message/stop delivery message problem after database failure. Please check the scenario below. Is it misconfiguration of transactions? Do you I need to play with some parameters to make JBM aware of database failures? AS: Jboss 5.0.1-GA JBoss Messaging 1.4.1.GA Persistence for JBoss Messaging : Mysql Ver 14.12 Distrib 5.0.77 Mysql is used as shared database for application and jbm Application and jbm are running different instance of Jboss 5.0.1-GA Scenario: 1) Put 1000 messages in queue while consumer is not running 2) Shutdown Mysql instance while JBoss As instance is running 3) Start Mysql instance again 4) Start consumer for the queue on jbm Result: 1) Consumer was able to consume some messages with 10 duplications in the application table. This consumption didnt remove some messages from queue. | org.jboss.jms.exception.MessagingJMSException: A failure has occurred during processing of the request. Please consult the server logs for more details. ConnectionEndpoint[hb-pew07g2g-1-bonizf2g-794abn-z24o4c5] sendTransaction [ve-d7mg7g2g-1-bonizf2g-794abn-z24o4c5] | at org.jboss.messaging.util.ExceptionUtil.handleJMSInvocation(ExceptionUtil.java:72) | at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:526) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeTarget(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111) | at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195) | at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java) | at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82) | at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908) | at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742) | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695) | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:549) | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:206) | at org.jboss.remoting.Client.invoke(Client.java:1708) | at org.jboss.remoting.Client.invoke(Client.java:612) | at org.jboss.remoting.Client.invoke(Client.java:600) | at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189) | at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160) | at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:221) | at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N326865078927536.invokeTarget(ClientConnectionDelegate$sendTransaction_N326865078927536.java) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111) | at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92) | at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170) | at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java) | at org.jboss.jms.tx.ResourceManager.commitLocal(ResourceManager.java:206
[jboss-user] [JBoss Messaging Users] - 2 JBoss instance - 1. for JBoss Messaging and 2. Remote Cons
Hi All I couldn't figure out how to configure 2. jboss instance to use queues deployed on the 1. jboss instance. As our application is deployed in jboss, we want to cache jms connections as explained in the article below http://www.jboss.org/community/wiki/ShouldIcacheJMSconnectionsandJMSsessions In order to use JmsXA with remote messaging provider, I changed jms-ds.xml like below | | remoteJMSProvider | org.jboss.jms.jndi.JNDIProviderAdapter | java:/XAConnectionFactory | java:/XAConnectionFactory | java:/XAConnectionFactory | |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces |java.naming.provider.url=192.168.4.107:1300 | | | | | | | JmsXA | false | | jms-ra.rar | org.jboss.resource.adapter.jms.JmsConnectionFactory | javax.jms.Topic | java:/remoteJMSProvider | 20 | JmsXARealm | jboss.messaging:service=ServerPeer | | Both JBoss version : 5.0.1.GA JBossMessaging : 1.4.1.GA Error : nested exception is javax.naming.NameNotFoundException: queue/outboundQueue org.springframework.jms.support.destination.DestinationResolutionException: Destination [/queue/outboundQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: queue/outboundQueue There is no problem accessing this queue via XAConnectionFactory, but as you know performance is very important. Second Part: I was using hsqldb for jboss messaging for initial performance tests. it performed as we expected. Then I started using mysql db for jboss messaging(this is the only change), application became 5 times slower. Do you have any suggestion to resolve this? Thanks for your help and time. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262963#4262963 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262963 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: How to trigger Sub-process from custom state recursively
Hi Ronald Thanks for advice... I re-implemented ForEachFork and ForEachJoin for jbpm4 by using the code in ForkActivity and JoinActivity. Instead of using sub-process I used "group". I tried to execute "groups" concurrently in the fork by labeling them with "continue=async". But it created a lot of database level problems. Then, I decided to test this with original JBPM functionality but again I got exceptions. My question is --> Is there a way to execute "groups" async with Fork-Join or Do you suggest something else? Please check following information. | | | http://jbpm.org/4.0/jpdl";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and Simple RandomActivity | public void execute(ActivityExecution ae) throws Exception { | System.out.println("in random activity"); | for(int i=0; i < 10; i++){ | Thread.sleep(10); | System.out.println(Thread.currentThread().getName()+":"+i); | } | } | anonymous wrote : | Here is the exception | | SEVERE: Could not synchronize database state with session | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.pvm.internal.model.ExecutionImpl#3] | at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1792) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435) | at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635) | at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027) | at org.jbpm.pvm.internal.tx.HibernateSessionResource.prepare(HibernateSessionResource.java:54) | at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:106) | at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:65) | at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:61) | at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54) | at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55) | at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70) | at com.playphone.alexander.afp.workFlowProcessor.TestWorkFlow.testForkJoinGroup(TestWorkFlow.java:63) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at junit.framework.TestCase.runTest(TestCase.java:154) | at junit.framework.TestCase.runBare(TestCase.java:127) | at junit.framework.TestResult$1.protect(TestResult.java:106) | at junit.framework.TestResult.runProtected(TestResult.java:124) | at junit.framework.TestResult.run(TestResult.java:109) | at junit.framework.TestCase.run(TestCase.java:118) | at junit.framework.TestSuite.runTest(TestSuite.java:208) | at junit.framework.TestSuite.run(TestSuite.java:203) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet
[jboss-user] [jBPM Users] - How to trigger Sub-process from custom state recursively?
Hi All I have started working jbpm recently. I'm trying to realise following scenario with jbpm. Any help is appreciated. Start points to a custom activity which requests an XML file from external source. If file exists, next custom activity starts streaming it. At this point, I would like trigger rest of the logic (sub-process?) recursively for each piece of data from streaming. So, How can I start/trigger execution of sub-processes asynchronously from a custom activity with some data? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253045#4253045 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: FYI : Communication between services in clustered enviro
You can use some other alternatives for JMX Notification such as registering underlying HAPartition with a BroadCasterName. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232295#4232295 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - FYI : Communication between services in clustered environmen
Hi All I just want to share some tricky points which I encountered while developing communications between services in clustered environment. There might be options out there but following 2 options are definitely available for you to use. 1) JMX Notifications * Provide cluster wide notifications You can send notification to only local listeners, only remote listeners or both. Only thing you need to do is to implement NotificationListener interface and register your service for notification in the startService method. addNotificationListener(NotificationListener, NotificationFilter, Object handBack); 2) Remote Procedure Call by using HAPartition. (If your service extends from HAServiceMBeanSupport, you will have access to underlying ClusterPartition instance) Remote method call might be more helpful if you want to call a specific method on a specific node in the cluster. Underlying HAPartition provides you following methods as of JBoss 5. Please refer to API for details. callAsyncMethodOnNode callAsyncMethodOnCluster callMethonOnCluster callMethonOnNode callMethonOnCoordinatorNode Important: In order to make your service a RPC handler, you need to register it by calling registerRPCHandler(String service_name, Object rpcHandler) on HAPartition. If you are using jmx notifications as well RPCs, make sure service name you used to register your service as a RPC handler is different than actual service name. The reason is that underlying HAServiceImpl's uses your actual service name to register its RPC handler as JMX Notification uses RPC behind the scene. (If Im not wrong method name is handleEvent.) So you might ask what could happen if I register my service with original service name for RPC? Basically your service will not be getting any notifications from anywhere and in order to see what's happening you might need to change logging level to TRACE for jboss. Note: If you are going to use instance of a custom class as data in your jmx notification, make sure that you are not using loader-repository element in jboss-app.xml. If you used it, ClassNotFoundException will occur. please let me know if anything is wrong. Cheers Erkin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232293#4232293 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232293 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: ClassNotFoundException for Custom JMX Notification(2)
Solution is to remove loader-repository element from jboss-app.xml. Otherwise it will Not work. Thanks Erkin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231810#4231810 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Cache 1.4.1 Performance Problem
Hi All We have a scenario which distributed cache is used as a in memory storage. We might be using cache in a wrong way but it takes up to 20 sec to be able replicate removing one object. If we start using single node it just up to 600 or 700 ms. Scenario : Deployment : 3 JBoss Server 4.3 EAP CP1 (Community Patch) are clustered. Load Balancer is in place. Messaging Queue is used for getting tokens from external system. Execution: Clustered nodes communicates with message queue to get tokens. When a nodes gets a token, it puts the token into the distributed cache. Whenever a request is directed to a node, that node remove a token from cache, uses it to return response. Token is stored under same node on tree cache. Token id is used as key on the map and itself is the value. Whenever application deployed on jboss As instance needs a token, it just gets first available token from that node. And it removes token according its own key. 1) Is it an example of how not to use jboss cache? 2) What is possibly missing on jboss cache configuration? Cache Configuration: | | jboss:service=Naming | jboss:service=TransactionManager | org.jboss.cache.JBossTransactionManagerLookup | NONE | | REPL_ASYNC | | xyz | | | | | | | | | | | | | | | | | | 5 | 2 | 15000 | | And Token | public class TokenCarrier implements java.io.Serializable{ | | private java.lang.String v1; | private java.lang.String v2; | private java.lang.String v3; | private java.lang.String v4; | private long creationTime; | | ... some getter ... setter | } | | Thanks for help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231327#4231327 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering JBOSS 5.0
^you might want to change following parameter View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231273#4231273 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering JBOSS 5.0
Hi I think farmin is not available on jboss 5.0.0GA but will be available with 5.1.0GA via profile settings. In order make cluster between to nodes, you can download 5.0.0GA start with on Node 1 ./run.sh -c all -Djboss.partition.name=xyz -Djboss.messaging.ServerPeerID=1 start with on Node 2 ./run.sh -c all -Djboss.partition.name=xyz -Djboss.messaging.ServerPeerID=2 I dont think you need to edit anything else. If there is already running clustered environment in your local network, you might want to following parameter as well -Djboss.partition.UdpGroup= UDP_ADDRESS View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231271#4231271 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
| | true | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231246#4231246 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
Hi Rich Thanks for suggestion. I'm trying to use forums for development problems before disturbing red hat customer support. I think(not sure as I have other problems such as http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155517 ) adding following line int the config fixed my problem regarding cache. true Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231245#4231245 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - ClassNotFoundException for Custom JMX Notification(2)
Hi All I thought I might need to clarify myself better to find out what I'm doing wrong. Please check the simple code below and its configuration. Scenario: 2 Nodes --> 1 on linux, 1 on windows xp Version of As= jboss EAP 5.0.0 Java 1,6 JBoss As 1 starts on linux and get deployed. startSingleton will get executed without a problem as there is no other service in the cluster. JBoss As 2 starts on windows and get deloyed. This deployment forces service instance on As 1 to give up being master. (Still couldnt figured out why) When service deployed on As 2 become master it sends notification to remote with provisionMessage. When notification hit As 1, As 1 start throwing ClassNotFoundException. I know it is class loader issue at ear level but I couldnt figured out how to resolve. Note: ProvisionMessage and TestService in the same package. Code is executed on : jboss eap 5.0.0 Alpha Thanks, please let me know anymore information. Below is simple service code | public class TestService extends HAServiceMBeanSupport | implements TestServiceMBean, NotificationListener { | | private static Logger logger = Logger.getLogger( | TestService.class); | | | @Override | public void startSingleton(){ |logger.info("Start Singleton Service"); |Notification not = new Notification("Test", this, System.currentTimeMillis()); | |not.setUserData(new ProvisionMessage(1, 1)); | |try{ |this.sendNotificationRemote(not); |}catch(Exception e){ |logger.error(e); |} | } | | @Override | public void stopSingleton(){ | logger.info("Stop Singleton Service"); | } | | @Override | protected void createService() throws Exception { | super.createService(); | logger.info("Create Service"); | } | | @Override | protected void startService() throws Exception { | super.startService(); | logger.info("Start Service"); | this.addNotificationListener(this, null, null); | } | | @Override | protected void stopService() throws Exception { | super.stopService(); | logger.info("Stop Service"); | } | | @Override | protected void destroyService() throws Exception { | super.destroyService(); | | logger.info("Destroy Service"); | } | | @Override | public void handleNotification(Notification notification, Object handback) { | ProvisionMessage msg = (ProvisionMessage)notification.getUserData(); | logger.info(msg); | } | } | | public class ProvisionMessage implements Externalizable { | | private int accId; | private int conId; | | public ProvisionMessage(int accountId, int connectionId) { | this.accountId = accountId; | this.connectionId = connectionId; | } | | public ProvisionMessage(){ | //For Serialization | } | | @Override | public void writeExternal(ObjectOutput out) throws IOException { | out.write(accId); | out.write(conId); | } | | @Override | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { | this.accId = in.readInt(); | this.conId = in.readInt(); | } | | public int getAccId() { | return accId; | } | | public int getConId() { | return conId; | } | | @Override | public boolean equals(Object obj) { | if (obj == null) { | return false; | } | if (getClass() != obj.getClass()) { | return false; | } | final ProvisionMessage other = (ProvisionMessage) obj; | if (this.accId != other.accId) { | return false; | } | if (this.conId != other.conId) { | return false; | } | return true; | } | | @Override | public int hashCode() { | int hash = 7; | hash = 59 * hash + this.accId; | hash = 59 * hash + this.conId; | return hash; | } | | Exception : | 09:40:29,709 INFO [STDOUT] 09:40:29,709 INFO [TestService] Stop Singleton Service | 09:40:29,720 WARN [ClusterPartition$RpcHandler] Partition xyz failed extracting message body from request bytes | java.lang.ClassNotFoundException: xyz.ProvisionMessage | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.$$YJP$$doPrivileged(Native Method) | at java.security.AccessController.doPrivileged(AccessController.java) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) |
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
Hi Manik I was trying to use the configuration file in the first message as it is. When I deploy application on the second node, cache tries replicate itself but it is not able to find the correct class. As I'm using jboss EAP 5.0.0, then i tried follow faq 2,35 and 2.38 but so far no luck to get it work... Do you suggest that I should upgrade version to 3.1.0Ga? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231100#4231100 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
I forgot to mention that setUseRegionBasedMarshallin is deprecated in the javadoc. According to javadoc, we should be doing following " With isUseLazyDeserialization(), which is enabled by default, custom class loaders are handled implicitly. See the user guide for details on how this is handled. " On the other hand I checked AbstractMarshaller under Tag 3.0.3GA and it includes following code... @Start @SuppressWarnings("deprecation") protected void init() { this.useRegionBasedMarshalling = configuration.isUseRegionBasedMarshalling(); this.defaultInactive = configuration.isInactiveOnStartup(); } Am I missing something? please help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230900#4230900 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Replication, CacheMarshaller, Region
Hi All As I would like to store some custom externalizable classes in the cache, i created region on the cache. But it didnt help me not to get ClassNotFoundException. Scenario exactly as explained in faq. [url] http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/3.0.3.GA/faq_en/html_single/index.html#d0e666 [/url] I'm using JBoss EAP 5.0.0 (Only supported version available). It uses jbosscache 3.0,3GA. My jboss-beans.xml file under META-INF of ear file. So when class is loaded, cache will be created on that server. My Question is What is the best way for handling class loader problem? Do I need to write a Marshaller from scratch or is there any delegation available for application to provide class loader? please find cache configuration below. | | | | | | | | | | | | | | | udp | | ${jboss.partition.name:DefaultPartition}-ConfigurationCache | | OPTIMISTIC | NONE | REPL_SYNC | 15000 | 2 | 15000 | true | | | | | false | false | | | | | | ${jboss.server.data.dir}${/}session | | false | true | true | false | false | | | | | | | | | | | | | | | | | false | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230898#4230898 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - ClassNotFoundException for Custom JMX Notification
Hi All I'm trying to send a custom externalizable class via jmx notification from a service to same service running on different node. Whenever jmx notifications hit the remote node(s), remote node(s) starts throwing ClassNotFoundException. This problem reminds me the f.a. question below from jboss cache. anonymous wrote : | Does JBoss Cache handle the concept of application classloading inside, say, a Java EE container? | After little investigation, I have found out that MarshalledValueInputStream gets contextclassloader from SecurityActions and SecurityActions get the classLoader from the thread which execution on. So my questions are, 1)How can I provide a hook/delegation for finding class loader from my application to underlying jboss? 2)Is there any example for this? 3) If you know jboss cache, how can I say solve same ClassNotFoundException? I tried to use Region creation on cache like below, but no luck... | Fqn configurationFqn = Fqn.fromString(fqnName); | Region region = | this.configurationCache.getRegion(configurationFqn, true); | region.registerContextClassLoader(this.getClass().getClassLoader()); | Note: Notification service which extends from HAServiceMBeanSupport and custom externalizable class is in the same SAR file and deployed as a ear file. Thanks for your help. | public class NodeServiceNotification implements Externalizable{ | | public static final String NAME = "SERVICE_NOTIFICATION"; | private Data someData; | private long creationTime; | | public NodeServiceNotification( Data someData) { | this.creationTime = System.currentTimeMillis(); | this.someData = someData; | } | | public long getCreationTime() { | return creationTime; | } | | public Data getData() { |return someData; | } | | @Override | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { | creationTime = in.readLong(); | this.someData = (Data) in.readObject(); | } | | @Override | public void writeExternal(ObjectOutput out) throws IOException { | out.writeLong(creationTime); | out.writeObject(someData); | } | } | | // In another class, notification sender code | NodeServiceNotification sn = new NodeServiceNotification(someData); | | Notification notification = new Notification(NodeServiceNotification.NAME, | node, System.currentTimeMillis()); | notification.setUserData(sn); | | this.sendNotification(notification); | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230823#4230823 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Communication between nodes
Hey Brian Thanks a lot... jmxri was in the ear file. After removing, everything worked properly... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229495#4229495 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Communication between nodes
Hey Brain still no luck after downloading and testing on jBoss 5.1.0CR1. You can find full stack trace below. | 16:05:02,203 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/servers/jboss-5.1.0.CR1/server/production/deploy/Test.ear/ state=PreReal mode=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: Error deploying: xyz:service=TestServiceHASingletonController | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) | at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118) | at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702) | at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231) | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.RuntimeException: Exception setting attribute TargetName on mbean xyz:service=TestServiceHASingletonController | at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:170) | at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114) | at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58) | at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42) | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at
[jboss-user] [Clustering/JBoss] - Re: Communication between nodes
Thanks again Brain. I have tried with 5.0.1 GA and JBoss EAP 5.0.0. To try on release candidate didnt even cross my mind, I apologise for that. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229451#4229451 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: jboss deploying issue - (while the service is up)
Hi Chades Have you tried to create passive - active clustering? You can do that with 2 physical nodes or 4 nodes. If it is 2 physical nodes, you need to 1 active and 1 passive jboss instance on the same node. So you will have 2 cluster --> Active to Active Passive to Passive When you need update, you can update on passive cluster, then change load balancer setting to use that cluster. So passive will be start serving. (being active) Old version of the code on old active will be not be in use anymore. If there are 4 nodes, you can apply same thing. 2 cluster both of them are serving for traffic. Change Load balancer setting to use one cluster when you want to update. Update the cluster you took out and change load balancer setting to use that cluster. I hope it make sense. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229372#4229372 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Communication between nodes
Hi All I'm struggling to deploy singleton jboss service. Can you provide some feedback what it is wrong with following config file? The problem is that I'm not able to set TargetName attribute of HASingletonController. Note: I'm using jboss-eap-5.0--> Supported Alpha Version 11:48:55,438 ERROR [AbstractKernelController] Error installing to Configured: name=xyz:service=TestServiceHASingletonController state=Instantiated mode=Manual requiredState=Configured java.lang.RuntimeException: Exception setting attribute TargetName on mbean xyz:service=TestServiceHASingletonController Caused by: javax.management.InvalidAttributeValueException: Set attribute has class class javax.management.ObjectName loaded from null that is not assignable to attribute class class javax.management.ObjectName loaded from baseclassloa...@15b9a0c | public interface TestServiceMBean extends HAServiceMBean { | | public void startSingleton(); | | public void stopSingleton(); | | } | | | public class TestService extends HAServiceMBeanSupport | implements TestServiceMBean { | | private static Logger logger = Logger.getLogger( | TestService.class); | | | @Override | public void startSingleton() { |logger.info("Start Singleton Service"); | } | | @Override | public void stopSingleton(){ | logger.info("Stop Singleton Service"); | } | | @Override | protected void createService() throws Exception { | super.createService(); | logger.info("Create Service"); | } | | @Override | protected void startService() throws Exception { | super.startService(); | logger.info("Start Service"); | } | | @Override | protected void stopService() throws Exception { | super.stopService(); | logger.info("Stop Service"); | } | | @Override | protected void destroyService() throws Exception { | super.destroyService(); | | logger.info("Destroy Service"); | } | } | | | | | | | | jboss:partition=${jboss.partition.name:DefaultPartition},service=HAPartition | | | | | | jboss:partition=${jboss.partition.name:DefaultPartition},service=HAPartition | | | xyz:service=TestService | | startSingleton | stopSingleton | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229359#4229359 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229359 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Communication between nodes
Thanks for your reply. Quickest option for me to use AS5.1 as AS5.0 is already in place. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228526#4228526 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Communication between nodes
Hi, What is the best way of communicating between jboss nodes? I have used HAServiceMBeanSupport for cluster-wide notifications but this time I need to be able to send messages to a specific node/nodes. Notifications can be addressed to specific node by providing another field specifying node name in the notification but how effective would this solution be? Is there any possible way to access underlying JChannel from HAPartition so I will be able to use following send method? public void send(Address dst, Address src, java.io.Serializable obj) Thanks for your help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228041#4228041 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228041 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: AOP configuration in AS
Hi All Is it right to think assumption at below? Whenever a war file is deployed, JBoss application server's class loader loads the class which implements ServletContext then trigger the ServletContextEvent. Before all operation above, I assume that all configurations(web.xml, jboss-aop.xml, application.xml or vs) are read. Therefore AOP advices/interceptions even on ServletContext implementation will be vlid as firstly config is read then initialization is done. What could happen if more than web applications are deployed on same jboss instance? Would Class file of ServletContext implementation be loaded per class loader assigned to war file or same loaded class be used every war file? (What kind of class loading hierarchy is there??) Thanks a lot for your help... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185247#4185247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185247 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - AOP configuration in AS
Hi All I need help to configure to use Dynamic AOP in JBOSS AS? Let me tell you the steps i have done. 1-) Download JBOSS AOP 2.0.0 GA and run build xml(jdk5.0) to install on JBOSS 4.3.0.GA 2-) Change \deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml | true | 3) Wrote interceptor class which implements iterceptor interface 4-) But jboss-aop.xml file under META-INF directory of war archive. Basically, What I'm trying to do is LTW (load time weaving) on servletContext as it is provided by jboss. | | | | | | As far as i understood, prepare should be used for dynamic aop...At this point where should I point the interceptor implementation? Can you send me link or provide an example for dynamic aop in jboss as? Thanks a lot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185185#4185185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185185 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Availability of an service
Hi All Is it possible to call a business method from a Jboss Service before startService() method is called ? Scenario --- Service A is running And it uses Service B's business method. Service B is hot deployed again Service B's createService method has been called JBoss AS. At this point, Is it possible for Service A to get reference of Service B by using MBeanProxyExt ? Or Is startService method of Service B called by JBoss AS before giving any access to this service ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117003#4117003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117003 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Availability of an service
"ekobir" wrote : Hi All | | Is it possible to call a business method from a Jboss Service before startService() method is called ? | | Scenario --- | | Service A is running And it uses Service B's business method. | | Service B is hot deployed again | | Service B's createService method has been called JBoss AS. | | At this point, Is it possible for Service A to get reference of Service B by using MBeanProxyExt ? | | Or Is startService method of Service B called by JBoss AS before giving any access to this service ? | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117004#4117004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117004 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Memory Management
Hi All Is there any functionality in jboss which checks memory usage of its jvm and if it detects high memory usage before getting outOfMemory error, undeploys all of services and shutdown itself completely ? Note: If there is no functionality like that, dont hesitate to give some idea why it can happen. Thanks Erkin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112513#4112513 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user