Biju Nair

Ranch Hand
+ Follow
since Dec 15, 2001
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 Biju Nair

Any docs/sites where I can get a comparison between the diff technologies?

Thanx and Regards
Biju Nair
17 years ago
Hi All

I have a requirement like this.

A java client application (can be a web based or a standalone java app) which makes a query to a remote server (again java). The server is to process this query, get some values from the DB and build an xml file and return it back to the client. There can be mulitple clients sending queries to the server. What would be the best way to implement this and why?

Is it a good idea (in terms of performance and reliability) to implement this using SOAP with attachments? But in that case, will I be able to use this from non web based java clients? How about XML-RPC?

Please help !!


Thanx and Regards
Biju Nair
17 years ago
Hi

Please help me in solving this problem

I have a map which stores a key pair value. key is a integer and the corresponding value is an array of strings. I want to implement a bi-directional map in such a way that if I pass any one value in an array, it should return me the corresponding integer value.

If someone can provide some sample code, please do..

I have tried the BidiMap in apache commons-collections, but didn't help
17 years ago
Hi

Please help me in solving this problem

I have a map which stores a key pair value. key is a integer and the corresponding value is an array of strings. I want to implement a bi-directional map in such a way that if I pass any one value in an array, it should return me the corresponding integer value.

If someone can provide some sample code, please do..

I have tried the BidiMap in apache commons-collections, but didn't help

Thanx n Regards
Biju Nair
17 years ago
Thanx David

Did u mean to upgrade the JVM version? or Tomcat ?


BN
17 years ago
I have an application running on Tomcat4.0. This applications hangs after a few hrs of use after which I have to restart the tomcat. Am getting the following error


