Correctly setting base href on reverse proxy

2018-12-06 Thread Frank Michael
Dear Community,
my team is looking for a solution to access the Artemis Console behind an 
Apache Server.
It should be accessible via: http://www.example.com/path1/path2/artemis/console
We noticed the in the console.war, in *apache-artemis/web/console.war* the 
packages *index.html* is hardcoded to take the first 2 elements split by '/' 
characters.Here is the script executed in the ** of the mentioned 
index.html:==    var base = window.location.pathname.split('/', 
2)[1];    if (base == "")        { document.write(""); }    
else        { document.write(""); 
}==
Is there a way to make the basepath configurable via a config file, such that 
the console can be set up for external routing AND use a /path1/path2/ layout?
RegardsMichael

ActiveMQ Connection Closed when perform second call createTopicSession()

2018-12-06 Thread Franco Ng
I am using JBoss EAP 7.1.5 + ActiveMQ 5.15.8, I have deployed ActiveMQ
Resource Adapter to JBoss and set following configuration.  First initial
connection is OK and can send JMS message.  Thereafter, throw "The
Connection is closed" Exception during call createTopicSession().  Please
help as I try many different configurations but does not work except setting
Interleaving to "true", however, XA tx does not work if Interleaving is turn
on.*Jboss Configuration*
   
false   

00   
2000false   
AllIdleConnectionsfalse 
  
false   

30  
 
falsetrue   


adsradsr

   
*Exception*Caused by: javax.jms.IllegalStateException: The Connection is
closedat
org.apache.activemq.ra.ManagedConnectionProxy.getConnection(ManagedConnectionProxy.java:98)
   
at
org.apache.activemq.ra.ManagedConnectionProxy.createSessionProxy(ManagedConnectionProxy.java:124)
   
at
org.apache.activemq.ra.ManagedConnectionProxy.createTopicSession(ManagedConnectionProxy.java:167)
   
at
com.shkco.jaf.platform.message.TopicServiceManager.createSession(TopicServiceManager.java:162)



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Default Behavior for Colocated Backup Restart

2018-12-06 Thread spyle376
What is the expected behavior of a colocated backup when its host broker is
stopped and started?

Currently I have Broker1 and Broker2 backed up by Backup1 and Backup2 which
are colocated on the opposite broker.
Something like this:

Broker 1Broker 2
 ||
 ||
Backup 2  Backup 1

If I shut down Broker2 my Backup2 goes active just fine, and when Broker2
comes back up Backup2 will go inactive as expected.

However when Broker2 comes back up Backup1 is gone. I understand that
Broker1 won't attempt to build another backup to avoid a split brain problem
in the event of network isolation, but I would expect the colocated backup
to come back when Broker2 comes back online.

I'm not sure if I have something misconfigured or if Artemis doesn't support
persistent colocated backups currently.

I've seen a couple similar questions asked but no real answers given, the
closest being  ARTEMIS-2165
  

For reference my HA policy is below, any help or pointers would be greatly
appreciated.

  
 

   100
   -1
  
2000
   1
   true
   
  true
   
   
  true
  false
   

 
  



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Advisory is off, but "User admin is not authorized to read from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic" while publishing a message to a queue from admin console.

2018-12-06 Thread Yury

Hi dear ActiveMQ community.

I have ActiveMQ of version 5.13.2 running with 
"advisorySupport="false"". All the clients have "watchTopicAdvisories" 
set to false in the connection factory. When I log into ActiveMQ admin 
console, there is no queue "ActiveMQ.Advisory.TempQueue" in the list of 
queues, as well as there is no topic "ActiveMQ.Advisory.TempTopic" in 
the list of topics.


Nevertheless, every time I publish a message to a queue from admin 
console, I'm getting and error "Exception occurred while processing this 
request, check the log for more information!" and I see the following 
exception when I look in the logs:


2018-12-06 12:13:14,073 | WARN  | Security Error occurred on 
connection to: vm://localhost#32, User admin is not authorized to read 
from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic | 
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ 
VMTransport: vm://localhost#33-1
2018-12-06 12:13:14,074 | WARN  |  | 
org.eclipse.jetty.servlet.ServletHandler | qtp387410712-14674
org.springframework.web.util.NestedServletException: Request processing 
failed; nested exception is javax.jms.JMSSecurityException: User admin 
is not authorized to read from: 
ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic
    at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:977)[spring-webmvc-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:867)[spring-webmvc-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)[tomcat-servlet-api-8.0.24.jar:]


...


The funny thing is that my Spring-based service is able to publish a 
message without issues. The issue is only seen when using web-console.


I searched a lot, but could not find similar issues... Would anyone know 
how can I avoid that?


Thank you in advance!



Advisory is off, but "User admin is not authorized to read from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic" while publishing a message to a queue from admin console.

2018-12-06 Thread Yury
Hi dear ActiveMQ community.

