[JBossCache] - Exception in thread "main" java.lang.IllegalStateException:
by bahata
Hi
I am trying to create a cluster of replicated pojo caches.
My programming logic is:
The first application instance would start a cache and check whether there is any object under a node (say "datamodel" node) . If it does not find any object, it would conclude that it is the first cache and would attach a complex object datamodel under datamodel node. All subsequent instances would find the object under the node after starting their own caches with the same cluster name, and so would not attach the object again.
Now sometimes while running the application instance (from eclipse / tomcat)
I am getting the error
PojoReference.incrementRefCount(): source fqn ... is already present.
Sometimes the error is not coming and everything is going through.
My object datamodel is a complex object with all the other objects needed in the application stored as its field members in collection class hash set.
I am attaching the object only once.
Kindly help. It has become a road block for my project.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135546#4135546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135546
18 years, 1 month
[JBoss Messaging] - JMS client in a applet
by luca.xlb
Hi.
I'm trying to make an applet communicate with jboss messaging.
The applet is signed and all jars it use are signed.
When I try to create the queue connection, i get the following exception
| org.jboss.jms.exception.MessagingJMSException: Failed to invoke
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
| at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
| at it.necsy.voip.impl.message.JmsSenderImpl$1.run(JmsSenderImpl.java:73)
| at java.security.AccessController.doPrivileged(Native Method)
| at it.necsy.voip.impl.message.JmsSenderImpl.connect(JmsSenderImpl.java:69)
| at it.necsy.voip.impl.message.MessageSender.connect(MessageSender.java:61)
| at it.necsy.voip.impl.message.MessageSender.access$0(MessageSender.java:56)
| at it.necsy.voip.impl.message.MessageSender$InitTimerTask.run(MessageSender.java:163)
| at java.util.TimerThread.mainLoop(Unknown Source)
| at java.util.TimerThread.run(Unknown Source)
| Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission legacyParsing read)
| at java.security.AccessControlContext.checkPermission(Unknown Source)
| at java.security.AccessController.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
| at java.lang.System.getProperty(Unknown Source)
| at org.jboss.remoting.InvokerLocator.parse(InvokerLocator.java:203)
| at org.jboss.remoting.InvokerLocator.<init>(InvokerLocator.java:193)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.<init>(JMSRemotingConnection.java:259)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:152)
| ... 16 more
|
How can I fix it?
Luca
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135541#4135541
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135541
18 years, 1 month
[EJB 3.0] - NamedNativeQuery (Pure native scalar queries are not yet sup
by Ceene
Hi
I have a little problem again. I try to use a EntityBean with a "NamedNativeQuery" but if i put it in the deploy-File of JBoss an Error pop up.
| 08:38:00,796 WARN [ServiceController] Problem starting service persistence.units:jar=LoginBean.jar,unitName=tcdb
| org.hibernate.cfg.NotYetImplementedException: Pure native scalar queries are not yet supported
| at org.hibernate.cfg.annotations.QueryBinder.bindNativeQuery(QueryBinder.java:120)
| ........
|
My EntityBean looks like this
| package tcejb;
|
| import javax.persistence.*;
|
| @Entity
| @NamedNativeQuery
| (
| name= "LOV_Rights.findRights",
| query= "select LOV_RT_RIGHT_CLASS, LOV_RT_RIGHT_READ, LOV_RT_RIGHT_CONFIRM, " +
| "LOV_RT_RIGHT_UPDATE, LOV_RT_RIGHT_NEW, LOV_RT_RIGHT_EXCL_REASON " +
| "from LOV_USER,LOV_USER_RIGHT,LOV_RIGHT_TYP " +
| "where LOV_USER.LOV_USR_USER = LOV_USER_RIGHT.LOV_URT_USER " +
| "and LOV_USER_RIGHT.LOV_URT_RIGHT_RULE_SIGN = LOV_RIGHT_TYP.LOV_RT_RIGHT_RULE_SIGN " +
| "and LOV_USER.LOV_USR_STATUS_SIGN = 'A' " +
| "and LOV_USER_RIGHT.LOV_URT_STATUS_SIGN = 'A' " +
| "and LOV_USER.LOV_USR_USER = :name"
| )
| @Table(name="LOV_USER")
| @SecondaryTables({
| @SecondaryTable(name="LOV_USER_RIGHT"),
| @SecondaryTable(name="LOV_RIGHT_TYP")
| })
| public class LOV_Rights implements java.io.Serializable {
|
| private static final long serialVersionUID = 1;
|
| private int lov_rt_right_class;
| private String lov_rt_right_read;
| private String lov_rt_right_confirm;
| private String lov_rt_right_update;
| private String lov_rt_right_new;
| private String lov_rt_right_excel_reason;
|
| @Column(name="LOV_RIGHT_CLASS", table="LOV_RIGHT_TYP")
| public int getlov_rt_right_class() {return lov_rt_right_class;}
| public void setlov_rt_right_class(int right_class) {this.lov_rt_right_class = right_class;}
|
| @Column(name="LOV_RT_RIGHT_READ", table="LOV_RIGHT_TYP")
| public String getlov_rt_right_read() {return lov_rt_right_read;}
| public void setlov_rt_right_read(String right_read) {this.lov_rt_right_read = right_read;}
|
| @Column(name="LOV_RT_RIGHT_CONFIRM", table="LOV_RIGHT_TYP")
| public String getlov_rt_right_confirm() {return lov_rt_right_confirm;}
| public void setlov_rt_right_confirm(String right_confirm) {this.lov_rt_right_confirm = right_confirm;}
|
| @Column(name="LOV_RT_RIGHT_UPDATE", table = "LOV_RIGHT_TYP")
| public String getlov_rt_right_update() {return lov_rt_right_update;}
| public void setlov_rt_right_update(String right_update) {this.lov_rt_right_update = right_update;}
|
| @Column(name="LOV_RT_RIGHT_NEW", table="LOV_RIGHT_TYP")
| public String getlov_rt_right_new() {return lov_rt_right_new;}
| public void setlov_rt_right_new(String right_new) {this.lov_rt_right_new = right_new;}
|
| @Column(name="LOV_RT_RIGHT_EXCEL_REASON", table="LOV_RIGHT_TYP")
| public String getlov_rt_right_excel_reason() {return lov_rt_right_excel_reason;}
| public void setlov_rt_right_excel_reason(String right_excel_reason) {this.lov_rt_right_excel_reason = right_excel_reason;}
|
|
| }
|
What should i do that the Query will be suportet?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135535#4135535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135535
18 years, 1 month