Unexpected Signal : 11 occurred at PC=0x4030FE22
Function=handle_failed_promotion__16GenCollectedHeapP10GenerationP7oopDescUiPP7oopDesc+0x2E
Library=/usr/java/j2sdk1.4.1_02/jre/lib/i386/server/libjvm.so


Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:05 368717 /usr/java/j2sdk1.4.1_02/bin/java
0804e000-0804f000 rw-p 00005000 03:05 368717 /usr/java/j2sdk1.4.1_02/bin/java
40000000-40015000 r-xp 00000000 03:03 540674 /lib/ld-2.3.2.so
40015000-40016000 rw-p 00014000 03:03 540674 /lib/ld-2.3.2.so
40017000-4001a000 r--s 00000000 03:05 194162 /usr/java/j2sdk1.4.1_02/jre/lib/ext/dnsns.jar
4001a000-40021000 r--s 00000000 03:02 619375 /ten/transe3.0/system/tomcat/bin/bootstrap.jar
40021000-4002b000 r-xp 00000000 03:03 638982 /lib/tls/libpthread-0.29.so
4002b000-4002c000 rw-p 0000a000 03:03 638982 /lib/tls/libpthread-0.29.so
4002e000-40030000 r-xp 00000000 03:03 540685 /lib/libdl-2.3.2.so
40030000-40031000 rw-p 00002000 03:03 540685 /lib/libdl-2.3.2.so
40032000-404cb000 r-xp 00000000 03:05 354169 /usr/java/j2sdk1.4.1_02/jre/lib/i386/server/libjvm.so
404cb000-40703000 rw-p 00498000 03:05 354169 /usr/java/j2sdk1.4.1_02/jre/lib/i386/server/libjvm.so
40715000-40727000 r-xp 00000000 03:03 540689 /lib/libnsl-2.3.2.so
40727000-40728000 rw-p 00011000 03:03 540689 /lib/libnsl-2.3.2.so
4072a000-4074b000 r-xp 00000000 03:03 638980 /lib/tls/libm-2.3.2.so
4074b000-4074c000 rw-p 00020000 03:03 638980 /lib/tls/libm-2.3.2.so
4074c000-40755000 r-xp 00000000 03:05 322167 /usr/java/j2sdk1.4.1_02/jre/lib/i386/native_threads/libhpi.so
40755000-40756000 rw-p 00008000 03:05 322167 /usr/java/j2sdk1.4.1_02/jre/lib/i386/native_threads/libhpi.so
40757000-40767000 r-xp 00000000 03:05 290189 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libverify.so
40767000-40769000 rw-p 0000f000 03:05 290189 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libverify.so
40769000-4078a000 r-xp 00000000 03:05 290177 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libjava.so
4078a000-4078c000 rw-p 00020000 03:05 290177 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libjava.so
4078c000-407a1000 r-xp 00000000 03:05 290190 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libzip.so
407a1000-407a3000 rw-p 00014000 03:05 290190 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libzip.so
407a3000-41e72000 r--s 00000000 03:05 242184 /usr/java/j2sdk1.4.1_02/jre/lib/rt.jar
41eb5000-41ecc000 r--s 00000000 03:05 242185 /usr/java/j2sdk1.4.1_02/jre/lib/sunrsasign.jar
41ecc000-41f3d000 r--s 00000000 03:05 242178 /usr/java/j2sdk1.4.1_02/jre/lib/jsse.jar
41f3d000-41f50000 r--s 00000000 03:05 242177 /usr/java/j2sdk1.4.1_02/jre/lib/jce.jar
41ff8000-41ffb000 r--s 00000000 03:02 619373 /ten/transe3.0/system/tomcat/bin/commons-daemon.jar
41ffb000-42000000 r--s 00000000 03:02 195887 /ten/transe3.0/system/tomcat/common/lib/naming-factory.jar
42000000-4212e000 r-xp 00000000 03:03 638978 /lib/tls/libc-2.3.2.so
4212e000-42131000 rw-p 0012e000 03:03 638978 /lib/tls/libc-2.3.2.so
42133000-423ef000 r--s 00000000 03:05 242165 /usr/java/j2sdk1.4.1_02/jre/lib/charsets.jar
443ef000-443f0000 r--s 00000000 03:02 212196 /ten/transe3.0/system/tomcat/server/lib/CachingServlet.jar
5809f000-5829f000 r--p 00000000 03:05 192165 /usr/lib/locale/locale-archive
5829f000-582aa000 r-xp 00000000 03:03 540695 /lib/libnss_files-2.3.2.so
582aa000-582ab000 rw-p 0000a000 03:03 540695 /lib/libnss_files-2.3.2.so
5882b000-588ca000 r--s 00000000 03:05 194164 /usr/java/j2sdk1.4.1_02/jre/lib/ext/localedata.jar
588ca000-588d8000 r--s 00000000 03:05 194163 /usr/java/j2sdk1.4.1_02/jre/lib/ext/ldapsec.jar
588d8000-588f5000 r--s 00000000 03:05 194165 /usr/java/j2sdk1.4.1_02/jre/lib/ext/sunjce_provider.jar
588f5000-58da9000 r--s 00000000 03:05 178181 /usr/java/j2sdk1.4.1_02/lib/tools.jar
58da9000-58dd2000 r--s 00000000 03:02 195882 /ten/transe3.0/system/tomcat/common/lib/commons-collections.jar
58dd2000-58e36000 r--s 00000000 03:02 195884 /ten/transe3.0/system/tomcat/common/lib/jxl.jar
58e36000-58e4a000 r--s 00000000 03:02 195885 /ten/transe3.0/system/tomcat/common/lib/servlet.jar
58e4a000-58e77000 r--s 00000000 03:02 195886 /ten/transe3.0/system/tomcat/common/lib/jasper-compiler.jar
58e77000-58e89000 r--s 00000000 03:02 195888 /ten/transe3.0/system/tomcat/common/lib/jasper-runtime.jar
58e89000-58f2e000 r--s 00000000 03:02 195889 /ten/transe3.0/system/tomcat/common/lib/itext-1.00.jar
58f2e000-58f38000 r--s 00000000 03:02 195890 /ten/transe3.0/system/tomcat/common/lib/naming-resources.jar
58f38000-58fe8000 r--s 00000000 03:02 195891 /ten/transe3.0/system/tomcat/common/lib/ant.jar
58fe8000-58fed000 r--s 00000000 03:02 195892 /ten/transe3.0/system/tomcat/common/lib/commons-logging-api.jar
58fed000-58ff4000 r--s 00000000 03:02 195893 /ten/transe3.0/system/tomcat/common/lib/naming-common.jar
58ff4000-58ff8000 r--s 00000000 03:02 212171 /ten/transe3.0/system/tomcat/server/lib/catalina-ant.jar
58ff8000-59010000 r--s 00000000 03:02 212172 /ten/transe3.0/system/tomcat/server/lib/tomcat-jk2.jar
59010000-59021000 r--s 00000000 03:02 212175 /ten/transe3.0/system/tomcat/server/lib/tomcat-coyote.jar
59021000-5904f000 r--s 00000000 03:02 212176 /ten/transe3.0/system/tomcat/server/lib/tomcat-util.jar
5904f000-5905b000 r--s 00000000 03:02 212177 /ten/transe3.0/system/tomcat/server/lib/tomcat-http11.jar
5905b000-59075000 r--s 00000000 03:02 212178 /ten/transe3.0/system/tomcat/server/lib/jaas.jar
59075000-59077000 r--s 00000000 03:02 212180 /ten/transe3.0/system/tomcat/server/lib/servlets-common.jar
59077000-59079000 r--s 00000000 03:02 212183 /ten/transe3.0/system/tomcat/server/lib/servlets-invoker.jar
59079000-59081000 r--s 00000000 03:02 212184 /ten/transe3.0/system/tomcat/server/lib/commons-logging.jar
59081000-590d5000 r--s 00000000 03:02 212185 /ten/transe3.0/system/tomcat/server/lib/mx4j-jmx.jar
590d5000-590f0000 r--s 00000000 03:02 212186 /ten/transe3.0/system/tomcat/server/lib/commons-digester.jar
590f0000-591a9000 r--s 00000000 03:02 212187 /ten/transe3.0/system/tomcat/server/lib/catalina.jar
591a9000-591ae000 r--s 00000000 03:02 212188 /ten/transe3.0/system/tomcat/server/lib/servlets-default.jar
591ae000-591b4000 r--s 00000000 03:02 212189 /ten/transe3.0/system/tomcat/server/lib/commons-fileupload-1.0.jar
591b4000-591b9000 r--s 00000000 03:02 212190 /ten/transe3.0/system/tomcat/server/lib/servlets-manager.jar
591b9000-591c0000 r--s 00000000 03:02 212191 /ten/transe3.0/system/tomcat/server/lib/jakarta-regexp-1.3.jar
591c0000-591c6000 r--s 00000000 03:02 212192 /ten/transe3.0/system/tomcat/server/lib/tomcat-warp.jar
591c6000-591e1000 r--s 00000000 03:02 212193 /ten/transe3.0/system/tomcat/server/lib/commons-modeler.jar
591e1000-591f1000 r--s 00000000 03:02 212194 /ten/transe3.0/system/tomcat/server/lib/tomcat-jk.jar
591f1000-5920e000 r--s 00000000 03:02 212195 /ten/transe3.0/system/tomcat/server/lib/commons-beanutils.jar
5920e000-59214000 r--s 00000000 03:02 212197 /ten/transe3.0/system/tomcat/server/lib/servlets-webdav.jar
59214000-59224000 r-xp 00000000 03:05 290186 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libnet.so
59224000-59226000 rw-p 0000f000 03:05 290186 /usr/java/j2sdk1.4.1_02/jre/lib/i386/libnet.so
592a6000-592c8000 r--s 00000000 03:02 1922370 /ten/transe3.0/contexts/WEB-INF/lib/Tidy.jar
592c8000-592e2000 r--s 00000000 03:02 1922383 /ten/transe3.0/contexts/WEB-INF/lib/bsf.jar
592e2000-592ea000 r--s 00000000 03:02 1922379 /ten/transe3.0/contexts/WEB-INF/lib/com.ice.tar.jar
592ea000-592f0000 r--s 00000000 03:02 1922368 /ten/transe3.0/contexts/WEB-INF/lib/itext-xml-1.01.jar
592f0000-592f2000 r--s 00000000 03:02 1922378 /ten/transe3.0/contexts/WEB-INF/lib/tm-extractors-0.2.jar
592f3000-592f7000 r--s 00000000 03:02 1922381 /ten/transe3.0/contexts/WEB-INF/lib/JSMTP.jar
592f7000-592fb000 r--s 00000000 03:02 1922366 /ten/transe3.0/contexts/WEB-INF/lib/sax.jar
59600000-5960e000 r--s 00000000 03:02 1922364 /ten/transe3.0/contexts/WEB-INF/lib/JLex.jar
5960e000-597c0000 r--s 00000000 03:02 1922365 /ten/transe3.0/contexts/WEB-INF/lib/PDFBox-0.6.5.jar
597c0000-597d9000 r--s 00000000 03:02 1922384 /ten/transe3.0/contexts/WEB-INF/lib/commons-dbcp-1.1.jar
597d9000-597e3000 r--s 00000000 03:02 1922385 /ten/transe3.0/contexts/WEB-INF/lib/commons-pool-1.1.jar
597e4000-597f0000 r--s 00000000 03:02 1922360 /ten/transe3.0/contexts/WEB-INF/lib/activation.jar
597f0000-5981c000 r--s 00000000 03:02 1922376 /ten/transe3.0/contexts/WEB-INF/lib/commons-httpclient.jar
5981c000-598c7000 r--s 00000000 03:02 1922375 /ten/transe3.0/contexts/WEB-INF/lib/itext-1.01.jar
598c7000-598fb000 r--s 00000000 03:02 1922367 /ten/transe3.0/contexts/WEB-INF/lib/jabberbeans.jar
59a00000-59b2d000 r--s 00000000 03:02 1922371 /ten/transe3.0/contexts/WEB-INF/lib/fop.jar
59b2d000-59b40000 r--s 00000000 03:02 1922380 /ten/transe3.0/contexts/WEB-INF/lib/jakarta-oro-2.0.1.jar
59b40000-59b91000 r--s 00000000 03:02 1922184 /ten/transe3.0/contexts/WEB-INF/lib/jcommon-0.9.5.jar
59b91000-59bb3000 r--s 00000000 03:02 1922358 /ten/transe3.0/contexts/WEB-INF/lib/jdom.jar
59bb3000-59bc1000 r--s 00000000 03:02 1922361 /ten/transe3.0/contexts/WEB-INF/lib/jep-2.22.jar
59bc1000-59bcf000 r--s 00000000 03:02 1922362 /ten/transe3.0/contexts/WEB-INF/lib/jep-2.24.jar
59bcf000-59cb2000 r--s 00000000 03:02 1922183 /ten/transe3.0/contexts/WEB-INF/lib/jfreechart-0.9.20.jar
59cb2000-59d16000 r--s 00000000 03:02 1922185 /ten/transe3.0/contexts/WEB-INF/lib/jxl.jar
59d16000-59d3d000 r--s 00000000 03:02 1922377 /ten/transe3.0/contexts/WEB-INF/lib/log4j.jar
59d3d000-59d5e000 r--s 00000000 03:02 1922373 /ten/transe3.0/contexts/WEB-INF/lib/lucene-1.2-rc2.jar
59d5e000-59d9c000 r--s 00000000 03:02 1922374 /ten/transe3.0/contexts/WEB-INF/lib/lucene-1.3.jar
59d9c000-59dbd000 r--s 00000000 03:02 1922372 /ten/transe3.0/contexts/WEB-INF/lib/lucene.jar
59dbd000-59e02000 r--s 00000000 03:02 1922369 /ten/transe3.0/contexts/WEB-INF/lib/mail.jar
59e02000-59e3c000 r--s 00000000 03:02 1922354 /ten/transe3.0/contexts/WEB-INF/lib/majix.jar
59e3c000-59e71000 r--s 00000000 03:02 1922356 /ten/transe3.0/contexts/WEB-INF/lib/mysql-connector-java-3.0.8-stable-bin.jar
59e71000-59e9b000 r--s 00000000 03:02 1922359 /ten/transe3.0/contexts/WEB-INF/lib/org.htmlparser.jar
59e9b000-59f5e000 r--s 00000000 03:02 1922355 /ten/transe3.0/contexts/WEB-INF/lib/poi-2.5-final-20040302.jar
59f5e000-59f73000 r--s 00000000 03:02 1922363 /ten/transe3.0/contexts/WEB-INF/lib/w3c.jar
59f73000-59f88000 r--s 00000000 03:02 1922382 /ten/transe3.0/contexts/WEB-INF/lib/xmlParserAPIs.jar
59f88000-59f8e000 r--s 00000000 03:05 160292 /usr/lib/gconv/gconv-modules.cache
5a100000-5a2ba000 r--s 00000000 03:02 1922357 /ten/transe3.0/contexts/WEB-INF/lib/xerces.jar

