[JNDI/Naming/Network] - JBAS51 and JDK6 - underscore characters in hostnames
by simon_temple
A bind name with an underscore character causes a java.net.MalformedURLException during startup.
The sys admin doesn't want to change (correct!) the hostname, I don't really want to have to use the IP address.
Java seems to have problems with hostnames that contain underscores: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6587184
Could the JBAS code be changed to work around this issue?
Is that a really dumb thing to work around?
Should I insist that the sys admin change the hostname?
wdyt?
Any and all comments appreciated.
2009-07-09 14:11:32,477 ERROR org.jboss.kernel.plugins.dependency.AbstractKernelController](main) Error installing to Start: name=jboss.remoting:protocol=rmi,service=JMXConnectorServer state=Create mode=Manual requiredState=Installed
| java.net.MalformedURLException: Bad URL path: _test/jndi/rmi://torrington_test:1090/jmxconnector
| at javax.management.remote.JMXServiceURL.validate(JMXServiceURL.java:348)
| at javax.management.remote.JMXServiceURL.(JMXServiceURL.java:208)
| at org.jboss.mx.remoting.service.JMXConnectorServerService.start(JMXConnectorServerService.java:127)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242626#4242626
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242626
17 years
[JBoss jBPM] - [jBPM4] Error while creating processinstance having timers
by rams.rapo
Hi,
I'm able to deploy below process definition but fails why creating process instance out of it. Transaction seems to be null.
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="JobExecutor" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="19,50,48,48">
| <transition to="guardedWait1"/>
| </start>
|
| <task name="guardedWait1" g="98,46,127,52">
| <transition name="go on" to="next step" g="-16,-17"/>
| <transition name="timeout" to="guardedWait2" g="-43,-16">
| <timer duedate="3 minutes"/>
| </transition>
| </task>
|
| <task name="guardedWait2" g="98,46,127,52">
| <on event="timeout">
| <timer duedate="5 minutes"/>
| <event-listener class="test.TaskEscalateHandler"/>
| </on>
| <transition name="go on" to="next step" g="-16,-17"/>
| </task>
|
| <end name="next step" g="283,46,83,53"/>
|
| </process>
|
|
Error
| java.lang.NullPointerException
| at org.jbpm.pvm.internal.jobexecutor.JobExecutorTimerSession.schedule(JobExecutorTimerSession.java:58)
| at org.jbpm.pvm.internal.job.TimerImpl.schedule(TimerImpl.java:68)
| at org.jbpm.pvm.internal.model.ScopeInstanceImpl.initializeTimers(ScopeInstanceImpl.java:311)
| at org.jbpm.pvm.internal.model.ExecutionImpl.createScope(ExecutionImpl.java:245)
| at org.jbpm.pvm.internal.model.op.TransitionStartActivity.perform(TransitionStartActivity.java:82)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:625)
| at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:585)
| at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:198)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:64)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:37)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.spring.CommandTransactionCallback.doInTransaction(CommandTransactionCallback.java:50)
| at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
| at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:76)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:69)
|
|
I do have jboexecutor defined in my jbpm.cfg.xml
<import resource="jbpm.jobexecutor.cfg.xml"/>
I may be missing something really simple here...any pointers?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242621#4242621
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242621
17 years
[JCA/JBoss] - Re: Changinh connection state in CMP EJB
by dimonv
"vickyk" wrote : What issue do you see here?
There are cases in which the same RA provides connections of the different types. If the client application calls an additional getConnection method of the RA and provides the meta-info to it, which contains e.g. the java type of connection, and then casts the returned connection to the type it has requested ClassCastException occurs. Another example is JBoss' JMS RA; it provides a class called org.jboss.resource.adapter.jms.JmsConnectionRequestInfo which implements of javax.resource.spi.ConnectionRequestInfo. org.jboss.resource.adapter.jms.JmsConnectionRequestInfo defines the type of connection returned by RA: topic, queue or both, I assume all of these types can not be put into the same pool.
BTW I thought that was one of the reasons for org.jboss.resource.connectionmanager.JBossManagedConnectionPool.PoolByCri implementation.
If you say:
"vickyk" wrote : ...the reauthentication would be decided at the RA level
why do you need any additional infrastructure for the re-authentication?
"vickyk" wrote : The -ds.xml should then supply the infrastructure needed to support the reauthentication i.e reauthentication mechanish as in case of jdbc rar.
And if we use a JCA-compliant RA supporting re-authentication, who is responsible for supplying a re-authentication mechanism?
Even in case of JDBC no additional mechanism is not necessary in -ds.xml; this mechanism should be behind getConnection, as described in chap. 9.1.9 of JCA specification.
IMO the only what -ds.xml needs is:
"dimonv" wrote : Probably an addition tag within -ds.xml combined with "ByContainer..." is needed to give org.jboss.resource.connectionmanager.JBossManagedConnectionPool a hint which pool implementation should be used.
Thus if -ds.xml says e.g. true and <security-domain-and-application>sec domain</security-domain-and-application> or <security-domain>sec domain</security-domain> then PoolBySubjectAndCri resp. PoolBySubject should be used.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242609#4242609
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242609
17 years