[JBoss Messaging] - IBM MQ JCA Connector - error
by dboeckli
I get following errors from time to time:
2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.WSMQQueueConnectionFactory] (WorkManager(2)-20064:) [28/08/08 4:08:39:194 CEST.0] WorkManager(2)-20064 MQJCA4004:Message delivery to an MDB failed. See the linked exception for details.
| 2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.WSMQQueueConnectionFactory] (WorkManager(2)-20064:) java.lang.IllegalStateException: Multiple message delivery between before and after delivery is not allowed for message endpoint TPFlogMDB
| 2008-08-28 04:08:39,194 74925630 INFO [com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.WSMQQueueConnectionFactory] (WorkManager(2)-20064:) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:247)
|
Config:
- JBOSS 4.2.1
- IBM MQ-Connector Version: 6.0.2.1
Am I here at the right place or should i ask the JCA-connector owner (IBM)
Many Thanks
Dominique
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173684#4173684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173684
17 years, 7 months
[Installation, Configuration & DEPLOYMENT] - Calling a other Webservice over JWSDP cause Classcastexcepti
by otaku
Our Server:
JBoss 4.2.2
JBossWS 3.0.3
Sun-jdk 1.6 Update 7
lib/endorsed:
jaxb-api.jar
jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
jbossws-native-saaj.jar
serializer.jar
xalan.jar
xercesImpl.jar
Hi,
since we now really use JBossWS 3.0.3(and so the JBossWS libs). We cannot call a other Webservice over jwsdp. We can call it if we remove all from endorsed, except a "normal" jwsdp-xercesImpl.
If you need more informations, don't hestitate to ask.
We get the following Exception:
| java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl cannot be cast to javax.xml.soap.SOAPElement
| at com.sun.xml.rpc.streaming.XmlTreeWriter.addNewNode(XmlTreeWriter.java:358)
| at com.sun.xml.rpc.streaming.XmlTreeWriter.startElement(XmlTreeWriter.java:293)
| at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:558)
| at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:83)
|
| {Our stuff}
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
| at $Proxy707.routingXRoute(Unknown Source)
| at com.ptvag.tp.von.RoutingHelperFacadeSession.routingXRoute(RoutingHelperFacadeSession.java:156)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)
| at $Proxy16.invoke(Unknown Source)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173683#4173683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173683
17 years, 7 months
[Clustering/JBoss] - JBoss-4.2.2 Clustering
by agohar
Hi,
Starting a new topic just for visibility.
I am trying to build a jboss cluster and having some issues. I've downloaded fresh copy of jboss-4.2.2 and deployed on 3 servers. I configured cluster-service.xml and jboss-web-cluster/META-INF/jboss-service.xml and put udp ip and port in there. Here are the portions of my xml files:
cluster-service.xml
<Config>
| <UDP mcast_addr="${jboss.partition.udpGroup:228.20.20.35}"
| mcast_port="${jboss.hapartition.mcast_port:45667}"
| tos="8"
| ucast_recv_buf_size="20000000"
| ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000"
| mcast_send_buf_size="640000"
| loopback="false"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| ip_ttl="${jgroups.udp.ip_ttl:8}"
| down_thread="false" up_thread="false"/>
| <PING timeout="2000"
| down_thread="false" up_thread="false" num_initial_members="3"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <UNICAST timeout="300,600,1200,2400,3600"
| down_thread="false" up_thread="false"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"/>
| <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </Config>
|
jboss-web-cluster.sar/META-INF/jboss-service.xml
<config>
| <UDP mcast_addr="${jboss.partition.udpGroup:230.20.20.74}"
| mcast_port="${jboss.webpartition.mcast_port:45679}"
| tos="8"
| ucast_recv_buf_size="20000000"
| ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000"
| mcast_send_buf_size="640000"
| loopback="false"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| ip_ttl="${jgroups.udp.ip_ttl:8}"
| down_thread="false" up_thread="false"/>
| <PING timeout="2000"
| down_thread="false" up_thread="false" num_initial_members="3"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <UNICAST timeout="300,600,1200,2400,3600"
| down_thread="false" up_thread="false"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"
| view_ack_collection_timeout="5000"/>
| <FC max_credits="2000000" down_thread="false" up_thread="false"
| min_threshold="0.10"/>
| <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </config>
When i start the servers in cluster, 2 of the servers join the cluster fine but adding third one creates problem and is very slow during startup and gets halt for some time at:
2008-09-01 13:39:51,150 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Number of cluster members: 3
| 2008-09-01 13:39:51,150 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Other members: 2
| 2008-09-01 13:39:51,151 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Fetching state (will wait for 30000 milliseconds):
| 2008-09-01 13:39:51,194 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] state was retrieved successfully (in 43 milliseconds)
|
I didn't deploy any application on the servers, these are just fresh servers. I've tried the same with jboss-4.0.2 and it works fine on the same network with same clustering configs.
Is there anything changed in new jboss-4.2.2 for the way jboss servers communicate for clustering? any network configurations i can check? Please help
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173679#4173679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173679
17 years, 7 months
[JBoss jBPM] - Re: Authorization in jBPM
by philso
Thank you for your reply Ronald, I am surprised to see authorization is not implemented in jBPM. We're not using the web front end for task management so we'll have an API that will be called passing in a Process Instance Id and userid to signal the token to move onwards. Is there another way to prevent unauthorized users from executing task they're not authorized to. I think we need to implement authorization at the jBPM layer because we need to prevent the following scenario.
User A (employee) creates a purchase order (Task 1)
User B (another employee at same level as user A, User A NOT allowed) to check purchase order (Task 2)
User C (manager) approves the purchase order (Task 3)
We are planning on assigning swimlanes to each of these tasks. Then we'll use the expression assignment handler to work out that User A or B can do Task 1, and Task 2 can't be carried out by same user a Task 1. Then Task 3 will have another swimlane (Manager). I've seen the documentation on the expression assignment handler syntax, is there any worked examples to view?
How would you recommend we implement this?
Thanks, Phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173678#4173678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173678
17 years, 7 months
[JBoss jBPM] - jbpm in client/server environment
by thomas.kratz
HI, I'm just getting started with jbpm, and I'm not sure if I got all of its concets right. Seam intergation looks nice, but that doesnt help me as I have a remote client application. I tried a simple example, got actions fired and assigned a task. Now comes what I dont understand. I have a task controller that is able to map task variables to a bean or something. I implemented a remote service that gives me active tasks for an actor, that works fine. Do I understand it right that the process has no idea about what the task (==user interaction) actually does ? Do I have to find a way to instruct my remote client what has to be done when a certain task is on the list ? Or is there any way to put some hint on the task that helps the client know what has to be done ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173675#4173675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173675
17 years, 7 months
[Security & JAAS/JBoss] - Re: JAAS Authentication from stand alone client
by eefahs
Hi,
Thanks for the reply and Now I changed my LoginModule to remove the ejb call and ti works perfectly . again few more clarifications will be helpfull
I have deployed my application as a folder, which contains multiple jar files. and I have specified <security-domain> for only one jar that is security.jar. Now the authentication is successfull and my commit method looks like below
|
| public boolean commit() throws LoginException {
| if (isloginSucceeded) {
| try{
| Set principals = subject.getPrincipals();
| principals.add(principal);
| Group[] roleSets = getRoleSets();
| for(int g = 0; g < roleSets.length; g ++) {
| Group group = roleSets[g];
| String name = group.getName();
| Group subjectGroup = createGroup(name, principals);
| if( subjectGroup instanceof NestableGroup ) {
| SimpleGroup tmp = new SimpleGroup("Roles");
| subjectGroup.addMember(tmp);
| subjectGroup = tmp;
| }
| Enumeration members = group.members();
| while( members.hasMoreElements() ) {
| Principal role = (Principal) members.nextElement();
| subjectGroup.addMember(role);
| }
| }
| isprincipalsInSubject = true;
| }catch(Exception e){
| e.printStackTrace();
| }
| return true;
| } else {
| return false;
| }
| }
|
Now, I want to lookup a ejb of my security.jar from another jar file. I added correct <security-role-ref> entries but I am getting the error as
anonymous wrote : Caused by: javax.security.auth.login.LoginException: Username not supplied.
| at com.ibsplc.iRes.security.jboss.db.JDbLoginModuleImpl.throwLoginException(JDbLoginModuleImpl.java:322)
| at com.ibsplc.iRes.security.jboss.db.JDbLoginModuleImpl.getUserName(JDbLoginModuleImpl.java:368)
| at com.ibsplc.iRes.security.jboss.db.JDbLoginModuleImpl.login(JDbLoginModuleImpl.java:164)
So it is again calling CallBackHandler for getting the username and password. How can I avoid this? How can I cache the Callback details.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173674#4173674
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173674
17 years, 7 months