Local Time = Tue Sep 14 15:39:56 2004
Elapsed Time = 273
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.1_02-b06 mixed mode)
#

Any one got a solution for this ??

Thanx in Advance
Biju Nair
17 years ago
I have a web application which uploads a file to the server. Is it possible to check the file size before I upload it to the server? Are there any java script code available for this.
My application is written using JAVA/JSP and deployed using Tomcat 4.0
I tried using "Scripting.FileSystemObject", but gives me an error "Automation server cant create object" Any idea why this error occurs?
Thanx in Advance
Biju Nair
These are diff implicit objects available in JSP,
Object Name -- Object Type
1. application -- javax.servlet.ServletContext
2. config -- javax.servlet.ServletConfig
3. exception -- java.lang.throwable
4. out -- javax.servlet.jsp.JspWriter
5. pageContext -- javax.servlet.jsp.PageContext
6. request -- javax.servlet.HttpServletRequest
7. response -- javax.servlet.HttpServletResponse
7. session -- javax.servet.http.HttpSession
[ September 29, 2003: Message edited by: Biju Nair ]
18 years ago
JSP
I have an application which is deployed using tomcat 4.0. When i try to forward a page with extension .mht or .mhtml, [i use response.sendRedirect("/path/sample.mht"); ], it does not display the page properly. Do i need to put some mime-mapping in web.xml , if yes what need to be put?
Thanx in Advance
Biju Nair
18 years ago
JSP
I think ur query should be
String query="SELECT Ssn, Password FROM Authentication "
+"WHERE Ssn ='"+userId+"' AND Password='"+password+"'";
20 years ago
JSP
Hi Sridhar,
The better option is to use the code suggested by David since it will not allow that page to be cached at all and you can ensure that it will not load from cache. The problem using javascript is that
1. it will refresh the page only after the page is loaded once.
2. It does not always ensure that page will not be loaded from cache.

20 years ago
JSP
Hi Frank,
Thanx for the reply.
I am running RedHat 7.1 on that machine. And except for squid, there are no other software installed ( specific to networking) on that machine. I plan to use it as proxy, gateway and an IMAP (which I have not installed and configured yet) mail server.
Thanx
Biju Nair
20 years ago
Hi
I am new to Linux networking. I have configured one linux machine as a proxy (squid) and 3 other linux machines use this proxy to connect to the internet. The problem is that I am not able to configure any mail client on the 3 machines. When I try to configure KDE or any other mail client o access a pop3 account (say yahoo), it gives an error message 'host not found'. Also I am not able to ping to any external IP from these 3 machines. Any idea how to solve this ?
Thanx
Biju Nair
20 years ago
Thanks Tim. Let me try it out.
20 years ago
Hi
I have got a printer installed on one of the Windows machines. The printer is set up as a shared printer and other windows machines use this printer for printing purpose. I want the linux machines in the same network to be able to share the same printer . How do I do that? I use samba to access linux shares from windows machines.
Thanx
Biju Nair
20 years ago