[Messaging, JMS & JBossMQ] - error: invalid user or password for JMS
by sagimann
Hi,
I'm using a 3rd party JMS (Tibco EMS 4.4.1) and have followed the guidelines to integrate it with JBoss 4.0.1sp3. The problem is I don't know how to specify the usr/pwd so that JBoss could connect to Tibco EMS (the user/pwd were defined in Tibco). I keep getting (for the DLQ):
javax.jms.JMSException: Error creating the dlq connection: Not permitted: invalid name or password
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:166)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:557)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:813)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1323)
at java.lang.Thread.run(Thread.java:534)
There was a thread about a similar error:
http://www.jboss.com/index.html?module=bb&op=viewforum&f=48
But I didn't quite understand why there are so many places that usr/pwd can be specified, and what is their purpose. Can anyone pls assist in setting a user/pwd in the right place within JBoss' configuration?
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065744#4065744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065744
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Hibernate 3/Spring DAO objects and Spring Http Remotly throw
by J0Ke
Im using Hibernate 3
and have Spring Dao objects using getHibernateTemplate().
the problem is when i try to call findAll() method of a DAO that return objects which have Sets of related Objects from child tables. i get :
org.springframework.remoting.RemoteAccessException: Cannot access HTTP invoker remote service at [http://localhost:8080/DiplomnaHibernate/remoting/SubjectauthorityDAO]; nested exception is java.io.InvalidClassException: org.hibernate.collection.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = 7602608801868099635, local class serialVersionUID = -5723701046347946317
Caused by: java.io.InvalidClassException: org.hibernate.collection.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = 7602608801868099635, local class serialVersionUID = -5723701046347946317
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at :
ApplicationContext springContext = new ClassPathXmlApplicationContext("beans.xml");
SubjectAutorityBean relSubjectsBean=(SubjectAutorityBean) springContext.getBean("subjectAuthorityDAO");
List subjects=relSubjectsBean.getDao().findAll();
if i make relSubjectsBean.save(......); the save works but findAll not work
if i have a plain table with a dao bean not related to anythink it works
I have :
the Proxy :
and :
package org.pu.spring;
import org.joke.orm.ISubjectauthorityDAO;
public class SubjectAutorityBean {
ISubjectauthorityDAO dao;
public ISubjectauthorityDAO getDao() {
return dao;
}
public void setDao(ISubjectauthorityDAO dao) {
this.dao = dao;
}
}
and at the server side (The DAO ) :
package org.joke.orm;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
/**
* Data access object (DAO) for domain model class Subjectauthority.
*
* @see org.joke.orm.Subjectauthority
* @author MyEclipse Persistence Tools
*/
public class SubjectauthorityDAO extends HibernateDaoSupport implements ISubjectauthorityDAO,Serializable
{
private static final Log log = LogFactory.getLog(SubjectauthorityDAO.class);
protected void initDao()
{
// do nothing
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#save(org.joke.orm.Subjectauthority)
*/
public void save(Subjectauthority transientInstance)
{
log.debug("saving Subjectauthority instance");
try
{
getHibernateTemplate().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re)
{
log.error("save failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#delete(org.joke.orm.Subjectauthority)
*/
public void delete(Subjectauthority persistentInstance)
{
log.debug("deleting Subjectauthority instance");
try
{
getHibernateTemplate().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re)
{
log.error("delete failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findById(java.lang.Integer)
*/
public Subjectauthority findById(java.lang.Integer id)
{
log.debug("getting Subjectauthority instance with id: " + id);
try
{
Subjectauthority instance = (Subjectauthority) getHibernateTemplate().get("org.joke.orm.Subjectauthority", id);
return instance;
}
catch (RuntimeException re)
{
log.error("get failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findByExample(org.joke.orm.Subjectauthority)
*/
public List findByExample(Subjectauthority instance)
{
log.debug("finding Subjectauthority instance by example");
try
{
List results = getHibernateTemplate().findByExample(instance);
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re)
{
log.error("find by example failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findByProperty(java.lang.String, java.lang.Object)
*/
public List findByProperty(String propertyName, Object value)
{
log.debug("finding Subjectauthority instance with property: " + propertyName + ", value: " + value);
try
{
String queryString = "from Subjectauthority as model where model." + propertyName + "= ?";
return getHibernateTemplate().find(queryString, value);
}
catch (RuntimeException re)
{
log.error("find by property name failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findByRecordType(java.lang.Object)
*/
public List findByRecordType(Object recordType)
{
return findByProperty(RECORD_TYPE, recordType);
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findByNote(java.lang.Object)
*/
public List findByNote(Object note)
{
return findByProperty(NOTE, note);
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#findAll()
*/
public List findAll()
{
log.debug("finding all Subjectauthority instances");
try
{
String queryString = "from Subjectauthority";
return getHibernateTemplate().find(queryString);
}
catch (RuntimeException re)
{
log.error("find all failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#merge(org.joke.orm.Subjectauthority)
*/
public Subjectauthority merge(Subjectauthority detachedInstance)
{
log.debug("merging Subjectauthority instance");
try
{
Subjectauthority result = (Subjectauthority) getHibernateTemplate().merge(detachedInstance);
log.debug("merge successful");
return result;
}
catch (RuntimeException re)
{
log.error("merge failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#attachDirty(org.joke.orm.Subjectauthority)
*/
public void attachDirty(Subjectauthority instance)
{
log.debug("attaching dirty Subjectauthority instance");
try
{
getHibernateTemplate().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re)
{
log.error("attach failed", re);
throw re;
}
}
/* (non-Javadoc)
* @see org.joke.orm.ISubjectauthorityDAO#attachClean(org.joke.orm.Subjectauthority)
*/
public void attachClean(Subjectauthority instance)
{
log.debug("attaching clean Subjectauthority instance");
try
{
getHibernateTemplate().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re)
{
log.error("attach failed", re);
throw re;
}
}
public static ISubjectauthorityDAO getFromApplicationContext(ApplicationContext ctx)
{
return (ISubjectauthorityDAO) ctx.getBean("SubjectauthorityDAO");
}
}
the hibernate mapping:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<one-to-many class="org.joke.orm.Subjectvariantnames" />
<one-to-many class="org.joke.orm.Subjectdates" />
<one-to-many class="org.joke.orm.Broadercontexts" />
<one-to-many class="org.joke.orm.Subjectalternatenames" />
<column name="related_subject_id" not-null="true" />
<one-to-many class="org.joke.orm.Relatedsubjects" />
<column name="subject_id" not-null="true" />
<one-to-many class="org.joke.orm.Relatedsubjecttogeographicplaces" />
<column name="subject_id" not-null="true" />
<one-to-many class="org.joke.orm.Relatedsubjectopersoncorpbody" />
<one-to-many class="org.joke.orm.Sources" />
<column name="subject_id" not-null="true" />
<one-to-many class="org.joke.orm.Relatedsubjects" />
<column name="subject_id" not-null="true" />
<one-to-many class="org.joke.orm.Subjecttoconcept" />
<one-to-many class="org.joke.orm.Subjectprefferednames" />
</hibernate-mapping>
the server-bean xml :
WHEN I TRY to get this bean LOCAL it works when i try to get it remotly - doesnt work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065743#4065743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065743
18Â years, 10Â months
[Messaging, JMS & JBossMQ] - Re: High Availability
by adrianï¼ jboss.org
"tsengden" wrote : I basically modified the hsqldb-jdbc-state-service.xml to use the MSSQL 2005.
|
Posting the configuration file is obviously irrelevant to getting an answer
to this question don't you think?
anonymous wrote :
| org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. Message recovery may not be accurate; - nested thro
| wable: (com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.)
| at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:495)
|
The error message is coming from the persistence manager not the state manager
(really its from MSSQL) and it says you've broken the SQL syntax.
QUESTION:
If you look at "READ THIS FIRST" at the top of this forum it tells you there are example
known to work configurations in docs/examples/jms
Is that difficult to understand/find or did you just not "READ THIS FIRST"?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065740#4065740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065740
18Â years, 10Â months
[Clustering/JBoss] - Re: ServiceLocator and caching home interfaces in a cluster.
by JerryGauth
I can advise about HA-JNDI. If you use the provider url of localhost:1100, your context will be associated with HA-JNDI. If you then lookup objects via that context, the lookup will utilize HA-JNDI. If you bind something using that context, the binding will be stored in HA-JNDI and replicated throughout the cluster.
Note that all JNDI bindings can be listed using the JNDIView service. From the JMX Console, select service=JNDIView and then invoke either the list( ) or listXML( ) methods. The output will display all of your JNDI bindings. The last section of the output shows HA-JNDI bindings; anything listed here is stored in HA-JNDI and replicated on all nodes.
HA-JNDI will successfully lookup any JNDI binding, regardless of which node has the binding. Standard JNDI will only successfully lookup any JNDI (not HA-JNDI) binding on the node associated with the lookup request.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065738#4065738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065738
18Â years, 10Â months