0 Replies Latest reply on Dec 11, 2011 3:07 PM by Michael Tarullo

    Error Creating Connection Factory For ActiveMQ In JBoss 6

    Michael Tarullo Newbie

      I have just configured JBoss for use with ActiveMQ.

       

      I started the admin console and attempted to add a new JMS connection factory.

       

      I entered the information on the form and when I clicked the Save button I received a string out of bounds exception.  The stack trace from the server log is provided below.

       

      Can some help with this error?  Thanks!

       

      2011-12-11 14:34:11,928 WARN  [org.jboss.seam.jsf.SeamPhaseListener] (http-127.0.0.1-8080-1)
      uncaught exception, passing to exception handler:
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1

      at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:143) [:1.6.0_24]

      at java.lang.StringBuilder.setLength(StringBuilder.java:55) [:1.6.0_24]

      at org.jboss.on.embedded.ui.SingleResourceAction.validationFailed(SingleResourceAction.java:154) [:1.4.0.SP2]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [:2.1.0.SP1]

      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) [:2.1.0.SP1]

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [:2.1.0.SP1]

      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [:2.1.0.SP1]

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.1.0.SP1]

      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [:2.1.0.SP1]

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.1.0.SP1]

      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [:2.1.0.SP1]

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.1.0.SP1]

      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [:2.1.0.SP1]

      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166) [:2.1.0.SP1]

      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102) [:2.1.0.SP1]

      at org.jboss.on.embedded.ui.SingleResourceAction_$$_javassist_19.validationFailed(SingleResourceAction_$$_javassist_19.java) [:1.4.0.SP2]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [:2.1.0.SP1]

      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138) [:2.1.0.SP1]

      at org.jboss.seam.Component.callComponentMethod(Component.java:2201) [:2.1.0.SP1]

      at org.jboss.seam.core.Events.raiseEvent(Events.java:85) [:2.1.0.SP1]

      at org.jboss.seam.faces.Validation.afterProcessValidations(Validation.java:46) [:2.1.0.SP1]

      at org.jboss.seam.jsf.SeamPhaseListener.afterProcessValidations(SeamPhaseListener.java:370) [:2.1.0.SP1]

      at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:236) [:2.1.0.SP1]

      at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194) [:2.1.0.SP1]

      at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:185) [:2.0.3-]

      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:103) [:2.0.3-]

      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [:2.1.0.SP1]

      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [:3.3.3.Final]

      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [:3.3.3.Final]

      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [:3.3.3.Final]

      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [:3.3.3.Final]

      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.1.0.SP1]

      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [:2.1.0.SP1]

      at org.jboss.on.embedded.LazyStartupFilter.doFilter(LazyStartupFilter.java:87) [:1.4.0.SP2]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

      at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]