[JBoss Seam] - language resource bundle example
by grdzeli_kaci
is there any sample about it ? i can't find anything.
i need language manipulation into seam,
i tryed by myself but it is not working
1.i have 2 properties file messages_en.properties and messages_ka.properties
both of them contains the same propertie for example
english
_userName=UserName
georgian
_userName=????????????
2. i have configured components.xml file
| <component name="org.jboss.seam.core.resourceBundle">
| <property name="bundleNames">
| <value>messages</value>
| </property>
| </component>
|
3. add this tab into build.xml file
| <include name="messages_en.properties" />
| <include name="messages_ka.properties" />
|
4. than into my login.xhtml file add language choose component
| <h:selectOneMenu styleClass="font_style">
| <f:selectItem itemLabel="English" itemValue="en"/>
| <f:selectItem itemLabel="Georgian" itemValue="ka"/>
| <f:selectItem itemLabel="Deutsch" itemValue="de"/>
| <f:selectItem itemLabel="Francais" itemValue="fr"/>
| </h:selectOneMenu>
|
and after this page i tryed to use Georgian properties but it does not working i got only english properties
is here anything wrong ?
is there any sample application about it ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029742#4029742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029742
19Â years, 1Â month
[EJB 3.0] - Entity relationship and remove operations
by kstrunk
Hello,
I have a problem with entity relationships and foreign key constraints. I want to get all child entities deleted when the parent entity is deleted. Therefore I used the CasecadeType.REMOVE, but it doesn't work.
Here is code fragment:
| @Entity
| @Table(name = "Users")
| public class User implements Serializable {
|
| private int id;
|
| private List<ChatMessage> sentChatMessages;
| private List<ChatMessage> receivedChatMessages;
|
| @Id
| @GeneratedValue(strategy = GenerationType.IDENTITY)
| @Column(name = "id", updatable = false, nullable = false)
| public int getId() {
| return id;
| }
|
| @OneToMany(mappedBy = "sender", cascade = {CascadeType.REMOVE}, fetch = FetchType.LAZY)
| public List<ChatMessage> getSentChatMessages() {
| return this.sentChatMessages;
| }
|
| public void setSentChatMessages(List<ChatMessage> sentChatMessages) {
| this.sentChatMessages = sentChatMessages;
| }
|
| @OneToMany(mappedBy = "receipient", cascade = {CascadeType.REMOVE}, fetch = FetchType.LAZY)
| public List<ChatMessage> getReceivedChatMessages() {
| return this.receivedChatMessages;
| }
|
| public void setReceivedChatMessages(List<ChatMessage> receivedChatMessages) {
| this.receivedChatMessages = receivedChatMessages;
| }
| }
|
| @Entity
| @Table(name = "ChatMessages")
| public class ChatMessage implements Serializable {
|
| private User sender;
|
| private User receipient;
|
| private String message;
|
| @ManyToOne()
| @JoinColumn(name = "sender", referencedColumnName = "id", nullable = false)
| public User getSender() {
| return this.sender;
| }
|
| public void setSender(User sender) {
| this.sender = sender;
| }
|
| @ManyToOne()
| @JoinColumn(name = "receipient", referencedColumnName = "id", nullable = false)
| public User getReceipient() {
| return this.receipient;
| }
|
| public void setReceipient(User receipient) {
| this.receipient = receipient;
| }
| }
|
When I try to delete a user, I exspect that all his messages are also deleted, but this does not happen. Instead I get the following exception:
12:12:43,703 ERROR [JDBCExceptionReporter] ERROR: update or delete on "users" violates foreign key constraint "fk278c74e4eedef195" on "chatmessages"
Detail: Key (id)=(12) is still referenced from table "chatmessages".
12:12:43,703 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2414)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2632)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:73)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
Caused by: java.sql.BatchUpdateException: Batch-Eintrag 0 delete from Users where id=12 wurde abgebrochen. Rufen Sie getNextException auf, um die Ursache zu erfahren.
at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2478)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1298)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:347)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2540)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
... 41 more
What can I do? I tried to remove all user's messages with the entityManager before removing the user, but I had no luck.
I use JBoss 4.0.5 and a Postgres 8.1 database.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029741#4029741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029741
19Â years, 1Â month
[JBoss Seam] - Re: Validation Error
by fady.matar
I have incorporated the TinyMCE rich text editor in my template and it looks as follows:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| <title>Admininstration</title>
| <link href="../stylesheet/admin-style.css" rel="stylesheet" type="text/css" />
| <script language="javascript" type="text/javascript" src="../javascript/tiny_mce/tiny_mce.js"></script>
| <script language="javascript" type="text/javascript">
| tinyMCE.init({
| mode : "textareas",
| theme : "advanced",
| plugins : "devkit,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
| theme_advanced_buttons1_add_before : "save,newdocument,separator",
| theme_advanced_buttons1_add : "fontselect,fontsizeselect",
| theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
| theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
| theme_advanced_buttons3_add_before : "tablecontrols,separator",
| theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
| theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,|,code",
| theme_advanced_toolbar_location : "top",
| theme_advanced_toolbar_align : "left",
| theme_advanced_path_location : "bottom",
| plugin_insertdate_dateFormat : "%Y-%m-%d",
| plugin_insertdate_timeFormat : "%H:%M:%S",
| extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
| theme_advanced_resize_horizontal : false,
| theme_advanced_resizing : true,
| nonbreaking_force_tab : true,
| apply_source_formatting : true,
| });
| </script>
| </head>
| <body>
| <div class="header">
| <h1>safami website - administration interface</h1>
| </div>
| <ui:include src="menu.xhtml"/>
| <ui:include src="loginout.xhtml"/>
| <div class="body">
| <f:facet name="aroundInvalidField">
| <s:span styleClass="errors"/>
| </f:facet>
| <f:facet name="afterInvalidField">
| <s:span> <s:message/></s:span>
| </f:facet>
| <ui:insert name="body"/>
| </div>
| <ui:include src="footer.xhtml" />
| </body>
| </html>
|
|
Please note that the TinyMCE editor is appearing and looks perfect however it doesn't save the data.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029740#4029740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029740
19Â years, 1Â month
[Installation, Configuration & Deployment] - Unable to compile jboss 3.2.8 sp1 on Linux
by rephein
Hi,
my config: Trustix 2.2 (Kernel 2.4.x), java 1.5 (from java.sun.com), JBoss 3.2.8 sp1(from this site). When I try to run "build.sh" from the build directory the were several stops complaning about "target release 1.3 conflicts with default source release 1.5". After changing the target to 1.5 in the config files they compile without any more errors. But now I got this when running build.sh:
_buildmagic:init:
init:
compile-classes:
[javac] Compiling 171 source files to /usr/src/neu/jboss-3.2.8.SP1-src/management/output/classes
javac: target release 1.2 conflicts with default source release 1.5
BUILD FAILED
/usr/src/neu/jboss-3.2.8.SP1-src/management/build.xml:182: Compile failed; see the compiler error output for details.
When I change the 1.2 entry to 1.5 things are going really bad:
_buildmagic:init:
init:
compile-classes:
[javac] Compiling 171 source files to /usr/src/neu/jboss-3.2.8.SP1-src/management/output/classes
/usr/src/neu/jboss-3.2.8.SP1-src/management/src/main/org/jboss/management/j2ee/factory/RARModuleFactory.java:33: package org.jboss.resource does not exist
import org.jboss.resource.RARMetaData;
^
/usr/src/neu/jboss-3.2.8.SP1-src/management/src/main/org/jboss/management/j2ee/factory/RARModuleFactory.java:66: cannot find symbol
symbol : class RARMetaData
location: class org.jboss.management.j2ee.factory.RARModuleFactory
RARMetaData metaData = (RARMetaData) di.metaData;
^
/usr/src/neu/jboss-3.2.8.SP1-src/management/src/main/org/jboss/management/j2ee/factory/RARModuleFactory.java:66: cannot find symbol
symbol : class RARMetaData
location: class org.jboss.management.j2ee.factory.RARModuleFactory
RARMetaData metaData = (RARMetaData) di.metaData;
^
/usr/src/neu/jboss-3.2.8.SP1-src/management/src/main/org/jboss/management/j2ee/factory/RARModuleFactory.java:99: cannot find symbol
symbol : class RARMetaData
location: class org.jboss.management.j2ee.factory.RARModuleFactory
RARMetaData metaData = (RARMetaData) di.metaData;
^
/usr/src/neu/jboss-3.2.8.SP1-src/management/src/main/org/jboss/management/j2ee/factory/RARModuleFactory.java:99: cannot find symbol
symbol : class RARMetaData
location: class org.jboss.management.j2ee.factory.RARModuleFactory
RARMetaData metaData = (RARMetaData) di.metaData;
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
BUILD FAILED
/usr/src/neu/jboss-3.2.8.SP1-src/management/build.xml:182: Compile failed; see the compiler error output for details.
Well, I´m trying to install an application that requires this jboss/java setup. I´m absolutly stuck at this point because of the leak of any jboss knowledge and java knowledge behind the point of simple programming. Any ideas would be welcome.
Greetings,
Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029736#4029736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029736
19Â years, 1Â month
[Security & JAAS/JBoss] - SAML token SAXParseException attempting to use test app with
by scwhyte
Hi,
I'm currently using:
| Windows XP
| JDK 1.5.0_11
| JBoss 4.0.5 GA
| JBoss Federated SSO 1.0 CR1
|
|
| Using the 'getting started' guide
| http://labs.jboss.com/portal/index.html?ctrl:cmd=render&ctrl:window=defau...
|
| I'm attempting to get the federated SSO test application up and running by simulating two domains by following the steps in the getting started guide. I'm using the DemoLoginProvider packaged with the test app.
|
| I've got:
|
| | One local installation of JBoss 4.0.5
| | Two default server instances called default and default2 deployed
| | Each instance has the sso SAR and the federation server deployed
| | Each instance has the test app deployed
| |
|
| I've amended the windows hosts file as suggested in order to simulate two domains.
| I've started each instance with "run -c default -b node1.jboss.com" and "run -c default2 -b node1.jboss.org" respectively.
|
| I am then able to access the application, and login successfully with the credentials user1:password, on the first instance using the URL:
| http://node1.jboss.com:8080/test
|
| However, when I then attempt to click on the "Cross Domain Get Tester" link, I get the following exception on the second instance (default2):
|
| | 2007-03-20 11:00:10,977 DEBUG [httpclient.wire.header] >> "GET /federate/partners HTTP/1.1[\r][\n]"
| | 2007-03-20 11:00:11,008 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/2.0.2[\r][\n]"
| | 2007-03-20 11:00:11,008 DEBUG [httpclient.wire.header] >> "Host: node1.jboss.org:8080[\r][\n]"
| | 2007-03-20 11:00:11,008 DEBUG [httpclient.wire.header] >> "[\r][\n]"
| | 2007-03-20 11:00:12,118 DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]"
| | 2007-03-20 11:00:12,118 DEBUG [httpclient.wire.header] << "Server: Apache-Coyote/1.1[\r][\n]"
| | 2007-03-20 11:00:12,118 DEBUG [httpclient.wire.header] << "X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5[\r][\n]"
| | 2007-03-20 11:00:12,118 DEBUG [httpclient.wire.header] << "Transfer-Encoding: chunked[\r][\n]"
| | 2007-03-20 11:00:12,196 DEBUG [httpclient.wire.header] << "Date: Tue, 20 Mar 2007 11:00:12 GMT[\r][\n]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "2"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "7"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "9"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\r]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\n]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "<AttributeStatement xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Subject><NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">jbosssso:partnerInfo</NameIdentifier></Subject><Attribute AttributeName="jboss.org" AttributeNamespace="jbosssso:partner"><AttributeValue>http://node1.jboss.org:8080/federate</AttributeValue></Attribute><Attribute AttributeName="jboss.com" AttributeNamespace="jbosssso:partner"><AttributeValue>http://node1.jboss.com:8080/federate</AttributeValue></Attribute></AttributeStatement>"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\r]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\n]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "0"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\r]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\n]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\r]"
| | 2007-03-20 11:00:12,227 DEBUG [httpclient.wire.content] << "[\n]"
| | 2007-03-20 11:00:14,711 ERROR [org.opensaml.SAMLObject] caught an exception while parsing a stream:
| | XML document structures must start and end within the same entity.
| | 2007-03-20 11:00:14,727 ERROR [org.jboss.security.federation.servlet.SSOFederationServer] org.jboss.security.federation.servlet.SSOFederationServer@126f304
| | org.jboss.security.saml.SSOException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
| | at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:343)
| | at org.jboss.security.sso.util.SSOUtil.getUsername(SSOUtil.java:119)
| | at org.jboss.security.federation.servlet.SSOFederationServer.doPost(SSOFederationServer.java:158)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| | at java.lang.Thread.run(Thread.java:595)
| | Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
| | at org.opensaml.SAMLObject.fromStream(Unknown Source)
| | at org.opensaml.SAMLResponse.<init>(Unknown Source)
| | at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:281)
| | ... 23 more
| | Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
| | at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
| | at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
| | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| | at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
| | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
| | at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
| | at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
| | at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
| | at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
| | at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)
| | at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| | at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
| | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| | at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| | at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| | at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
| | at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
| | at org.opensaml.XML$ParserPool.parse(Unknown Source)
| | at org.opensaml.XML$ParserPool.parse(Unknown Source)
| | ... 26 more
| |
|
| Whenever I then try to access any URL on this web app on this first instance, it throws the same exception.
|
| Would anyone be able to spot if I'm doing something obviously wrong, or if there are any ideas I can try to solve this?
|
| Many thanks in advance,
| Shaun.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029733#4029733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029733
19Â years, 1Â month
[JBossCache] - TimeoutException on next access after eviction
by kevinstembridge
Hi folks,
I'm using JBossCache as the L2 cache for Hibernate and I started seeing a strange error after adding some eviction policy configuration.
I'm now getting a TimeoutException when Hibernate tries to add an object to the cache. However, even though the error is thrown, the object still seems to get added to the cache. But after the next time the object is evicted I get the same error. The error doesn't occur at all if I remove the eviction policy config for that object. This behaviour seems to be very consistent and repeatable.
The cache is configured with Isolation level REPEATABLE_READ, and CacheMode REPL_ASYNC.
JBossCache version = 1.4.0SP1
JBoss version = 4.0.5
Hibernate version = 3.2.0GA
Full cache configuration and stack traces are below.
Thanks in advance for any help.
Kevin
| <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=HibernateTreeCache">
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
| <depends>jboss.jca:service=XATxCM,name=XAOracleDS</depends>
|
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
|
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
|
| <attribute name="CacheMode">REPL_ASYNC</attribute>
|
| <attribute name="ClusterName">${elink3.hibernate.partition.name:TreeCache-Cluster}</attribute>
|
| <attribute name="ClusterConfig">
| <config>
| <UDP mcast_addr="${elink3.hibernate.partition.udpGroup:229.1.98.1}" mcast_port="${elink3.hibernate.partition.udpPort:45679}" ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
| ucast_recv_buf_size="80000" loopback="false" />
| <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
| <MERGE2 min_interval="10000" max_interval="20000" />
| <FD shun="true" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
| <pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false"
| down_thread="false" />
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
| <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
| <FRAG frag_size="8192" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
| <pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
| </config>
| </attribute>
|
| <attribute name="InitialStateRetrievalTimeout">20000</attribute>
|
| <attribute name="SyncReplTimeout">10000</attribute>
|
| <attribute name="LockAcquisitionTimeout">15000</attribute>
|
| <attribute name="FetchStateOnStartup">true</attribute>
|
| <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
|
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <region name="/_default_">
| <attribute name="maxNodes">100000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| </region>
| <region name="/uk/co/objectsoft/hibernate/dbo/TraderBO" >
| <attribute name="maxNodes">10000</attribute>
| <attribute name="timeToLiveSeconds">60</attribute>
| <attribute name="maxAgeSeconds">60</attribute>
| </region>
| </config>
| </attribute>
|
| </mbean>
| 2007-03-20 10:57:05,730 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] local transaction exists - registering global tx if not present for Thread[http-10.142.204.71-8080-9,5,jboss]
| 2007-03-20 10:57:06,230 DEBUG [org.hibernate.cache.TransactionalCache:84] caching: uk.co.objectsoft.hibernate.dbo.TraderBO#-50
| 2007-03-20 10:57:06,730 DEBUG [org.hibernate.cache.TransactionalCache:84] cache lookup: uk.co.objectsoft.hibernate.dbo.TraderBO.loginSessions#-50
| 2007-03-20 10:57:06,730 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] local transaction exists - registering global tx if not present for Thread[http-10.142.204.71-8080-9,5,jboss]
| 2007-03-20 10:57:06,730 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=dblonws20733/23, BranchQual=, localId=23] is already registered.
| 2007-03-20 10:57:06,730 DEBUG [org.hibernate.cache.TransactionalCache:84] cache miss
| 2007-03-20 10:57:07,246 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] local transaction exists - registering global tx if not present for Thread[http-10.142.204.71-8080-9,5,jboss]
| 2007-03-20 10:57:07,246 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=dblonws20733/23, BranchQual=, localId=23] is already registered.
| 2007-03-20 10:57:07,246 DEBUG [org.hibernate.cache.TransactionalCache:84] caching: uk.co.objectsoft.hibernate.dbo.TraderBO.loginSessions#-50
| 2007-03-20 10:57:08,856 DEBUG [org.jboss.cache.interceptors.TxInterceptor:84] local transaction exists - registering global tx if not present for Thread[http-10.142.204.71-8080-9,5,jboss]
| 2007-03-20 10:57:10,700 DEBUG [org.jboss.cache.eviction.BaseEvictionAlgorithm:84] Adding element /uk/co/objectsoft/hibernate/dbo/TraderBO/uk.co.objectsoft.hibernate.dbo.TraderBO#-50 for a node that doesn't exist yet. Process as an add.
| 2007-03-20 10:57:10,700 DEBUG [org.jboss.cache.eviction.BaseEvictionAlgorithm:84] Adding element /uk/co/objectsoft/hibernate/dbo/TraderBO/loginSessions/uk.co.objectsoft.hibernate.dbo.TraderBO.loginSessions#-50 for a node that doesn't exist yet. Process as an add.
| 2007-03-20 10:57:23,858 INFO [org.jboss.cache.interceptors.TxInterceptor:99] There was a problem handling this request
| org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/uk/co/objectsoft/hibernate/dbo/TraderBO/uk.co.objectsoft.hibernate.dbo.TraderBO#-50, caller=GlobalTransaction:<dblonws20733:4249>:18, lock=write owner=GlobalTransaction:<dblonws20733:4249>:17 (activeReaders=0, activeWriter=Thread[http-10.142.204.71-8080-9,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
| at org.jboss.cache.Node.acquire(Node.java:407)
| at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:231)
| at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:166)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:34)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:138)
| at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
| at org.jboss.cache.TreeCache.get(TreeCache.java:3469)
| at org.jboss.cache.TreeCache.get(TreeCache.java:3450)
| at org.hibernate.cache.TreeCache.read(TreeCache.java:54)
| at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:45)
| at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156)
| at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
| at org.hibernate.loader.Loader.doQuery(Loader.java:717)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| at org.hibernate.loader.Loader.doList(Loader.java:2144)
| at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
| at org.hibernate.loader.Loader.list(Loader.java:2023)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at uk.co.objectsoft.hibernate.dao.TraderDAO.getTraderByName(TraderDAO.java:83)
| at uk.co.objectsoft.hibernate.dao.TraderDAO.getTraderByName(TraderDAO.java:104)
| at uk.co.objectsoft.gateway.hibernate.OrderMapper.createAddJournal(OrderMapper.java:122)
| at uk.co.objectsoft.gateway.hibernate.OrderMapper.createSendJournal(OrderMapper.java:110)
| at uk.co.objectsoft.router.ejb.RouterBean.send(RouterBean.java:176)
| 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:585)
| 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:404)
| 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:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
| at $Proxy130.send(Unknown Source)
| at uk.co.objectsoft.router.ejb.ClientRouterBean.send(ClientRouterBean.java:101)
| 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:585)
| 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:404)
| 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:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
| at $Proxy135.send(Unknown Source)
| at uk.co.objectsoft.gateway.session.fix.FixGatewaySession.route(FixGatewaySession.java:65)
| at uk.co.objectsoft.ha.singleton.HAOrderService.route(HAOrderService.java:157)
| 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:585)
| 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.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:175)
| at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
| at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy134.route(Unknown Source)
| at uk.co.objectsoft.order.service.JrmpOrderServiceImpl.route(JrmpOrderServiceImpl.java:245)
| 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:585)
| at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
| at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
| at com.db.exlink.common.service.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:40)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
| at $Proxy169.route(Unknown Source)
| 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:585)
| at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
| at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:70)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
| at $Proxy169.route(Unknown Source)
| 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:585)
| at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:181)
| at org.acegisecurity.context.rmi.ContextPropagatingRemoteInvocation.invoke(ContextPropagatingRemoteInvocation.java:103)
| at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
| at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:76)
| at org.springframework.remoting.support.RemoteInvocationBasedExporter.invokeAndCreateResult(RemoteInvocationBasedExporter.java:112)
| at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:117)
| at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:47)
| at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)
| at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
| at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at uk.co.objectsoft.tomcat.filter.CompressionFilter.doFilter(CompressionFilter.java:60)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.cache.lock.TimeoutException: read lock for /uk/co/objectsoft/hibernate/dbo/TraderBO/uk.co.objectsoft.hibernate.dbo.TraderBO#-50 could not be acquired by GlobalTransaction:<dblonws20733:4249>:18 after 15000 ms. Locks: Read lock owners: []
| Write lock owner: GlobalTransaction:<dblonws20733:4249>:17
| , lock info: write owner=GlobalTransaction:<dblonws20733:4249>:17 (activeReaders=0, activeWriter=Thread[http-10.142.204.71-8080-9,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
| at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:257)
| at org.jboss.cache.Node.acquireReadLock(Node.java:417)
| at org.jboss.cache.Node.acquire(Node.java:384)
| ... 166 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029730#4029730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029730
19Â years, 1Â month