Re: Need help connecting to broker using proxy
What kind of proxy are you trying to use? Also, in the future please direct questions like this to the ActiveMQ *users* mailing list [1]. This is the dev list for folks working directly on an ActiveMQ code-base. Justin [1] https://activemq.apache.org/contact On Sat, Jan 6, 2024 at 11:30 AM Sunil Kumar wrote: > Hi, > > i am working on ActiveMQ using c#. I need help in setting the proxy while > connecting to the broker using ConnectionFactory > > IConnectionFactory factory = new > ConnectionFactory("ssl://mybrokerurl:4040"); > _connection = factory.CreateConnection(_userName, _password); > _connection.Start(); > _session = _connection.CreateSession(); > > I get this exception at line 2: Error connecting to mybrokerurl:4040. > InnerException: Unknown error (0xfffe) > > I didn't find a way to set proxy. Please help > > Thanks, > Sunil >
Need help connecting to broker using proxy
Hi, i am working on ActiveMQ using c#. I need help in setting the proxy while connecting to the broker using ConnectionFactory IConnectionFactory factory = new ConnectionFactory("ssl://mybrokerurl:4040"); _connection = factory.CreateConnection(_userName, _password); _connection.Start(); _session = _connection.CreateSession(); I get this exception at line 2: Error connecting to mybrokerurl:4040. InnerException: Unknown error (0xfffe) I didn't find a way to set proxy. Please help Thanks, Sunil
Re: Need help
That error can happen under normal (non-errant) conditions - are there other symptoms that raise concerns related to it? One cause of such an error is an unstable network that is dropping connections. Another could be a simple race between the connection being closed on the other end and the publisher. Another consideration - if the application is failing on this exception, consider using the failover transport - *especially* if their is any type of intermittent network instability. In such a case, the failover transport will block until it can successfully connect and the application won't receive the exception. Just make sure to have adequate logging in place so you can tell when the application is disconnected. Art On Sat, Jul 2, 2022 at 2:32 AM Rupali Lalwani < rupali.lalw...@eclinicalworks.com> wrote: > > Hi All, > > > > Hope this email find you in good health. I need help, we are using > activemq 5.13. Recently we started encountering intermittent issue. > > Not able to find the solution though, can you please suggest looking at > the logs? > > > > javax.jms.JMSException: Cannot send, channel has already failed: > tcp://XX.XXX.XX.XX:8001 > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1421) > at > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1486) > at > org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:527) > at > com.ecw.components.ActiveMQPublishService.publishNAV(ActiveMQPublishService.java:73) > at > com.ecw.components.RequestProcesssor.insertPHRMessage(RequestProcesssor.java:325) > at > org.apache.jsp.jsp.jspnew.requestPHR_jsp._jspService(requestPHR_jsp.java:195) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > > > > > > > > Regards, > > Rupali Lalwani > > 2 Technology Drive | Westborough, MA 01581 > > T: 508-475-0450 x17002 > > rupali.lalw...@eclinicalworks.com<mailto:rupali.lalw...@eclinicalworks.com > > > > > > > From: Clebert Suconic > Sent: Friday, July 1, 2022 12:34 PM > To: dev@activemq.apache.org > Subject: [HEADS-UP] ActiveMQ Artemis Native some time between 5th and 11th > > [You don't often get email from clebert.suco...@gmail.com. Learn why this > is important at https://aka.ms/LearnAboutSenderIdentification ] > > Attention! - This email has originated from an External Source outside of > eClinicalWorks. Always use caution when opening attachments, clicking > links, or when responding to this email. If you feel this is a phishing > scam, please use the Phish Alert Report button in Outlook. > > > We should release activemq artemis native within the next 2 weeks. > > > I am in vacation mode next week but I may try to do a release > anyways... it will be unlikely though as I need some hardware to > compile the native bits (I need that even if I use the Docker). > > > so, it will be most likely on the week of the 11th.. unless Robbie > Gemmel or anyone else would like to go ahead before me. > > > -- > Clebert Suconic > > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains > confidential information belonging to the sender that is legally privileged > and proprietary and may be subject to protection under the law, including > the Health Insurance Portability and Accountability Act (HIPAA). If you are > not the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have > received this e-mail in error, please notify the sender immediately by > reply e-mail and permanently delete this e-mail and any attachments without > reading, forwarding or saving them. Thank you. > > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains > confidential information belonging to the sender that is legally privileged > and proprietary and may be subject to protection under the law, including > the Health Insurance Portability and Accountability Act (HIPAA). If you are > not the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have > received this e-mail in error, please notify the sender immediately by > reply e-mail and permanently delete this e-mail and any attachments without > reading, forwarding or saving them. Thank you. >
Need help
Hi All, Hope this email find you in good health. I need help, we are using activemq 5.13. Recently we started encountering intermittent issue. Not able to find the solution though, can you please suggest looking at the logs? javax.jms.JMSException: Cannot send, channel has already failed: tcp://XX.XXX.XX.XX:8001 at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1421) at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1486) at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:527) at com.ecw.components.ActiveMQPublishService.publishNAV(ActiveMQPublishService.java:73) at com.ecw.components.RequestProcesssor.insertPHRMessage(RequestProcesssor.java:325) at org.apache.jsp.jsp.jspnew.requestPHR_jsp._jspService(requestPHR_jsp.java:195) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) Regards, Rupali Lalwani 2 Technology Drive | Westborough, MA 01581 T: 508-475-0450 x17002 rupali.lalw...@eclinicalworks.com<mailto:rupali.lalw...@eclinicalworks.com> From: Clebert Suconic Sent: Friday, July 1, 2022 12:34 PM To: dev@activemq.apache.org Subject: [HEADS-UP] ActiveMQ Artemis Native some time between 5th and 11th [You don't often get email from clebert.suco...@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Attention! - This email has originated from an External Source outside of eClinicalWorks. Always use caution when opening attachments, clicking links, or when responding to this email. If you feel this is a phishing scam, please use the Phish Alert Report button in Outlook. We should release activemq artemis native within the next 2 weeks. I am in vacation mode next week but I may try to do a release anyways... it will be unlikely though as I need some hardware to compile the native bits (I need that even if I use the Docker). so, it will be most likely on the week of the 11th.. unless Robbie Gemmel or anyone else would like to go ahead before me. -- Clebert Suconic CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains confidential information belonging to the sender that is legally privileged and proprietary and may be subject to protection under the law, including the Health Insurance Portability and Accountability Act (HIPAA). If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you. CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains confidential information belonging to the sender that is legally privileged and proprietary and may be subject to protection under the law, including the Health Insurance Portability and Accountability Act (HIPAA). If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you.
Re: I need help with Karaf / Artemis features
I appreciate the help. The idea is to not rely on Javax.json and avoid the clash. Now We removed it the features is not working. On Sat, Nov 13, 2021 at 12:16 AM JB Onofré wrote: > Hi Christoph > > I will take a look during the weekend. > > I’ve seen some change /message about json (johnzon etc). It might be > related. > > Regards > JB > > > Le 13 nov. 2021 à 06:02, Christoph Läubrich a > écrit : > > > > It seems org.apache.activemq.artemis-server-osgi requires the package > > > > org.glassfish.json > > > > this was probably provided previously by some of the now excluded > dependencies. > > > > > >> Am 12.11.21 um 22:11 schrieb Clebert Suconic: > >> If you don't want to read the whole message: TL;DR: I need help with > >> this Pull Request: > >> https://github.com/apache/activemq-artemis/pull/3846 > >> Artemis-features is failing with some lack of json support: > >> Long form: > >> To solve a clash between javax and jakarta users, I'm simply now > >> removing javax.json by shading javax.json and johnzon into > >> artemis-commons. > >> I pretty much removed every reference to json from the codebase, and > >> everything is just using artemis-commons. > >> However, artemis-features now is not working at all: > >> if you download the branch above, and do this: > >> cd artemis-features > >> mvn install > >> you will get these errors: > >> [ERROR] Message: Unable to resolve root: missing requirement [root] > >> osgi.identity; osgi.identity=artemis-openwire; type=karaf.feature; > >> version=2.20.0.SNAPSHOT; > >> > filter:="(&(osgi.identity=artemis-openwire)(type=karaf.feature)(version>=2.20.0.SNAPSHOT))" > >> [caused by: Unable to resolve artemis-openwire/2.20.0.SNAPSHOT: > >> missing requirement [artemis-openwire/2.20.0.SNAPSHOT] osgi.identity; > >> osgi.identity=artemis-core; type=karaf.feature [caused by: Unable to > >> resolve artemis-core/2.20.0.SNAPSHOT: missing requirement > >> [artemis-core/2.20.0.SNAPSHOT] osgi.identity; > >> osgi.identity=org.apache.activemq.artemis-server-osgi; > >> type=osgi.bundle; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; > >> resolution:=mandatory [caused by: Unable to resolve > >> org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT: missing > >> requirement [org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT] > >> osgi.wiring.package; > >> filter:="(osgi.wiring.package=org.glassfish.json)"]]] > >> [ERROR] Repositories: { > >> [ERROR] > file:/Users/clebertsuconic/work/apache/activemq-artemis/artemis-features/target/classes/features.xml > >> [ERROR] mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features > >> [ERROR] mvn:org.apache.karaf.features/enterprise/4.3.3/xml/features > >> [ERROR] mvn:org.apache.karaf.features/framework/4.3.3/xml/features > >> [ERROR] mvn:org.apache.karaf.features/specs/4.3.3/xml/features > >> that i have no idea how to fix it... > >> HELP > > -- Clebert Suconic
Re: I need help with Karaf / Artemis features
Hi Christoph I will take a look during the weekend. I’ve seen some change /message about json (johnzon etc). It might be related. Regards JB > Le 13 nov. 2021 à 06:02, Christoph Läubrich a écrit : > > It seems org.apache.activemq.artemis-server-osgi requires the package > > org.glassfish.json > > this was probably provided previously by some of the now excluded > dependencies. > > >> Am 12.11.21 um 22:11 schrieb Clebert Suconic: >> If you don't want to read the whole message: TL;DR: I need help with >> this Pull Request: >> https://github.com/apache/activemq-artemis/pull/3846 >> Artemis-features is failing with some lack of json support: >> Long form: >> To solve a clash between javax and jakarta users, I'm simply now >> removing javax.json by shading javax.json and johnzon into >> artemis-commons. >> I pretty much removed every reference to json from the codebase, and >> everything is just using artemis-commons. >> However, artemis-features now is not working at all: >> if you download the branch above, and do this: >> cd artemis-features >> mvn install >> you will get these errors: >> [ERROR] Message: Unable to resolve root: missing requirement [root] >> osgi.identity; osgi.identity=artemis-openwire; type=karaf.feature; >> version=2.20.0.SNAPSHOT; >> filter:="(&(osgi.identity=artemis-openwire)(type=karaf.feature)(version>=2.20.0.SNAPSHOT))" >> [caused by: Unable to resolve artemis-openwire/2.20.0.SNAPSHOT: >> missing requirement [artemis-openwire/2.20.0.SNAPSHOT] osgi.identity; >> osgi.identity=artemis-core; type=karaf.feature [caused by: Unable to >> resolve artemis-core/2.20.0.SNAPSHOT: missing requirement >> [artemis-core/2.20.0.SNAPSHOT] osgi.identity; >> osgi.identity=org.apache.activemq.artemis-server-osgi; >> type=osgi.bundle; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; >> resolution:=mandatory [caused by: Unable to resolve >> org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT: missing >> requirement [org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT] >> osgi.wiring.package; >> filter:="(osgi.wiring.package=org.glassfish.json)"]]] >> [ERROR] Repositories: { >> [ERROR] >> file:/Users/clebertsuconic/work/apache/activemq-artemis/artemis-features/target/classes/features.xml >> [ERROR] mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features >> [ERROR] mvn:org.apache.karaf.features/enterprise/4.3.3/xml/features >> [ERROR] mvn:org.apache.karaf.features/framework/4.3.3/xml/features >> [ERROR] mvn:org.apache.karaf.features/specs/4.3.3/xml/features >> that i have no idea how to fix it... >> HELP
Re: I need help with Karaf / Artemis features
It seems org.apache.activemq.artemis-server-osgi requires the package org.glassfish.json this was probably provided previously by some of the now excluded dependencies. Am 12.11.21 um 22:11 schrieb Clebert Suconic: If you don't want to read the whole message: TL;DR: I need help with this Pull Request: https://github.com/apache/activemq-artemis/pull/3846 Artemis-features is failing with some lack of json support: Long form: To solve a clash between javax and jakarta users, I'm simply now removing javax.json by shading javax.json and johnzon into artemis-commons. I pretty much removed every reference to json from the codebase, and everything is just using artemis-commons. However, artemis-features now is not working at all: if you download the branch above, and do this: cd artemis-features mvn install you will get these errors: [ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=artemis-openwire; type=karaf.feature; version=2.20.0.SNAPSHOT; filter:="(&(osgi.identity=artemis-openwire)(type=karaf.feature)(version>=2.20.0.SNAPSHOT))" [caused by: Unable to resolve artemis-openwire/2.20.0.SNAPSHOT: missing requirement [artemis-openwire/2.20.0.SNAPSHOT] osgi.identity; osgi.identity=artemis-core; type=karaf.feature [caused by: Unable to resolve artemis-core/2.20.0.SNAPSHOT: missing requirement [artemis-core/2.20.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.activemq.artemis-server-osgi; type=osgi.bundle; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT: missing requirement [org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.glassfish.json)"]]] [ERROR] Repositories: { [ERROR] file:/Users/clebertsuconic/work/apache/activemq-artemis/artemis-features/target/classes/features.xml [ERROR] mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features [ERROR] mvn:org.apache.karaf.features/enterprise/4.3.3/xml/features [ERROR] mvn:org.apache.karaf.features/framework/4.3.3/xml/features [ERROR] mvn:org.apache.karaf.features/specs/4.3.3/xml/features that i have no idea how to fix it... HELP
I need help with Karaf / Artemis features
If you don't want to read the whole message: TL;DR: I need help with this Pull Request: https://github.com/apache/activemq-artemis/pull/3846 Artemis-features is failing with some lack of json support: Long form: To solve a clash between javax and jakarta users, I'm simply now removing javax.json by shading javax.json and johnzon into artemis-commons. I pretty much removed every reference to json from the codebase, and everything is just using artemis-commons. However, artemis-features now is not working at all: if you download the branch above, and do this: cd artemis-features mvn install you will get these errors: [ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=artemis-openwire; type=karaf.feature; version=2.20.0.SNAPSHOT; filter:="(&(osgi.identity=artemis-openwire)(type=karaf.feature)(version>=2.20.0.SNAPSHOT))" [caused by: Unable to resolve artemis-openwire/2.20.0.SNAPSHOT: missing requirement [artemis-openwire/2.20.0.SNAPSHOT] osgi.identity; osgi.identity=artemis-core; type=karaf.feature [caused by: Unable to resolve artemis-core/2.20.0.SNAPSHOT: missing requirement [artemis-core/2.20.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.activemq.artemis-server-osgi; type=osgi.bundle; version="[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT: missing requirement [org.apache.activemq.artemis-server-osgi/2.20.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.glassfish.json)"]]] [ERROR] Repositories: { [ERROR] file:/Users/clebertsuconic/work/apache/activemq-artemis/artemis-features/target/classes/features.xml [ERROR] mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features [ERROR] mvn:org.apache.karaf.features/enterprise/4.3.3/xml/features [ERROR] mvn:org.apache.karaf.features/framework/4.3.3/xml/features [ERROR] mvn:org.apache.karaf.features/specs/4.3.3/xml/features that i have no idea how to fix it... HELP -- Clebert Suconic
Re: Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ
Hello everyone, Yesterday's example works, here is the stacktrace : Apr 27, 2016 10:39:52 AM org.apache.activemq.artemis.core.deployers.impl.FileConfigurationParser parseMainConfig WARN: AMQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal Apr 27, 2016 10:39:53 AM org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl start INFO: AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=false,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/largemessages,pagingDirectory=data/paging) Apr 27, 2016 10:39:53 AM org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl INFO: AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE Apr 27, 2016 10:39:53 AM org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor start INFO: AMQ221020: Started Acceptor at localhost:61616 for protocols [CORE] Apr 27, 2016 10:39:53 AM org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation run INFO: AMQ221007: Server is now live Apr 27, 2016 10:39:53 AM org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl start INFO: AMQ221001: Apache ActiveMQ Artemis Message Broker version 1.3.0-SNAPSHOT [localhost, nodeID=3ad9edc7-0c4b-11e6-bf5e-60672022829f] [Wed Apr 27 10:39:53 EEST 2016] Servlet for path '/' already defined and no default will be used. However when running the example PostOrder from examples/features/standard/rest/dup-send with http://localhost:61616/queues/jms.queue.orders It seems not communicating to the server and just hangs. By debugging, I found out it hangs in this function : ClientResponse res = request.head(); in private native int socketRead0(FileDescriptor fd, byte b[], int off, int len, int timeout) On the server side, I have no further display. Any idea of what goes wrong and why the server does not respond to the head request? Thanks in advance and have a nice day. Julien D. Alternative email address : julie...@protonmail.ch On 04/26/2016 09:29 PM, Justin Bertram wrote: > I'm not exactly sure why you're getting that exception. I just created a > simple, Mavenized example demonstrating how to create an embedded REST server > here [1]. Try that out. > > > Justin > > [1] > https://github.com/jbertram/activemq-artemis/commit/875b8764aabb13794578c8c436b4cdc527502d59 > > - Original Message - > From: "Julien d" <julie...@iki.fi> > To: dev@activemq.apache.org > Sent: Tuesday, April 26, 2016 12:50:17 PM > Subject: Re: Need help with > org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ > > Here it is : > > /usr/lib/jvm/java-8-openjdk/bin/java -Didea.launcher.port=7533 > -Didea.launcher.bin.path=/usr/share/intellij-idea-ultimate-edition/bin > -Dfile.encoding=UTF-8 -classpath > > /usr/lib/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/home/johnny/IdeaProjects/activemq-artemis-master/artemis-rest/target/classes:/home/johnny/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jaxrs/3.0.16.Final/resteasy-jaxrs-3.0.16.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.2_spec/1.0.0.Final/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar:/home/johnny/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/johnny/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/home/johnny/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/home/johnn
Re: Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ
Thanks a lot! :) Julien D. Alternative email address : julie...@protonmail.ch On 04/26/2016 09:29 PM, Justin Bertram wrote: > I'm not exactly sure why you're getting that exception. I just created a > simple, Mavenized example demonstrating how to create an embedded REST server > here [1]. Try that out. > > > Justin > > [1] > https://github.com/jbertram/activemq-artemis/commit/875b8764aabb13794578c8c436b4cdc527502d59 > > - Original Message - > From: "Julien d" <julie...@iki.fi> > To: dev@activemq.apache.org > Sent: Tuesday, April 26, 2016 12:50:17 PM > Subject: Re: Need help with > org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ > > Here it is : > > /usr/lib/jvm/java-8-openjdk/bin/java -Didea.launcher.port=7533 > -Didea.launcher.bin.path=/usr/share/intellij-idea-ultimate-edition/bin > -Dfile.encoding=UTF-8 -classpath > > /usr/lib/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/home/johnny/IdeaProjects/activemq-artemis-master/artemis-rest/target/classes:/home/johnny/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jaxrs/3.0.16.Final/resteasy-jaxrs-3.0.16.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.2_spec/1.0.0.Final/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar:/home/johnny/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/johnny/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/home/johnny/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/home/johnny/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jaxb-provider/3.0.16.Final/resteasy-jaxb-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jackson-provider/3.0.16.Final/resteasy-jackson-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.12/jackson-core-asl-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.12/jackson-mapper-asl-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.12/jackson-jaxrs-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.12/jackson-xc-1.9.12.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-atom-provider/3.0.16.Final/resteasy-atom-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar:/home/johnny/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.jar:/home/johnny/.m2/repository/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.jar:/home/johnny/.m2/repository/com/sun/istack/istack-commons-runtime/2.16/istack-commons-runtime-2.16.jar:/home/johnny/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.2.12.jar:/home/johnny/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar:/home/johnny/.m2/repository/org/jboss/resteasy/tjws/3.0.16.Final/tjws-3.0.16.Final.jar:/home/johnny/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/johnny/.m2/repository/io/netty/netty-all/4.0.32.Final/netty-all-4.0.32.Final.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-server/1.3.0-SNAPSHOT/artemis-server-1.3.0-20160426.031638-43.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-commons/1.3.0-SNAPSHOT/artemis-commons-1.3.0-20160426.030416-44.jar:/home/johnny/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar:/home/johnny/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/johnny/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar:/home/johnny/.m2/repository/org/apache/activemq/ar
Re: Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ
I'm not exactly sure why you're getting that exception. I just created a simple, Mavenized example demonstrating how to create an embedded REST server here [1]. Try that out. Justin [1] https://github.com/jbertram/activemq-artemis/commit/875b8764aabb13794578c8c436b4cdc527502d59 - Original Message - From: "Julien d" <julie...@iki.fi> To: dev@activemq.apache.org Sent: Tuesday, April 26, 2016 12:50:17 PM Subject: Re: Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ Here it is : /usr/lib/jvm/java-8-openjdk/bin/java -Didea.launcher.port=7533 -Didea.launcher.bin.path=/usr/share/intellij-idea-ultimate-edition/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/home/johnny/IdeaProjects/activemq-artemis-master/artemis-rest/target/classes:/home/johnny/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jaxrs/3.0.16.Final/resteasy-jaxrs-3.0.16.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.2_spec/1.0.0.Final/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/home/johnny/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar:/home/johnny/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar:/home/johnny/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/johnny/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/home/johnny/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/home/johnny/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jaxb-provider/3.0.16.Final/resteasy-jaxb-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-jackson-provider/3.0.16.Final/resteasy-jackson-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.12/jackson-core-asl-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.12/jackson-mapper-asl-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.12/jackson-jaxrs-1.9.12.jar:/home/johnny/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.12/jackson-xc-1.9.12.jar:/home/johnny/.m2/repository/org/jboss/resteasy/resteasy-atom-provider/3.0.16.Final/resteasy-atom-provider-3.0.16.Final.jar:/home/johnny/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar:/home/johnny/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.jar:/home/johnny/.m2/repository/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.jar:/home/johnny/.m2/repository/com/sun/istack/istack-commons-runtime/2.16/istack-commons-runtime-2.16.jar:/home/johnny/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.2.12.jar:/home/johnny/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar:/home/johnny/.m2/repository/org/jboss/resteasy/tjws/3.0.16.Final/tjws-3.0.16.Final.jar:/home/johnny/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/johnny/.m2/repository/io/netty/netty-all/4.0.32.Final/netty-all-4.0.32.Final.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-server/1.3.0-SNAPSHOT/artemis-server-1.3.0-20160426.031638-43.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-commons/1.3.0-SNAPSHOT/artemis-commons-1.3.0-20160426.030416-44.jar:/home/johnny/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar:/home/johnny/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/johnny/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-selector/1.3.0-SNAPSHOT/artemis-selector-1.3.0-20160426.030831-44.jar:/home/johnny/.m2/repository/org/apache/activemq/artemis-journal/1.3.0-SNAPSHOT/artemis-journal-1.3.0-20160426.031147-44.jar:/home/johnny/.m2/repository/org/apache/
Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ
Hi everyone, Sorry for bothering, I am having some troubles working with Artemis, more particularly org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ and I would like to know if someone here could give me a hand please. I did not find this part documented, I could document it after understanding it better. Where should I put the broker.xml ? I have started a project where I have org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ and org.myproject packages in the same directory. At the moment my program is as simple as that since it is my first time working with Artemis : public static void main(String[] args) throws Exception{ EmbeddedRestActiveMQ Restserver = new EmbeddedRestActiveMQ(); Restserver.start(); } Thank you very much in advance, -- Julien D. Alternative email address : julie...@protonmail.ch 0x84AE7709.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Need help on messages getting stuck due to message selector
Hi, I am facing an issue regarding some messages get stuck in the queue. The background of the issue is. 1. We have 2 consumers configured to listen to the same queue. 2. One consumer has a message selector criteria set while the other doesn't. 3. When the messages are pushed into the queue, they basically get shared between the consumers. 4. The consumer which doesn't have the criteria processes the messages assigned to it without any issue. 5. But the consumer that has the selection criteria doesn't process the messages assigned to it due to the message selector condition. Now my question is why the messages ignored by the second consumer (with message selector) don't get reassigned to the first consumer(without selector). Could anyone help me in identifying the reason for it? -- View this message in context: http://activemq.2283324.n4.nabble.com/Need-help-on-messages-getting-stuck-due-to-message-selector-tp3013173p3013173.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Need help on messages getting stuck due to message selector
they should do, can you post your test case? On 26 October 2010 07:06, dayanand dayana...@gmail.com wrote: Hi, I am facing an issue regarding some messages get stuck in the queue. The background of the issue is. 1. We have 2 consumers configured to listen to the same queue. 2. One consumer has a message selector criteria set while the other doesn't. 3. When the messages are pushed into the queue, they basically get shared between the consumers. 4. The consumer which doesn't have the criteria processes the messages assigned to it without any issue. 5. But the consumer that has the selection criteria doesn't process the messages assigned to it due to the message selector condition. Now my question is why the messages ignored by the second consumer (with message selector) don't get reassigned to the first consumer(without selector). Could anyone help me in identifying the reason for it? -- View this message in context: http://activemq.2283324.n4.nabble.com/Need-help-on-messages-getting-stuck-due-to-message-selector-tp3013173p3013173.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. -- http://blog.garytully.com http://fusesource.com
Re: Need help tracking down activemq-cpp core dump on Centos
Thanks. I ran svn diff to extract a patch from the fixes branch, applied it my activemq-cpp-library-3.2.1, and the library is no longer core dumping. When will the next minor point release be out? Devin On Tue, Jul 20, 2010 at 4:10 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 15:52 -0500, Devin Venable wrote: [dvena...@centdev activemq-cpp]$ ./autogen.sh configure.ac:18: error: Autoconf version 2.61 or higher is required configure.ac:18: the top level Is 2.61 strictly required? If I build a newer autoconf it puts into motion many other library upgrades from source, which I'd rather not. I believe it is, but its been so long since I worked on that I can't remember exactly why, pretty sure there are some Autoconf features we are using that only appeared in 2.61, you can always replace the version with what you have installed in configure.ac and see what happens. you can find out what files changed by looking at the svn commit logs on the 3.2.x branch, just run svn log -v -l 4 in the folder where you checked out the code and it will show you the logs. You can use svn diff to generate a patch, just look at the last four commits, that's all that's changed since the 3.2.1 release. Regards Do you know which bug it was that was fixed in the branch? If so it might be easier for me to just generate a patch and use it to build my local activemq-cpp-library-3.2.1 tree. Devin On Tue, Jul 20, 2010 at 3:28 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 15:21 -0500, Devin Venable wrote: Yes, but due to errors when building I had switched gears. I'll give it another go. After building autoconf from src (required version not available as RPM), I ran ./autogen.sh then ./configure in the activemq-cpp-3.2.x/activemq-cpp directory, but got: config.status: error: cannot find input file: `Makefile.in' oh, sorry forgot, first you need to run autogen.sh to generate the autoconf and automake input files, just do: ./autogen.sh Then you should able to build. Devin On Tue, Jul 20, 2010 at 2:35 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html ), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cppactivemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12
Re: Need help tracking down activemq-cpp core dump on Centos
On Wed, 2010-07-21 at 10:39 -0500, Devin Venable wrote: Thanks. I ran svn diff to extract a patch from the fixes branch, applied it my activemq-cpp-library-3.2.1, and the library is no longer core dumping. When will the next minor point release be out? Devin Great, glad it worked out. I was thinking about pushing out another release next week, so with voting and such it would probably be out by end of the week. Regards On Tue, Jul 20, 2010 at 4:10 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 15:52 -0500, Devin Venable wrote: [dvena...@centdev activemq-cpp]$ ./autogen.sh configure.ac:18: error: Autoconf version 2.61 or higher is required configure.ac:18: the top level Is 2.61 strictly required? If I build a newer autoconf it puts into motion many other library upgrades from source, which I'd rather not. I believe it is, but its been so long since I worked on that I can't remember exactly why, pretty sure there are some Autoconf features we are using that only appeared in 2.61, you can always replace the version with what you have installed in configure.ac and see what happens. you can find out what files changed by looking at the svn commit logs on the 3.2.x branch, just run svn log -v -l 4 in the folder where you checked out the code and it will show you the logs. You can use svn diff to generate a patch, just look at the last four commits, that's all that's changed since the 3.2.1 release. Regards Do you know which bug it was that was fixed in the branch? If so it might be easier for me to just generate a patch and use it to build my local activemq-cpp-library-3.2.1 tree. Devin On Tue, Jul 20, 2010 at 3:28 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 15:21 -0500, Devin Venable wrote: Yes, but due to errors when building I had switched gears. I'll give it another go. After building autoconf from src (required version not available as RPM), I ran ./autogen.sh then ./configure in the activemq-cpp-3.2.x/activemq-cpp directory, but got: config.status: error: cannot find input file: `Makefile.in' oh, sorry forgot, first you need to run autogen.sh to generate the autoconf and automake input files, just do: ./autogen.sh Then you should able to build. Devin On Tue, Jul 20, 2010 at 2:35 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html ), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cppactivemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in
Need help tracking down activemq-cpp core dump on Centos
I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #8 0xf7e1dca9 in __static_initialization_and_destruction_0 () from /usr/lib/libactivemq-cpp.so.12 #9 0xf7e1ddeb in global constructors keyed to _ZN5decaf3net11InetAddress13loopbackBytesE () from /usr/lib/libactivemq-cpp.so.12 #10 0xf7e7b896 in __do_global_ctors_aux () from /usr/lib/libactivemq-cpp.so.12 #11 0xf790fd99 in _init () from /usr/lib/libactivemq-cpp.so.12 #12 0x00911223 in call_init () from /lib/ld-linux.so.2 #13 0x00911333 in _dl_init_internal () from /lib/ld-linux.so.2 #14 0x0090384f in _dl_start_user () from /lib/ld-linux.so.2 ldd dist/Debug/GNU-Linux-x86/testproducer linux-gate.so.1 = (0xe000) libactivemq-cpp.so.12 = /usr/lib/libactivemq-cpp.so.12 (0xf7543000) libaprutil-1.so.0 = /usr/lib/libaprutil-1.so.0 (0xf7521000) libapr-1.so.0 = /usr/lib/libapr-1.so.0 (0x00d51000) libuuid.so.1 = /lib/libuuid.so.1 (0x00b07000) librt.so.1 = /lib/librt.so.1 (0x00d46000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x00a7c000) libexpat.so.0 = /lib/libexpat.so.0 (0x00dda000) libssl.so.6 = /lib/libssl.so.6 (0x00ceb000) libcrypto.so.6 = /lib/libcrypto.so.6 (0x00357000) libdl.so.2 = /lib/libdl.so.2 (0x00bbb000) libz.so.1 = /usr/lib/libz.so.1 (0x00bc4000) libpthread.so.0 = /lib/libpthread.so.0 (0x00aae000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x004b) libm.so.6 = /lib/libm.so.6 (0x0032c000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00ac9000) libc.so.6 = /lib/libc.so.6 (0x00922000) /lib/ld-linux.so.2 (0x00903000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x00b1d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00223000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00ad7000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00b67000) libresolv.so.2 = /lib/libresolv.so.2 (0x0049a000) libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x00b8f000) libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x00b9a000) libselinux.so.1 = /lib/libselinux.so.1 (0x00b4d000) libsepol.so.1 = /lib/libsepol.so.1 (0x002e4000) The same testproducer runs fine when building on 32 bit Ubuntu. Is the fact that I'm cross compiling introducing a problem? (Buiding 32 bit on 64 git arch)
Re: Need help tracking down activemq-cpp core dump on Centos
On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp activemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #8 0xf7e1dca9 in __static_initialization_and_destruction_0 () from /usr/lib/libactivemq-cpp.so.12 #9 0xf7e1ddeb in global constructors keyed to _ZN5decaf3net11InetAddress13loopbackBytesE () from /usr/lib/libactivemq-cpp.so.12 #10 0xf7e7b896 in __do_global_ctors_aux () from /usr/lib/libactivemq-cpp.so.12 #11 0xf790fd99 in _init () from /usr/lib/libactivemq-cpp.so.12 #12 0x00911223 in call_init () from /lib/ld-linux.so.2 #13 0x00911333 in _dl_init_internal () from /lib/ld-linux.so.2 #14 0x0090384f in _dl_start_user () from /lib/ld-linux.so.2 ldd dist/Debug/GNU-Linux-x86/testproducer linux-gate.so.1 = (0xe000) libactivemq-cpp.so.12 = /usr/lib/libactivemq-cpp.so.12 (0xf7543000) libaprutil-1.so.0 = /usr/lib/libaprutil-1.so.0 (0xf7521000) libapr-1.so.0 = /usr/lib/libapr-1.so.0 (0x00d51000) libuuid.so.1 = /lib/libuuid.so.1 (0x00b07000) librt.so.1 = /lib/librt.so.1 (0x00d46000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x00a7c000) libexpat.so.0 = /lib/libexpat.so.0 (0x00dda000) libssl.so.6 = /lib/libssl.so.6 (0x00ceb000) libcrypto.so.6 = /lib/libcrypto.so.6 (0x00357000) libdl.so.2 = /lib/libdl.so.2 (0x00bbb000) libz.so.1 = /usr/lib/libz.so.1 (0x00bc4000) libpthread.so.0 = /lib/libpthread.so.0 (0x00aae000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x004b) libm.so.6 = /lib/libm.so.6 (0x0032c000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00ac9000) libc.so.6 = /lib/libc.so.6 (0x00922000) /lib/ld-linux.so.2 (0x00903000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x00b1d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00223000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00ad7000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00b67000) libresolv.so.2 = /lib/libresolv.so.2 (0x0049a000) libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x00b8f000) libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x00b9a000) libselinux.so.1 = /lib/libselinux.so.1 (0x00b4d000) libsepol.so.1 = /lib/libsepol.so.1 (0x002e4000) The same testproducer runs fine when building on 32 bit Ubuntu. Is the fact that I'm cross compiling introducing a problem? (Buiding 32 bit on 64 git arch) -- Tim Bish Open Source Integration: http://fusesource.com ActiveMQ in Action: http://www.manning.com/snyder/ Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/
Re: Need help tracking down activemq-cpp core dump on Centos
Which makes sense...because automake failed... ... picious cache-id, must contain _cv_ to be cached aclocal.m4:4063: _LT_AC_LANG_GCJ_CONFIG is expanded from... aclocal.m4:4015: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from... configure.ac:94: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached src/main/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in ` configure.ac' autoreconf: automake failed with exit status: 1 On Tue, Jul 20, 2010 at 3:21 PM, Devin Venable venable.de...@gmail.comwrote: Yes, but due to errors when building I had switched gears. I'll give it another go. After building autoconf from src (required version not available as RPM), I ran ./autogen.sh then ./configure in the activemq-cpp-3.2.x/activemq-cpp directory, but got: config.status: error: cannot find input file: `Makefile.in' Devin On Tue, Jul 20, 2010 at 2:35 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html ), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cppactivemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #8 0xf7e1dca9 in __static_initialization_and_destruction_0 () from /usr/lib/libactivemq-cpp.so.12 #9 0xf7e1ddeb in global constructors keyed to _ZN5decaf3net11InetAddress13loopbackBytesE () from /usr/lib/libactivemq-cpp.so.12 #10 0xf7e7b896 in __do_global_ctors_aux () from /usr/lib/libactivemq-cpp.so.12 #11 0xf790fd99 in _init () from /usr/lib/libactivemq-cpp.so.12 #12 0x00911223 in call_init () from /lib/ld-linux.so.2 #13 0x00911333 in _dl_init_internal () from /lib/ld-linux.so.2 #14 0x0090384f in _dl_start_user () from /lib/ld-linux.so.2 ldd dist/Debug/GNU-Linux-x86/testproducer linux-gate.so.1 = (0xe000) libactivemq-cpp.so.12 = /usr/lib/libactivemq-cpp.so.12 (0xf7543000) libaprutil-1.so.0 = /usr/lib/libaprutil-1.so.0 (0xf7521000) libapr-1.so.0 = /usr/lib/libapr-1.so.0 (0x00d51000) libuuid.so.1 = /lib/libuuid.so.1 (0x00b07000) librt.so.1 = /lib/librt.so.1 (0x00d46000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x00a7c000) libexpat.so.0 = /lib/libexpat.so.0 (0x00dda000) libssl.so.6 = /lib/libssl.so.6 (0x00ceb000) libcrypto.so.6 = /lib/libcrypto.so.6 (0x00357000) libdl.so.2 = /lib/libdl.so.2 (0x00bbb000) libz.so.1 = /usr/lib/libz.so.1 (0x00bc4000) libpthread.so.0 = /lib/libpthread.so.0 (0x00aae000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x004b) libm.so.6 = /lib/libm.so.6 (0x0032c000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00ac9000) libc.so.6 = /lib/libc.so.6 (0x00922000) /lib/ld-linux.so.2 (0x00903000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2
Re: Need help tracking down activemq-cpp core dump on Centos
On Tue, 2010-07-20 at 15:21 -0500, Devin Venable wrote: Yes, but due to errors when building I had switched gears. I'll give it another go. After building autoconf from src (required version not available as RPM), I ran ./autogen.sh then ./configure in the activemq-cpp-3.2.x/activemq-cpp directory, but got: config.status: error: cannot find input file: `Makefile.in' oh, sorry forgot, first you need to run autogen.sh to generate the autoconf and automake input files, just do: ./autogen.sh Then you should able to build. Devin On Tue, Jul 20, 2010 at 2:35 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html ), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cppactivemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #8 0xf7e1dca9 in __static_initialization_and_destruction_0 () from /usr/lib/libactivemq-cpp.so.12 #9 0xf7e1ddeb in global constructors keyed to _ZN5decaf3net11InetAddress13loopbackBytesE () from /usr/lib/libactivemq-cpp.so.12 #10 0xf7e7b896 in __do_global_ctors_aux () from /usr/lib/libactivemq-cpp.so.12 #11 0xf790fd99 in _init () from /usr/lib/libactivemq-cpp.so.12 #12 0x00911223 in call_init () from /lib/ld-linux.so.2 #13 0x00911333 in _dl_init_internal () from /lib/ld-linux.so.2 #14 0x0090384f in _dl_start_user () from /lib/ld-linux.so.2 ldd dist/Debug/GNU-Linux-x86/testproducer linux-gate.so.1 = (0xe000) libactivemq-cpp.so.12 = /usr/lib/libactivemq-cpp.so.12 (0xf7543000) libaprutil-1.so.0 = /usr/lib/libaprutil-1.so.0 (0xf7521000) libapr-1.so.0 = /usr/lib/libapr-1.so.0 (0x00d51000) libuuid.so.1 = /lib/libuuid.so.1 (0x00b07000) librt.so.1 = /lib/librt.so.1 (0x00d46000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x00a7c000) libexpat.so.0 = /lib/libexpat.so.0 (0x00dda000) libssl.so.6 = /lib/libssl.so.6 (0x00ceb000) libcrypto.so.6 = /lib/libcrypto.so.6 (0x00357000) libdl.so.2 = /lib/libdl.so.2 (0x00bbb000) libz.so.1 = /usr/lib/libz.so.1 (0x00bc4000) libpthread.so.0 = /lib/libpthread.so.0 (0x00aae000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x004b) libm.so.6 = /lib/libm.so.6 (0x0032c000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00ac9000) libc.so.6 = /lib/libc.so.6 (0x00922000) /lib/ld-linux.so.2 (0x00903000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x00b1d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00223000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00ad7000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00b67000) libresolv.so.2 = /lib/libresolv.so.2 (0x0049a000) libkrb5support.so.0 =
Re: Need help tracking down activemq-cpp core dump on Centos
On Tue, 2010-07-20 at 15:52 -0500, Devin Venable wrote: [dvena...@centdev activemq-cpp]$ ./autogen.sh configure.ac:18: error: Autoconf version 2.61 or higher is required configure.ac:18: the top level Is 2.61 strictly required? If I build a newer autoconf it puts into motion many other library upgrades from source, which I'd rather not. I believe it is, but its been so long since I worked on that I can't remember exactly why, pretty sure there are some Autoconf features we are using that only appeared in 2.61, you can always replace the version with what you have installed in configure.ac and see what happens. you can find out what files changed by looking at the svn commit logs on the 3.2.x branch, just run svn log -v -l 4 in the folder where you checked out the code and it will show you the logs. You can use svn diff to generate a patch, just look at the last four commits, that's all that's changed since the 3.2.1 release. Regards Do you know which bug it was that was fixed in the branch? If so it might be easier for me to just generate a patch and use it to build my local activemq-cpp-library-3.2.1 tree. Devin On Tue, Jul 20, 2010 at 3:28 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 15:21 -0500, Devin Venable wrote: Yes, but due to errors when building I had switched gears. I'll give it another go. After building autoconf from src (required version not available as RPM), I ran ./autogen.sh then ./configure in the activemq-cpp-3.2.x/activemq-cpp directory, but got: config.status: error: cannot find input file: `Makefile.in' oh, sorry forgot, first you need to run autogen.sh to generate the autoconf and automake input files, just do: ./autogen.sh Then you should able to build. Devin On Tue, Jul 20, 2010 at 2:35 PM, Timothy Bish tabish...@gmail.com wrote: On Tue, 2010-07-20 at 14:27 -0500, Devin Venable wrote: I've built apr and activemq-cpp on Centos (notes here: http://devinvenable.blogspot.com/2010/07/cross-compile-activemq-cpp-on-centos-5.html ), but I core dump on start up of a tiny test program that links to cms. I've built on two different machines (one a clean Centos 5.4 install) and get the same result. Did you try the code from 3.2.x fixes? Try using the code from the 3.2.x fixes branch, there's been some fixes in there that should resolve this issue, it relates to some static objects that are using APR resources before the init method gets called to startup the APR runtime. https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x just check out the code using svn and build the library from the activemq-cpp directory. svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cppactivemq-cpp-3.2.x cd activemq-cpp-3.2.x ./configure ... make check regards Starting program: /home/dvenable/src/TestProducer/dist/Debug/GNU-Linux-x86/testproducer [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 (gdb) bt #0 0x00d7a4f3 in mutex_hash () from /usr/lib/libapr-1.so.0 #1 0x00d7a532 in apr_atomic_add32 () from /usr/lib/libapr-1.so.0 #2 0xf7e62a9c in decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet() () from /usr/lib/libactivemq-cpp.so.12 #3 0xf79831c6 in decaf::util::concurrent::atomic::AtomicRefCounter::release() () from /usr/lib/libactivemq-cpp.so.12 #4 0xf7e14e7b in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::~ArrayPointer() () from /usr/lib/libactivemq-cpp.so.12 #5 0xf7e1f350 in decaf::lang::ArrayPointerunsigned char, decaf::util::concurrent::atomic::AtomicRefCounter::reset(unsigned char*, int) () from /usr/lib/libactivemq-cpp.so.12 #6 0xf7e1ea11 in decaf::net::InetAddress::InetAddress(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #7 0xf7e1d56c in decaf::net::Inet4Address::Inet4Address(std::basic_stringchar, std::char_traitschar, std::allocatorchar const, unsigned char const*, int) () from /usr/lib/libactivemq-cpp.so.12 #8 0xf7e1dca9 in __static_initialization_and_destruction_0 () from /usr/lib/libactivemq-cpp.so.12 #9 0xf7e1ddeb in global constructors keyed to _ZN5decaf3net11InetAddress13loopbackBytesE () from /usr/lib/libactivemq-cpp.so.12 #10 0xf7e7b896 in __do_global_ctors_aux () from /usr/lib/libactivemq-cpp.so.12 #11 0xf790fd99 in _init () from /usr/lib/libactivemq-cpp.so.12 #12
Need help to take design decision to creation of queues ( programmatically creating and destroying multiple queues )
Hi All, We had a requirement to create a jms queue for each execution. This queue is used for transferring files between two JMS endpoints (one consumer and one producer). We wanted to know whether programmatically creating and destroying multiple queues is a right approach or not. Thanks in Advance Regards, Chakradhar -- View this message in context: http://old.nabble.com/Need-help-to-take-design-decision-to-creation-of-queues-%28-programmatically-creating-and-destroying-multiple-queues-%29-tp26127340p26127340.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Need help to take design decision on programmatically creating and destroying multiple queues
Hi All, We had a requirement to create a jms queue for each execution. This queue is used for transferring files between two JMS endpoints (one consumer and one producer). We wanted to know whether programmatically creating and destroying multiple queues is a right approach or not. Thanks in Advance Regards, Chakradhar -- View this message in context: http://old.nabble.com/Need-help-to-take-design-decision-on-programmatically-creating-and-destroying-multiple-queues-tp26127383p26127383.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Need help to take design decision on programmatically creating and destroying multiple queues
Hi All, We had a requirement to create a jms queue for each execution. This queue is used for transferring files between two JMS endpoints (one consumer and one producer). We wanted to know whether programmatically creating and destroying multiple queues is a right approach or not. Thanks in Advance... Regards, Chakradhar -- View this message in context: http://old.nabble.com/Need-help-to-take-design-decision-on-programmatically-creating-and-destroying-multiple-queues-tp26127408p26127408.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.