Peter Heng

Greenhorn
+ Follow
since Aug 12, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Peter Heng

Talking about performance, what are the tools most popular used for profiling and which can really tell which part of the processing of the code is deadlock? Besides, is there any site recommended for weblogic best tuning practice for the performance?
17 years ago
Hi, How can I explain Throughput in details for weblogic server which is present in the tab server>monitoring>performance?
17 years ago
If I want to flush my output to CSV file, I use:

response.setHeader("Content-Type", "application/octet-stream");
response.setHeader("Content-Disposition", "attachment; filename=download.csv");

But what to set for the Content-Type if I want my output in TXT file? Please help
18 years ago
JSP
Hi all,

I run weblogic 6.1 web server in AS400. But, when staring the server I always hit java.net.UnknownHostException: empty string. Is there any setting I miss out? Need somebody help immediately. Below is the stack trace:



Starting WebLogic Server ....
<Sep 22, 2006 8:42:18 PM JAVT> <Notice> <Management> <Loading configuration file /weblogic/610sp2/wlserver6.1/config/webserver/con
<Sep 22, 2006 8:42:58 PM JAVT> <Emergency> <Server> <Unable to initialize the server: 'Fatal initialization exception
Throwable: java.net.UnknownHostException: empty string
java.net.UnknownHostException: empty string
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33)
java/net/UnknownHostException.<init>(Ljava/lang/String;)V+1 (UnknownHostException.java:26)
java/net/InetAddress.getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;+11 (InetAddress.java:521)
java/net/InetAddress.getLocalHost()Ljava/net/InetAddress;+40 (InetAddress.java:718)
weblogic/rjvm/JVMID.setLocalID(Ljava/lang/String;Ljava/lang/String;[ILjava/lang/String;Ljava/lang/String;)V+7 (JVMID.java:12
weblogic/t3/srvr/T3Srvr.setJVMID()V+94 (T3Srvr.java:333)
weblogic/t3/srvr/T3Srvr.initialize()V+66 (T3Srvr.java:368)
weblogic/t3/srvr/T3Srvr.run([Ljava/lang/String;)I+147 (T3Srvr.java:202)
weblogic/Server.main([Ljava/lang/String;)V+39 (Server.java:35)
'>
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised:
java.net.UnknownHostException: empty string
java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33)
java/net/UnknownHostException.<init>(Ljava/lang/String;)V+1 (UnknownHostException.java:26)
java/net/InetAddress.getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;+11 (InetAddress.java:521)
java/net/InetAddress.getLocalHost()Ljava/net/InetAddress;+40 (InetAddress.java:718)
weblogic/rjvm/JVMID.setLocalID(Ljava/lang/String;Ljava/lang/String;[ILjava/lang/String;Ljava/lang/String;)V+7 (JVMID.java:12
weblogic/t3/srvr/T3Srvr.setJVMID()V+94 (T3Srvr.java:333)
weblogic/t3/srvr/T3Srvr.initialize()V+66 (T3Srvr.java:368)
weblogic/t3/srvr/T3Srvr.run([Ljava/lang/String;)I+147 (T3Srvr.java:202)
weblogic/Server.main([Ljava/lang/String;)V+39 (Server.java:35)
Reason: Fatal initialization exception
***************************************************************************
18 years ago
In MVC perspective, Spring serves at the View and Controller layer meanwhile Hibernate serves at the Model layer. Am I correct?
I have a weblogic 6.1 app server running with 1GB RAM on a windows server. Currently I have been using this option: -ms128m -mx512m. What is the optimum heap size to set?
19 years ago
I have been using Eclipse 3.0. Sometimes I may hit run out of memory problem. How to increase Eclipse heap size?
Hi,

Can we do thread dump in Apache HTTP Server?
19 years ago
Hi all,

Collection line = new ArrayList();

line.add("line1");
line.add("line2");
line.add("line3");
line.add("line4");
line.add("line5");

How can I revert the list above become as below:

line5
line4
line3
line2
line1

Thanks...
19 years ago
Does anyone knows where can I download a free and comprehensive Struts e-book?
19 years ago
I m new to Struts framework.
Is there any place on the internet where I can get a free and comprehensive copy of Struts ebook or downloadable tutorial?
20 years ago
CLASSPATH = C:\JRun4\lib\jrun.jar
PATH = C:\j2sdk1.4.1_05\bin
jrun.jar I use to compile servlet, it is provided by JRun 4.0 Server. And I use j2sdk1.4.1 to compile java class file. Is it something wrong here?
20 years ago
Initialy, I installed the j2sdk and try compiling and running program is ok. After installing other softwares into my computer, then it start to give me the below error message. The class file is 100 percent correct and just a simple "Hello World!" application. Can anybody figure it out for me?
C:\j2sdk1.4.1_05\bin>javac Test.java
C:\j2sdk1.4.1_05\bin>java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
20 years ago