[Messaging, JMS & JBossMQ] - Re: java.lang.ClassCastException
by adrian@jboss.org
I don't know about frustrated, but you're getting very confused. :-)
And it is very difficult to help when you post "random"/incomplete information.
Normally, I'd ignore this post as unanswerable, instead I'm going to *guess*
what you problem is.
Posting wrong/irrelevant information is almost certainly a sign that you don't know
what you doing and that you should revert to the examples in the documentation
for comparison.
1) Always show full stacktraces (I've got no idea where your NameNotFound occurs)
2) Why do you show mdb config and then talk about client code?
3) The JBossMQ connnection factories are bound at "ConnectionFactory"
by default. If you want to alias this then look at deploy/jms/uil2-service.xml
which contains some different types of jndi aliases.
Anyway, your original problem is resolved. This is really a JNDI question not a
JMS question (like 50% of the questions in the forum it is offtopic).
If you don't understand how to configure/use JNDI then you've got no chance.
FAQ (sign!)
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsefulRoutines
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043125#4043125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043125
18 years, 12 months
[JBoss jBPM] - problem in retrieving multiple actorIds
by naseem.k
Hi,
I have a process definition where I have a fork. From that fork, there are two task nodes, each task node is having a task. I have already assigned task1 and task 2 to say bert and grover respectively by swimlanes.
Now In the browser, I am getting message....
anonymous wrote : New tasks have been assigned to: null, null
I checked the source code of TaskBean.
| if (assignmentLogs.size() == 1) {
| TaskAssignLog taskAssignLog = (TaskAssignLog) assignmentLogs.get(0);
|
| JsfHelper.addMessage("A new task has been assigned to '" + taskAssignLog.getTaskNewActorId() + "'");
|
| } else if (assignmentLogs.size() > 1) {
| String msg = "New tasks have been assigned to: ";
| Iterator iter = assignmentLogs.iterator();
|
| while (iter.hasNext()) {
| TaskAssignLog taskAssignLog = (TaskAssignLog) iter.next();
| msg += taskAssignLog.getActorId();
| if (iter.hasNext())
| msg += ", ";
| }
| msg += ".";
| JsfHelper.addMessage(msg);
| }
|
I found that when task node is just one, then its working fine. Problem I am facing is when there are two task nodes each task is assigned to an actor, then I am getting null, null. It means else part is not working correctly.
Can anyone tell me what is the reason?
Naseem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043122#4043122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043122
18 years, 12 months
[Beginners Corner] - CommunicationException
by kuvera
Until now I tested my EJB's from localhost, but as soon as I change localhost to a remote address I get this:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 192.168.1.2:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 192.168.1.2:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.1.2:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
The address can be a local IP, internet IP or "no-ip" address, it won't work, only localhost works.
Here's what I did:
- allowed TCP ports 1098,1099,4444 in firewall software
- allowed the same ports in router port forwarding
- modified jndi.properties:
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.provider.url=jnp://192.168.1.2:1099
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
|
What's wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043121#4043121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043121
18 years, 12 months
[Installation, Configuration & Deployment] - JBoss behind firewall & JMS issues
by NickDeGraeve
We have a JBoss server on a machine on the local LAN and it is separated from the Internet by a router/firewall.
On the router following ports are forwarded to the IP address of the JBoss server: 1098, 1099, 4444, 8080 & 8093.
When our client application tries to create a topic connection it times out.
Any idea on what is configured incorrectly?
Stacktrace:com.fpc.nokeos.core.common.exceptions.NokeosRuntimeException: Er is een systeem fout opgetreden.<br>Gelieve de NoKeossysteemadministrator te contacteren.
| at com.fpc.nokeos.core.common.jms.ConnectionFactory.<clinit>(ConnectionFactory.java:34)
| ... 14 more
| Caused by: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException : Connection timed out: connect)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
| at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:63)
| at org.jboss.mq.Connection.authenticate (Connection.java:1069)
| at org.jboss.mq.Connection.<init>(Connection.java:252)
| at org.jboss.mq.Connection.<init>(Connection.java:323)
| at org.jboss.mq.SpyConnection.<init>(SpyConnection.java :116)
| at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
| at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:118)
| at com.fpc.nokeos.core.common.jms.ConnectionFactory .<clinit>(ConnectionFactory.java:31)
| ... 14 more
| Caused by: java.net.ConnectException: Connection timed out: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect (Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.SocksSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect (Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at javax.net.DefaultSocketFactory.createSocket (Unknown Source)
| at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:670)
| at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:558)
| at org.jboss.mq.il.uil2.UILServerIL.authenticate (UILServerIL.java:360)
| at org.jboss.mq.Connection.authenticate(Connection.java:1065)
| ... 20 more
The code fragment where the exception occurs:20 public class ConnectionFactory {
| 21
| 22
| 23 private static Context jndiContext;
| 24 private static TopicConnectionFactory topicConnFactory;
| 25 private static TopicConnection topicConnection;
| 26
| 27 static {
| 28 try {
| 29 jndiContext = new InitialContext();
| 30 topicConnFactory = (TopicConnectionFactory) jndiContext.lookup(NokeosConstants.TOPICCONNFAC);
| 31 topicConnection = topicConnFactory.createTopicConnection();
| 32 topicConnection.start();
| 33 } catch (Throwable t) {
| 34 throw new NokeosRuntimeException(ExceptionId.SYSTEM_ERROR, ExceptionSeverity.ERROR, t, (Object[]) null);
| 35 }
| 36 }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043120#4043120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043120
18 years, 12 months
[JBoss Portal] - Re: How do I utilize the DynaRenderer in portal2.6?
by FredF
After some analyzing it turns out that the positions of the dragged windows are stored persistently into portal database after all. It is not the DynaAjaxServlet that is requested upon DnD from the client. It is an AjaxCommandFactory that is set up and the PortalServlet is recieving the request. Ok. So basically what I need to do is enable the DynaRenderSet not only for the dashboard context but for any page visited. I have debugged the portal "theme module" for a while now but I am having trouble finding where it is decided if dynarenderer or divrenderer should be used for rendering the regions and thereby add the aftersought tag in the resulting html.
Which object and when is it set which dynarenderer will be used?
Is it as early as in the line (RegionTagHandler.java)
| JSPRendererContext renderContext = (JSPRendererContext)request.getAttribute(LayoutConstants.ATTR_RENDERCONTEXT);
Roy Russo or Martin Holzner, can you give me some input on this?
(maybe this thread should be moved to the development forum?)
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043118#4043118
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043118
18 years, 12 months