[JBoss Messaging] - JBM Bridge connect / re-connect issues
by tpaterson
Hello everyone !
We are currently attempting to migrate from JBoss MQ to JBM,
Using JBoss 4.2.1.GA, JBM 1.4.0.SP1, and JBoss Remoting 2.2.2.SP1.
We have been testing the JBM Bridge service between a couple of machines,
a producer machine with a mix of queues and topics,
and a consumer machine which runs the bridge service(s).
the consumer bridge service listens to two queues and one topic on the remote producer - and then puts the messages into local queues.
as part of our testing we have unplugged the network cable from the consumer machine for a few minutes,
then reconnected - and checked that the message delivery resumes -- and it does - which is great !
HOWEVER -- after this - if we add messages into one of the Queues/Topics on the producer which was previously empty,
the messages _never_ get delivered to the consumer.
The only way they get delivered is if we re-start JBoss on the consumer, or if we restart the individual Bridge Service
via the web-console and JMX-Beans view.
below is a transcript of a test we tried :
Started the producer JBoss instance - and once it was started - then started the consumer JBoss instance.
(unfortunately the clock on the two machines is slighty out - the consumer seems to be approx 2 minutes behind the producer)
producer 02:42:05 JBoss (MX MicroKernel) [4.2.1.GA ...] Started in 40s:622ms
|
| consumer 03:17:12 Started bridge BridgeService. Source: /queue/consumerPinNetDataQueue Target: /queue/PinnacleNetIncomingData
|
| consumer 03:17:16 Started bridge BridgeService. Source: /queue/testQueue Target: /queue/testQueue
|
| consumer 03:17:18 Started bridge BridgeService. Source: /topic/PinnacleNetTopic Target: /queue/PinnacleNetIncomingData
|
| consumer 03:17:19 JBoss (MX MicroKernel) [4.2.1.GA ...] Started in 22s:563ms
|
| producer Added 20,000 100 bytes messages to testQueue
| consumer Can see from web-console that consumer has so far received 7,500 messages
|
| consumer *** Network cable removed from consumer machine
|
| producer Can see that sending of messages has stalled in web-console, MessageCount = 12,500, DeliveringCount = 0, Consumers = 0
|
| consumer 03:48:49 Failed to send + acknowledge batch, closing JMS objects
|
| consumer **** Network cable put back in consumer machine
|
| consumer 03:49:26 Succeeded in reconnecting to servers
|
| consumer Can see number of messages in testQueue increasing after sucessful re-connect
| producer Can correspondingly see number of messages in testQueue decreasing
|
|
| producer **** started adding 20,000 100 byte messages to consumerPinNetDataQueue which was previously empty
|
| producer 03:52:29 [...CommsTestBean] sendTestMessages(queue/consumerPinNetDataQueue,20000,100)
| producer **** finnished adding 20,000 messages to consumerPinNetDataQueue (in a Transaction)
| producer 03:53:02 [...CommsTestBean] sendMessage(queue/consumerPinNetDataQueue,19999,false,false,false,100)
|
|
| producer Checked web-console -- consumerPinNetDataQueue shows 20,000 messages exactly - even after several minutes
| consumer Checked web-console -- PinnacleNetIncomingDataQueue shows 0 messages
|
even if we wait hours -- the messages stay sat on the producer,
the only way to get the messages from the producer to the consumer is to either restart JBoss on the consumer,
or to stop and then start the bridge service concerned via the web-console and JMX-Beans view.
we have tried this many times over the last week or two, using Queues or Topics,
JBoss 4.2.0.GA, 4.2.1.GA, 4.2.2.GA, JBM 1.4.0, JBM 1.4.0.SP1
each time we got the same result.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107390#4107390
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107390
18 years, 7 months
[JBoss Seam] - NPE while trying to new a FacesRequest
by laksu
Hi,
I have my test build as close to the hibernate2 example as possible. I have a test of test environment like the following:
import org.jboss.seam.mock.BaseSeamTest.ComponentTest;
| import org.jboss.seam.mock.SeamTest;
| import org.jboss.seam.mock.SeamTest.FacesRequest;
| import org.testng.annotations.Test;
|
| public class TestIntact extends SeamTest {
|
| @Test
| public void testIntact(){
| assert true;
| }
|
|
| @Test
| public void componentTestIntact() throws Exception{
| new ComponentTest(){
| @Override
| protected void testComponents() throws Exception{
| assert true;
| }
| }.run();
| }
|
| @Test
| public void facesTestIntact() throws Exception {
| System.out.println("Faces Intact Test");
|
| new FacesRequest() {
| @Override
| protected void invokeApplication() throws Exception {
| assert true;
| }
| }.run();
| }
|
All it does is asserting the true however facesTestIntact() fails with the following stack trace:
[testng] PASSED: testComponentTestIntact
| [testng] PASSED: testIntact
| [testng] FAILED: TestIntact.facesTestIntact()
| [testng] java.lang.NullPointerException
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:514)
| [testng] at TestIntact.facesTestIntact(TestIntact.java:30)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
| [testng] at org.testng.TestRunner.run(TestRunner.java:505)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
| [testng] at org.testng.TestNG.run(TestNG.java:316)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
| [testng] at org.testng.TestNG.main(TestNG.java:608)
|
I use Java 5 SDK and Seam 2.0.0 GA.
I cannot tell what could be wrong.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107388#4107388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107388
18 years, 7 months
[JBoss Messaging] - Re: AccessControlException
by tpaterson
Hi Guys,
did anyone ever find a solution for this issue ?
we are having the same -- our client App runs via webstart and connects to a Queue on the server at startup.
up until now we have been using JBoss MQ - but we are now in the process of trying to migrate to JBoss Messaging - and this issue is causing us a bit of a problem.
We have tried JBoss 4.2.0.GA, 4.2.1.GA, 4.2.2.GA, JBM 1.4.0.GA, JBM 1.4.0.SP1, JBoss Remoting 2.2.2.SP1 and JBoss Remoting 2.2.2.SP2 - all of which give us the same problem.
as a reminder -- here's the exception :
org.jboss.jms.exception.MessagingJMSException: Failed to invoke
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:269)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
| at com.actual_systems.p2.client.support.activedata.DefClientADM.setupJMS(DefClientADM.java:1354)
| at com.actual_systems.p2.client.support.activedata.DefClientADM.<init>(DefClientADM.java:324)
| at com.actual_systems.p2.client.support.activedata.DefClientADM.getInstance(DefClientADM.java:309)
| at com.actual_systems.p2.client.support.preference.ClientPreferenceSource.<init>(ClientPreferenceSource.java:88)
| at com.actual_systems.p2.client.support.ClientPreferenceManager.<init>(ClientPreferenceManager.java:234)
| at com.actual_systems.p2.client.support.ClientPreferenceManager.getInstance(ClientPreferenceManager.java:245)
| at com.actual_systems.p2.client.startup.StartPPClient.initCPM(StartPPClient.java:560)
| at com.actual_systems.p2.client.startup.StartPPClient.initApplication(StartPPClient.java:377)
| at com.actual_systems.p2.client.startup.StartPPClient.main(StartPPClient.java:772)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at com.sun.javaws.Launcher.executeApplication(Unknown Source)
| at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
| at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
| at com.sun.javaws.Launcher.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.remoting.InvokerRegistry.loadServerInvoker(InvokerRegistry.java:438)
| at org.jboss.remoting.InvokerRegistry.createServerInvoker(InvokerRegistry.java:525)
| at org.jboss.remoting.transport.Connector.init(Connector.java:396)
| at org.jboss.remoting.transport.Connector.create(Connector.java:782)
| at org.jboss.remoting.transport.Connector.start(Connector.java:301)
| at org.jboss.remoting.Client.addListener(Client.java:918)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:237)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:312)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
| ... 26 more
| Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
| at java.security.AccessControlContext.checkPermission(Unknown Source)
| at java.security.AccessController.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source)
| at java.lang.ClassLoader.<init>(Unknown Source)
| at org.jboss.remoting.loading.ClassByteClassLoader.<init>(ClassByteClassLoader.java:62)
| at org.jboss.remoting.AbstractInvoker.<init>(AbstractInvoker.java:76)
| at org.jboss.remoting.ServerInvoker.<init>(ServerInvoker.java:267)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.<init>(SocketServerInvoker.java:106)
| at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.<init>(BisocketServerInvoker.java:105)
| at org.jboss.remoting.transport.bisocket.TransportServerFactory.createServerInvoker(TransportServerFactory.java:21)
| ... 39 more
|
can anyone help ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107384#4107384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107384
18 years, 7 months
[JBoss Seam] - java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.jav
by hager
Hello,
I'm using seam 2.0.0.GA and JBoss server 4.2.0.GA
I'm trying an example with <pdf:image>, but i have java.io.ByteArrayInputStream.(ByteArrayInputStream.java:89) Exception.
Page.xhtml :
<p:image image="#{exportPDF.image}" spacingAfter="20" />
ExportPDF.java :
| public BufferedImage getImage() {
| BufferedImage image = null;
| try {
| String repertoireLogo = this.gestionConfiguration.getValue(typeConfigurationValeur);
| this.pathImage = this.societeHome.getInstance().getLogoSociete();
| if(this.pathImage != null)
| {
| System.out.println("pathImage "+pathImage);
| StringTokenizer st = new StringTokenizer(this.pathImage,"/");
| String nomFichier ="";
| while(st.hasMoreElements())
| {
| nomFichier = st.nextToken();
| }
| byte[] pixels;
| //Reading every byte from file
| File logo = new File(repertoireLogo+File.separator+nomFichier);
| if(logo.exists())
| {
| FileInputStream fis = new FileInputStream(logo);
|
| pixels = new byte[fis.available()];
| fis.read(pixels);
| System.out.println("Pixels "+pixels.length);
| image = ImageIO.read ( new ByteArrayInputStream ( pixels ) );
| }
| }
| }
| catch (IOException e) {
| System.out.println("Exception Image "+e.toString());
| }
| return image;
| }
when I execute my method, I have this exception :
java.lang.NullPointerException
| at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
| at com.lowagie.text.Image.getInstance(Unknown Source)
| at org.jboss.seam.pdf.ui.UIImage.createITextObject(UIImage.java:140)
| at org.jboss.seam.pdf.ui.ITextComponent.encodeBegin(ITextComponent.java:181)
| at org.jboss.seam.pdf.ui.ITextComponent.encode(ITextComponent.java:244)
| at org.jboss.seam.pdf.ui.ITextComponent.encodeChildren(ITextComponent.java:213)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
| at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.fitnetapplication.resources.pdf.RendererFilter.doFilter(RendererFilter.java:79)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
How can I fix that?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107382#4107382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107382
18 years, 7 months