Satyajit Bhadange

Ranch Hand
+ Follow
since May 13, 2010
Merit badge: grant badges
For More
Mumbai
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Satyajit Bhadange

Hi,

I saw that push and pop method are in LinkedList class.
I feel this method belongs to Stack so they should be in Stack only and not in LinkedList.
So why there are these method in LinkedList. I feel for similar functionality, there are methods addRemove() addFirst().

9 years ago
I have one Tomcat Server A and Tomcat Server B running.
Both A and B can be accessed through Browser.
But A needs few services from B. What is a good way to send request to server B from server A ?
Can I use Remote method Invocation through Servlets ?
If yes then how to implement the same ?
I have implemented RMI through java but not through servlets ?
11 years ago
Hi,

I have developed a small application and it ran well on my local machine. I deployed it on Hosting site "http://s43.eatj.com" and also created the database there. But i am getting exception when trying to access it.

Can anyone please help ...

The exception which i am getting is



I am using above regex to replace span tag in String, but its not working for me. Can i get some help ?

Thank You
11 years ago
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
com.cramer.core.common.CramerRuntimeException caused by java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:193)
at weblogic.jdbc.wrapper.JTSConnection.setAutoCommit(JTSConnection.java:623)
at sun.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.cramer.core.datasource.ds.TimeoutableInvocationHandler.invokeMethod(TimeoutableInvocationHandler.java:47)
at com.cramer.core.datasource.ds.ConnectionInvocationHandler.invoke(ConnectionInvocationHandler.java:265)
at $Proxy106.setAutoCommit(Unknown Source)
at com.cramer.core.server.CramerConnectionManagerImpl.createConnection(CramerConnectionManagerImpl.java:92)
at com.cramer.core.server.CMTReadOnlyConnectionManager.getConnection(CMTReadOnlyConnectionManager.java:102)
at com.cramer.core.server.CramerSessionBeanImpl.getConnection(CramerSessionBeanImpl.java:300)
at com.cramer.core.server.CramerSQLJServiceImpl.setSQLJContext(CramerSQLJServiceImpl.java:44)
at com.cramer.core.framework.serviceimpl.BundleServiceImpl.getBundleFamily(BundleServiceImpl.java:73)
at sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
at com.cramer.core.server.CramerSessionBeanImpl.performCoreSecurity(CramerSessionBeanImpl.java:82)
at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy105.getBundleFamily(Unknown Source)
at com.cramer.core.framework.serviceimpl.BundleService_2xwlpc_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.cramer.core.framework.serviceimpl.BundleService_2xwlpc_EOImpl.getBundleFamily(Unknown Source)
at com.cramer.core.framework.serviceimpl.BundleService_2xwlpc_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
,FaultID=133AC6B253672B804DE346E2391,Message=java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at com.cramer.core.framework.ejb._BundleService_Stub.getBundleFamily(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.cramer.core.proxy.MappedServiceDispatcher.invokeMethod(MappedServiceDispatcher.java:361)
at com.cramer.core.proxy.MappedRMIServiceDispatcher.invokeMethod(MappedRMIServiceDispatcher.java:109)
at com.cramer.core.proxy.MappedServiceDispatcher$1.execute(MappedServiceDispatcher.java:280)
at com.cramer.core.common.ActionWithClassLoader.executeWithException(ActionWithClassLoader.java:84)
at com.cramer.core.proxy.MappedServiceDispatcher.invokeMethodWithClassLoader(MappedServiceDispatcher.java:275)
at com.cramer.core.proxy.MappedServiceDispatcher.invoke(MappedServiceDispatcher.java:227)
at com.cramer.core.proxy.MappedServiceDispatcher.invoke(MappedServiceDispatcher.java:198)
at $Proxy3.getBundleFamily(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.cramer.core.proxy.MappedServiceDispatcher.invokeMethod(MappedServiceDispatcher.java:361)
at com.cramer.core.proxy.MappedServiceDispatcher$1.execute(MappedServiceDispatcher.java:280)
at com.cramer.core.common.ActionWithClassLoader.executeWithException(ActionWithClassLoader.java:84)
at com.cramer.core.proxy.MappedServiceDispatcher.invokeMethodWithClassLoader(MappedServiceDispatcher.java:275)
at com.cramer.core.proxy.MappedServiceDispatcher.invoke(MappedServiceDispatcher.java:227)
at com.cramer.core.proxy.MappedServiceDispatcher.invoke(MappedServiceDispatcher.java:198)
at com.cramer.core.client.TryRMIProxyFactory$Dispatcher.invoke(TryRMIProxyFactory.java:73)
at $Proxy3.getBundleFamily(Unknown Source)
at com.cramer.core.framework.service.BundleManagerHelper.getBundlesFromBundleService(BundleManagerHelper.java:212)
at com.cramer.core.framework.service.BundleManagerHelper.getCramerResourceBundle(BundleManagerHelper.java:120)
at com.cramer.core.framework.service.BundleManagerHelper.getBundle(BundleManagerHelper.java:91)
at com.cramer.core.client.ClientBundleManagerImpl.getBundle(ClientBundleManagerImpl.java:70)
at com.cramer.core.client.g11n.CramerFormatter.<init>(CramerFormatter.java:94)
at com.cramer.core.client.CramerApplet.initLookAndFeel(CramerApplet.java:477)
at com.cramer.core.client.CramerApplet.init(CramerApplet.java:204)
at com.cramer.core.boot.CramerAppletWrapper.init(CramerAppletWrapper.java:115)
at com.cramer.core.boot.CramerContainerApplet.initChild(CramerContainerApplet.java:755)
at com.cramer.core.boot.CramerContainerApplet.access$700(CramerContainerApplet.java:76)
at com.cramer.core.boot.CramerContainerApplet$4.execute(CramerContainerApplet.java:742)
at com.cramer.core.boot.ActionWithClassLoader.executeWithException(ActionWithClassLoader.java:86)
at com.cramer.core.boot.ActionWithClassLoader.execute(ActionWithClassLoader.java:105)
at com.cramer.core.boot.ActionWithClassLoader$1EventThreadRunnable.run(ActionWithClassLoader.java:132)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Any Idea why i am getting this error ?
I knew only little about javap tool, to see the methods of class. Thanks Again.

I tried manipulating method signature with final,static, final static and normal method.

In case of final,static and final static it gives same output.

Also i checked with final instance variable..It replaces value of final variable with actual value.
12 years ago
Wow.

This

javap -c -private Test

is amazing.

OffTopic : from where did you learn this commands.Can you give link or references.
12 years ago
Thanks to both of you.

I will try what you suggested.
12 years ago

You can simply fling the whole thing into the “losers” bin



what do you mean by above line ?
12 years ago
By Inlined i meant...if method is static then is code of static method copied to the line where it is called or normal method call is executed.
As in case of final primitives ,wherever i is called.i assume 10 will be replaced in the code during compilation itself.
Does it happen in case of static method calls ?
12 years ago
Hi,

The question I want to ask is "Are static methods inlined in java ?". And during coding competitions if one declares his methods all Static then how is it going to affect execution time ?
12 years ago
yes it doesn't go into infinite loop ,it just waits for user input .

and secondly ,what condition should go in while statement so that loop terminates even if there is no null given. ?
12 years ago
i am running code on eclipse.
I am copying input and pasting it into eclipse console.
while reading last line,it goes into infinte loop.
12 years ago