[JBoss Cache: Core Edition] - Re: is it possible for MVCCInvocationContext to have null mv
by manik.surtani@jboss.com
Had a look at your test, and your test is invalid. Here's why:
Case 1: You have commented out the line marked N1. This works fine, since you first do a pFER() and then a get(). Expected behaviour.
Case 2: Line marked N1 is not commented out. Here is what happens:
1. tx starts
2. read the value, which is null
3. do a pFER(). Remember that pFER(), to be fail-safe, runs in a separate transaction. So this will suspend the tx started in 1, do the pFER(), and then resume the tx in 1.
4. read the value again, you get a null. This is correct, since you have REPEATABLE_READ specified.
Since line 3 happens outside the scope of the transaction, the transaction correctly treats this as a different, concurrent transaction modifying the value. And since you have already read the value as null, you will always see it as null for the scope of the transaction.
As proof, try running your test either without the tx.begin() and tx.commit(), or specify a weaker isolation level like READ_COMMITTED.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217541#4217541
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217541
17 years, 2 months
[JBossWS] - javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://mtn/
by priyanjan
I am using Jrun4 server and some web services deployed on it.Client application,that accessing these services is deployed on JBoss 4.0.4.GA server.both servers are on same machine.JBoss server url is SSL secured.I wish to migrate web services from JRun server to JBoss 4.0.5.GA(same server on which client application is running).I have created web services for jboss(java classes are same as deployed on jrun server) and deployed on same server.Client application retrieves web service url from a property file.i have configured this property file with my new web service url(url of web services that are deployed on Jboss).But when i try to access these services from client application, an exception is thrown.This is as follows:
javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://mtn/jaws}WebServiceRegistrationPort does not contain operation meta data for: {http://soapinterop.org/}webUserRegistration
at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
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)
WebServiceRegistration is a web service that is deployed on JBoss server.
Please help me to sort out this problem.
waiting for your suggestions
-- priyanjan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217537#4217537
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217537
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: Log message to screen - possible in Weblogic, is it poss
by valatharv
Thanks for the reply.
We are generating application logs correctly using log jboss-log4j.xml
Log file is generated under
"C:\jboss-4.2.3\server\default\log\.log"
Sample jboss-log4j content from dev machine.
<appender name="aTPPiclMetaDataSeam_FILE" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Threshold" value="DEBUG"/>
| <param name="File" value="${jboss.server.log.dir}/<appSepcific>.log"/>
| <param name="Append" value="true"/>
| <param name="MaxFileSize" value="10240KB"/>
| <param name="MaxBackupIndex" value="2"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
What we need is Admin should be able to see .log on BROWSER using some url.
I have seen this done by Weblogic serv admins., they provided us the url and we were able to see any log generation on Browser.
May be it is very simple but I need to investigate more.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217528#4217528
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217528
17 years, 2 months