[JBoss Messaging] - Re: clustered messages stuck on queues
by dave_lund
Heres some logging trace for a message that gets stuck:
2008-03-13 15:37:19,427 TRACE [com.test.Bridge] com.test.Bridge$BatchTimeChecker@14bfbf1 waiting for 1000
2008-03-13 15:37:19,427 TRACE [com.test.Bridge] com.test.Bridge$SourceListener@26c025 received message delegator->JBossMessage[1298]:PERSISTENT, deliveryId=8
2008-03-13 15:37:19,427 TRACE [com.test.Bridge] com.test.Bridge$SourceListener@26c025 rescheduled batchExpiryTime to 1205422640427
2008-03-13 15:37:20,427 TRACE [com.test.Bridge] com.test.Bridge$BatchTimeChecker@14bfbf1 woke up
2008-03-13 15:37:20,427 TRACE [com.test.Bridge] com.test.Bridge$BatchTimeChecker@14bfbf1 waited enough
2008-03-13 15:37:20,427 TRACE [com.test.Bridge] com.test.Bridge$BatchTimeChecker@14bfbf1 got some messages so sending batch
2008-03-13 15:37:20,427 TRACE [com.test.Bridge] Sending batch of 1 messages
2008-03-13 15:37:20,427 TRACE [com.test.Bridge] Sending message delegator->JBossMessage[1298]:PERSISTENT, deliveryId=8
2008-03-13 15:37:20,428 TRACE [com.test.Bridge] Sent message delegator->JBossMessage[1304]:PERSISTENT, deliveryId=8
2008-03-13 15:37:20,428 TRACE [com.test.Bridge] Committing source session
2008-03-13 15:37:20,438 TRACE [com.test.Bridge] Committed source session
2008-03-13 15:37:20,438 TRACE [com.test.Bridge] com.test.Bridge$BatchTimeChecker@14bfbf1 sent batch
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136350#4136350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136350
18 years, 1 month
[JBoss Portal] - ResourceException(Transaction is not Active) when uploading
by gumreal
Hi,all.
Using JBoss AS 4.2.1 GA + JBoss Portal 2.6.2 + MySQL 5.0.
Login as Admin, when uploading a file, exception occurs:
anonymous wrote :
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| javax.servlet.ServletException: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fdfd:701:47d948d9:a58 status: ActionStatus.ABORT_ONLY >
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:406)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
| root cause
|
| javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fdfd:701:47d948d9:a58 status: ActionStatus.ABORT_ONLY >
| org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:304)
| org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
| org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
| org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
| org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
| org.hibernate.loader.Loader.doQuery(Loader.java:673)
| org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
| org.hibernate.loader.Loader.loadEntity(Loader.java:1907)
| org.hibernate.loader.entity.CollectionElementLoader.loadElement(CollectionElementLoader.java:72)
| org.hibernate.persister.collection.OneToManyPersister.getElementByIndex(OneToManyPersister.java:360)
| org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:158)
| org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
| org.jboss.portal.core.impl.model.portal.PortalObjectImpl.getChild(PortalObjectImpl.java:382)
| org.jboss.portal.core.impl.model.portal.ContextImpl.getPortal(ContextImpl.java:52)
| org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboard(CustomizationManagerService.java:282)
| org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:260)
| org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:164)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:77)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:51)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
| org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
| org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
| org.jboss.portal.core.controller.Controller.processCommand(Controller.java:235)
| org.jboss.portal.core.controller.Controller.handle(Controller.java:218)
| org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:245)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
| org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:70)
| org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:131)
| org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:380)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
Any helps? Thanks:)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136348#4136348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136348
18 years, 1 month
[Beginners Corner] - Re: Jboss class laoding and newInstance
by ShareMe
Hers is the 3rd party lib source that I was changing, thjis is beofre I fixed the Class.forName:
package message;
import java.util.HashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Generates objects based on configuration settings in MessageConfig
*
* @author Michelle Osmond
* @version 1.2
*/
public class MessagingFactory
{
private static final Log log = LogFactory.getLog(MessagingFactory.class);
public static HashMap classes = new HashMap();
/**
* Get an object to retrieve the user-session-id.
*/
public static SessionIDRetriever getSessionIDRetriever() throws ClassNotFoundException, InstantiationException,
IllegalAccessException
{
return (SessionIDRetriever) getNewInstance(MessageConfig.SESSION_ID_RETRIEVER);
}
/**
* Get a message centre for the given browser session ID.
*/
public static MessageCentre getMessageCentre(String sessionID) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
MessageStore store = (MessageStore) getNewInstance(MessageConfig.MESSAGE_STORE);
store.initialise(sessionID);
MessageCentre mc = new MessageCentreImpl();
mc.setStore(store);
return mc;
}
protected static Object getNewInstance(String name) throws ClassNotFoundException, InstantiationException,
IllegalAccessException
{
Class retrieverClass = null;
if (MessagingFactory.classes.containsKey(name))
{
retrieverClass = (Class) MessagingFactory.classes.get(name);
}
else
{
// get class name from config
retrieverClass = Class.forName(MessageConfig.getConfigProperty(name));
MessagingFactory.classes.put(name, retrieverClass);
}
// instantiate class
if (log.isDebugEnabled())
{
log.debug("MessagingFactory returning instance for " + name + " of class " + retrieverClass.getName());
}
return retrieverClass.newInstance();
}
}
As you can see I cannot do a normal cast due to how its cast in other places
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136344#4136344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136344
18 years, 1 month
[Security & JAAS/JBoss] - Not able to lookup ejb with role using Jboss Security model
by gautamdey1976
Hi everybody,
I am very new to Jboss. please forgive my ignorance on some of the stuff in Jboss, I was trying to use Jboss Security model to make a ejb role based.
I have added a application policy in the login-config.xml
<application-policy name ="sapphire">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
| <module-option name="usersProperties">props/sapphire-users.properties</module-option>
| <module-option name="rolesProperties">props/sapphire-roles.properties</module-option>
| <module-option name="unauthenticatedIdentity">anonymous</module-option>
| </login-module>
| </authentication>
| </application-policy>
I have also edited my Jboss.xml in the ejb module
<jboss>
|
| <security-domain>java:/jaas/jmx-console</security-domain>
| <enterprise-beans>
| <session>
| <ejb-name>Hello</ejb-name>
| <local-jndi-name>Hello</local-jndi-name>
| </session>
| </enterprise-beans>
| </jboss>
The ejb.jar looks like this
<ejb-jar>
| <enterprise-beans>
| <session id="Hello">
| <ejb-name>Hello</ejb-name>
| <home>test.Hello1Home</home>
| <remote>test.Hello1</remote>
| <ejb-class>test.Hello1Bean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| </enterprise-beans>
| <assembly-descriptor>
| <security-role>
| <role-name>testrole</role-name>
| </security-role>
| <method-permission>
| <role-name>testrole</role-name>
| <method>
| <ejb-name>Hello</ejb-name>
| <method-name>*</method-name>
| </method>
| </method-permission>
| </assembly-descriptor>
| </ejb-jar>
I have created a jsp page and a pojo from where I am accessing the ejb
the pojo looks like
public class pojo1 {
| public String callHello1Ejb(){
| String hellostr = "";
| try {
| Properties props = new Properties();
| props.put( Context.PROVIDER_URL, "jnp://localhost:1099" );
| props.put( Context.SECURITY_PRINCIPAL, "admin" );
| props.put( Context.SECURITY_CREDENTIALS, "admin" );
| Context initialContext = new InitialContext( props );
| Object objRef = initialContext.lookup( "Hello" );
| Hello1Home home = (Hello1Home)PortableRemoteObject.narrow( objRef, Hello1Home.class );
| Hello1 hello = home.create();
|
| hellostr = hello.getHelloMessage();
| }
| catch ( NamingException e ) {
| System.out.println("error:: "+e.getMessage());
| e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
| }
| catch ( RemoteException e ) {
| System.out.println("error:: "+e.getMessage());
| e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
| }
| catch ( CreateException e ) {
| System.out.println("error:: "+e.getMessage());
| e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
| }
| finally{
| return hellostr;
| }
| }
| }
I have created two prop files under
props/sapphire-roles.properties
props/sapphire-users.properties
the conents are
# A sample roles.properties file for use with the UsersRolesLoginModule
admin=testrole
and
# A sample users.properties file for use with the UsersRolesLoginModule
admin=admin
respectively
When I am deploying it and trying it I am getting the an exception. The exception caused because the authentication failed
The stackstrace is
1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Bad password for username=null
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] INFO STDOUT - error:: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - java.rmi.AccessException: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.Container.invoke(Container.java:981)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at $Proxy138.create(Unknown Source)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at test.pojo1.callHello1Ejb(pojo1.java:47)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jsp.hello1_jsp._jspService(hello1_jsp.java:66)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.security.AccessController.doPrivileged(Native Method)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - ... 47 more
2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Bad password for username=null
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] INFO STDOUT - error:: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - java.rmi.AccessException: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.Container.invoke(Container.java:981)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at $Proxy138.create(Unknown Source)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at test.pojo1.callHello1Ejb(pojo1.java:49)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jsp.hello1_jsp._jspService(hello1_jsp.java:65)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.security.AccessController.doPrivileged(Native Method)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - ... 47 more
I have been breaking my head to get through it without any success , It will be of great help to me if you guys guide me to the solution.
thanks in advace
gautam
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136343#4136343
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136343
18 years, 1 month
[JBoss Messaging] - Re: clustered messages stuck on queues
by dave_lund
Our attempt at copying the batching in the Bridge class has hit a bit of a problem. Our version didn't work as even though all messages were passed through and processed (and commited), some processed messages were still visible in the database after, and were re-processed after a jboss restart. These lingering messages were always the first message in the messages collection per transaction. In the jmx-console the messages are marked as currently being delivered, but the bridge believes (and rightly so) that it has delivered all messages
Hence we have created a test based on the Bridge class, all we have changed is the jboss logger to become an apache logger, and instead of the ConnectionFactoryFactory and DestinationFactory jndi wrappers we're just passing the ConnectionFactory/Destinations directly. Messages are read off a test queue and then put on the dead letter queue after.
Our test uses a queue with the following config on the queue:
clustered=true, maxdeliveryattempts=1
The connectionFactory (we were using ClusteredConnectionFactory) has:
supportsfailover=true, supportsLoadBalancing=true,prefetchsize=1000.
The Bridge class is created using:
new Bridge(getConnectionFactory(), getConnectionFactory(), getQueue("queue/testingQueue"), getQueue("queue/DLQ"), null, null, null, null, null, 1000, 10, Bridge.QOS_ONCE_AND_ONLY_ONCE, 100, 1000, null, null, false);
The connection factories are the same, so that local tx's are used.
This is happening consistently, 5 messages in 1000 so I think it probably more likely mis configuration than anything else. The environment remains the same as earlier in the post (Jboss AS 4.2.2.GA and JBM 1.4.0.SP3 backed by a mysql 5 database and JRE 6 on a debian OS)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136342#4136342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136342
18 years, 1 month
[Tomcat, HTTPD, Servlets & JSP] - Re: Session being stolen / assigned to wrong person
by javaspack
We don't have a clustered environment. We used to have 2 JBoss servers that were load balanced, but not distributed (we don't need session replication), but like I said, we removed all that to simplify the configuration.
Most of the time, we have no problem. Then, for no observable reason, weird stuff happens. Then it is stops.
I looked at the JIRA issue, which deals with CLOSE_WAIT. Wouldn't that be more of a memory leak? I can see how over time all those connections could stack up.
If this is our problem, it would need an event that causes it. And then something that fixes it without intervention.
Example:
Lots of AJP connections stack up over time. Then they get garbage collected or cleaned up, or a JBoss service restarts to clean up the problem?
Is that what we are talking about here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136339#4136339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136339
18 years, 1 month