[Messaging, JMS & JBossMQ] - org.jboss.mq.SpyJMSException: Cannot authenticate user
by ashish.abrol@gmail.com
Hi
I am trying to connect to JBoss MQ which is running on a remote unix box.
I am simulating a client from a windows machine. I am unable to connect because of a authentication issue. I am not exactly sure what is it that causes it. I am a newbie. Please see the exception below. I would much appreciate if somebody could solve my problem.
Note: I have tried "telnet 1099 and I do get a response back. so I guess there is not firewall issue.
thanks
Ashish
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
at org.jboss.mq.Connection.authenticate(Connection.java:1118)
at org.jboss.mq.Connection.(Connection.java:267)
at org.jboss.mq.Connection.(Connection.java:338)
at org.jboss.mq.SpyConnection.(SpyConnection.java:68)
at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
at JbossSample.runExample(JbossSample.java:104)
at JbossSample.main(JbossSample.java:159)
Caused by: java.net.ConnectException: Connection refused: connect
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157726#4157726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157726
17 years, 10 months
[Messaging, JMS & JBossMQ] - org.jboss.mq.SpyJMSException: Cannot authenticate user
by ashish.abrol@gmail.com
Hi
I am trying to connect to JBoss MQ which is running on a remote unix box.
I am simulating a client from a windows machine. I am unable to connect because of a authentication issue. I am not exactly sure what is it that causes it. I am a newbie. Please see the exception below. I would much appreciate if somebody could solve my problem.
Note: I have tried "telnet 1099 and I do get a response back. so I guess there is not firewall issue.
thanks
Ashish
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
at org.jboss.mq.Connection.authenticate(Connection.java:1118)
at org.jboss.mq.Connection.(Connection.java:267)
at org.jboss.mq.Connection.(Connection.java:338)
at org.jboss.mq.SpyConnection.(SpyConnection.java:68)
at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
at JbossSample.runExample(JbossSample.java:104)
at JbossSample.main(JbossSample.java:159)
Caused by: java.net.ConnectException: Connection refused: connect
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157723#4157723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157723
17 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Laizy load the Collection
by wilfried.deguil
Hello,
I'm using jBoss 4.2.2.GA and EJB3 with JPA.
I have this entity
public class Person {
private Collection geveRoles;
...
...
@ManyToMany(mapped="persons")
public Collection getGeveRoles() {
return geveRoles;
}
}
and another entity :
public class GeveRole {
private Collection persons
...
...
@ManyToMany
@JoinTable(name="EJB_GEVE_PERSONGEVEROLE" , joinColumns = @JoinColumn(name="personId",referencedColumnName="Id"),
inverseJoinColumn = @JoinColumn(name="geveRoleId",referencedColumnName="Id"))
public Collection getPerson() {
return persons;
}
}
So, when in my web application I invoke this :
RoleList = (List) person.getGeveRoles();
The jboss console displays :
failed to lazily initialize a collection of role: fr.horoquartz.core.entity.Person.geveRoles, no session or session was closed
Thanks in advance for your help
Please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157707#4157707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157707
17 years, 10 months