Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!

Arvind Subramanian

Ranch Hand
+ Follow
since Jul 25, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arvind Subramanian

How to assign a negative number (-123 or -123.00) to a ModelDriven bean (implements ModelDriven< Bean >). When i try passing the value through request for that action it throws below exception

variable in modeldriven bean is declare as Float
9 years ago
thanks, prob in the XML parser. Now apache are working fine until now
Im getting this error randomly in the web application which does the XML-XSL transformation. Same data when reloaded exception does not occur.

----------error 1

-----------------------------------error 2


Is it anyway related to the xml parser which we configured for our webapps?

sorry to say wrongly, its not classnotfound exception . It is NoClassDefFoundError

10 years ago
Recently in our web application deployed in tomcat, some weird problem is raising very frequently.
Some of the servlet or class in that web app are getting unloaded. So when the request comes it is sending 404 status or class-not-found exception.
So what we do is reload the context/application from the tomcat manager and then it will work fine.

Searched lot but cant able to find solution to this unloading or classnotfound problem.
Can anyone suggest me why this is happening.
10 years ago

vijayakumar durai wrote:you can use wihtout scriptlet


this will work only for parameters not attributes.
for attribute we can use attribute name directly ${String1}
10 years ago
Can i know the details about this log which is gathered from Tomcat
Is there any meaningful fact available? Will be more clear if each parts was expalined with meaning for GC and Full Gc statment. Please just some good site for, (i tried to Google it but cant able to find it).

[GC [PSYoungGen: 170224K->26928K(188864K)] 1926777K->1812641K(2053056K), 0.1077730 secs] [Times: user=0.78 sys=0.00, real=0.11 secs]
[GC [PSYoungGen: 170864K->27280K(188032K)] 1956577K->1840326K(2052224K), 0.1145230 secs] [Times: user=0.80 sys=0.00, real=0.12 secs]
[GC [PSYoungGen: 171216K->27064K(190400K)] 1984262K->1867538K(2054592K), 0.1183770 secs] [Times: user=0.80 sys=0.00, real=0.12 secs]
[Full GC [PSYoungGen: 27064K->0K(190400K)] [ParOldGen: 1840474K->1820306K(1864192K)] 1867538K->1820306K(2054592K) [PSPermGen: 58035K->58020K(77184K)], 14.45\
67770 secs] [Times: user=64.46 sys=0.87, real=14.45 secs]
[GC [PSYoungGen: 147008K->27058K(189568K)] 1967314K->1847365K(2053760K), 0.0530800 secs] [Times: user=0.35 sys=0.00, real=0.06 secs]
[GC [PSYoungGen: 174066K->41776K(171712K)] 1994373K->1875904K(2035904K), 0.1004550 secs] [Times: user=0.71 sys=0.00, real=0.10 secs]
[Full GC [PSYoungGen: 41776K->40684K(171712K)] [ParOldGen: 1834128K->1833080K(1864192K)] 1875904K->1873764K(2035904K) [PSPermGen: 58020K->58020K(74624K)], 6\
.2061280 secs] [Times: user=20.23 sys=0.87, real=6.21 secs]
[Full GC [PSYoungGen: 170604K->40681K(171712K)] [ParOldGen: 1833080K->1857355K(1864192K)] 2003684K->1898037K(2035904K) [PSPermGen: 58020K->58020K(72576K)], \
13.6178870 secs] [Times: user=31.83 sys=16.64, real=13.62 secs]
[Full GC [PSYoungGen: 170601K->63240K(171712K)] [ParOldGen: 1857355K->1857057K(1864192K)] 2027957K->1920297K(2035904K) [PSPermGen: 58020K->58020K(70528K)], \
6.6705100 secs] [Times: user=25.12 sys=1.64, real=6.67 secs]
[Full GC [PSYoungGen: 170502K->0K(171712K)] [ParOldGen: 1857057K->53216K(1864192K)] 2027560K->53216K(2035904K) [PSPermGen: 58116K->58105K(68736K)], 0.282933\
0 secs] [Times: user=0.66 sys=0.00, real=0.28 secs]
[GC [PSYoungGen: 129920K->51504K(181440K)] 183136K->145940K(2045632K), 0.1047840 secs] [Times: user=0.68 sys=0.00, real=0.10 secs]
[GC [PSYoungGen: 181424K->51504K(129216K)] 275860K->275211K(1993408K), 0.2108990 secs] [Times: user=1.55 sys=0.02, real=0.21 secs]
[GC [PSYoungGen: 129200K->77632K(155328K)] 352907K->353255K(2019520K), 0.1386410 secs] [Times: user=0.93 sys=0.01, real=0.14 secs]
[GC [PSYoungGen: 155328K->76016K(155328K)] 430951K->429831K(2019520K), 2.2106590 secs] [Times: user=17.15 sys=0.31, real=2.21 secs]
10 years ago
i cant able to find the root cause, but after having many frustrating hrs reinstalled webserver tomcat as per

and now its working fine. but till now dont know the problem.
11 years ago
<%@page language="java" session="false" %>
<%@include file="home_header.jsp"%>
<%@include file="home_body.jsp"%>

should we have to add the session false in the included sub jsp or jspf too?

I have many number of jsp files, is there any other more generic solution to solve this problem instead of adding the session-false in all the jsp files?
11 years ago
I have configured tomcat in netbeans. When ever i request a jsp page, a new session is created. I found this by creating the session listener. so if i set a attribute in session i cant able to get in another jsp page. where is the problem. I even increased session timeout for 30 mins. where will be the problem?
11 years ago
Whether java version problem will occur in xmlencodeer and xmldecoder? In future when java get upgrade will it decode the xml of older version? or even java 6 xml can be read same as by java 5??
11 years ago
sorry ranch i got, problem is with flush. when i added encoder flush it returned the string content.
11 years ago
its not working.
The xml string is printing when i tested ByteArrayOutputStream.. Is my code is correct, sorry i am poor in stream concepts..

try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(baos));
System.out.println("---------"+new String( baos.toByteArray() ));
} catch (Exception e) {
11 years ago
thanks rok.. thats wat i excepted .. i will try n post it
11 years ago
nothing went wrong.. wat i need is how to get the xml string from that encoder directly..
11 years ago