I have ActiveMQ of version 5.13.2 running with "advisorySupport="false"".
All the clients have "watchTopicAdvisories" set to false in the connection
factory. When I log into ActiveMQ admin console, there is no queue
"ActiveMQ.Advisory.TempQueue" in the list of queues, as well as there is no
topic "ActiveMQ.Advisory.TempTopic" in the list of topics.

Nevertheless, every time I publish a message to a queue from admin console,
I'm getting and error "Exception occurred while processing this request,
check the log for more information!" and I see the following exception when
I look in the logs:



The funny thing is that my Spring-based service is able to publish a message
without issues. The issue is only seen when using web-console.

I searched a lot, but could not find similar issues... Would anyone know how
can I avoid that?

Thank you in advance!



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Advisory is off, but "User admin is not authorized to read from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic" while publishing a message to a queue from admin console.

2018-12-06 Thread Yury
Hi dear ActiveMQ community.

I have ActiveMQ of version 5.13.2 running with "advisorySupport="false"".
All the clients have "watchTopicAdvisories" set to false in the connection
factory. When I log into ActiveMQ admin console, there is no queue
"ActiveMQ.Advisory.TempQueue" in the list of queues, as well as there is no
topic "ActiveMQ.Advisory.TempTopic" in the list of topics.

Nevertheless, every time I publish a message to a queue from admin console,
I'm getting and error "Exception occurred while processing this request,
check the log for more information!" and I see the following exception when
I look in the logs:



The funny thing is that my Spring-based service is able to publish a message
without issues. The issue is only seen when using web-console.

I searched a lot, but could not find similar issues... Would anyone know how
can I avoid that?

Thank you in advance!



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Advisory is off, but "User admin is not authorized to read from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic" while publishing a message to a queue from admin console.

2018-12-06 Thread Yury

Hi dear ActiveMQ community.

I have ActiveMQ of version 5.13.2 running with 
"advisorySupport="false"". All the clients have "watchTopicAdvisories" 
set to false in the connection factory. When I log into ActiveMQ admin 
console, there is no queue "ActiveMQ.Advisory.TempQueue" in the list of 
queues, as well as there is no topic "ActiveMQ.Advisory.TempTopic" in 
the list of topics.


Nevertheless, every time I publish a message to a queue from admin 
console, I'm getting and error "Exception occurred while processing this 
request, check the log for more information!" and I see the following 
exception when I look in the logs:


2018-12-06 12:13:14,073 | WARN  | Security Error occurred on 
connection to: vm://localhost#32, User admin is not authorized to read 
from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic | 
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ 
VMTransport: vm://localhost#33-1
2018-12-06 12:13:14,074 | WARN  |  | 
org.eclipse.jetty.servlet.ServletHandler | qtp387410712-14674
org.springframework.web.util.NestedServletException: Request processing 
failed; nested exception is javax.jms.JMSSecurityException: User admin 
is not authorized to read from: 
ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic
    at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:977)[spring-webmvc-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:867)[spring-webmvc-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)[tomcat-servlet-api-8.0.24.jar:]


...


The funny thing is that my Spring-based service is able to publish a 
message without issues. The issue is only seen when using web-console.


I searched a lot, but could not find similar issues... Would anyone know 
how can I avoid that?


Thank you in advance!

P.S.: Sorry about multiple tries to post this message, it's because the 
log was not visible. All the previous copies were deleted.




Re: Advisory is off, but "User admin is not authorized to read from: ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic" while publishing a message to a queue from admin console.

2018-12-06 Thread Yury
Making "admin" being able to read/write from/to any queue/topic solves the
issue:




Although, I'm still surprised, because I don't see a queue named
"ActiveMQ.Advisory.TempQueue" and a topic named
"ActiveMQ.Advisory.TempTopic" in my instance, plus advisories are turned
off... So really don't understand why this error was occurring. If someone
knows, please share.

Thank you.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Unexpected exception on asyncDispatch

2018-12-06 Thread prbartlett
Anyone understand this message and if it needs to be addressed: 
Unexpected exception on asyncDispatch:



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Transport Connection to: tcp://150.1.1.1:49038 failed: java.io.IOException: Frame size of 416 MB larger than max allowed 100 MB

2018-12-06 Thread prbartlett
Anyone know how to respond to the following message (or should I just ignore
it): Transport Connection to: tcp://150.1.1.1:49038 failed:
java.io.IOException: Frame size of 416 MB larger than max allowed 100 MB 



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Re: ActiveMQ-5.11 leveldb error : "java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.leveldbjni.JniDBFactory "

2018-12-06 Thread sandeepatmca
Hi 
Did you got any solution for this issue. Even I am getting the same error.
Broker throws below error and goes shutdown:

Could not load factory: org.fusesource.leveldbjni.JniDBFactory due to:
java.lang.NoClassDefFoundError: C ould not
initialize class org.fusesource.leveldbjni.JniDBFactory 




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html