Sang-Wook Kim

Ranch Hand
+ Follow
since Jan 07, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sang-Wook Kim

Is there any other way to solve this memory issue?
17 years ago
Hi,

I have downloaded an applet that renders images and I have

a problem with Java memory. I remember that default maximum

size that applet can use is 70MB, and the problem is 70MB is

not enough when rendering big images. It is OK when I add

"-Xmx -Xms" parameters in the Java Control but I cannot tell

everyone who wants to see my images to go control panel, add

parameters etc..

So my question is...

Is it possible add "-Xmx -Xms" parameters inside the applet file

so that these parameters run automatically when executing applet?

Thanks in advance for your reply!

Hyung
17 years ago
I have found out that the problem came from HTML Converted code...

The code above is converted using HTMLConverter so that it can be run

on any platform & any browser but MS IE7 generates Runtime Visual C++

Error at certain part. (I am not sure exactly which part)

Hyung
17 years ago
Hi,

"Press Spacebar or Enter to activate this control"

Many of you have might have seen this message when running applets

on Windows. One thing I don't understand is even if I press Spacebar

or Enter, nothing happens. The only way to activate the control is to

click inside the border of the applet.

Well, somehow I can activate the control but this message is lying in

my case.

I Suddenly got curious... Anybody have an idea?

Thanks in advance.

Hyung
17 years ago
Hi,

I've just found out that my applet works fine except in Internet

Explorer 7. Both simple applet code as well as the htmlconverted

applet code do not work only in Internet Explorer 7!

Anybody have a clue?

The following is my simple applet code. It simply doesn't display anything!



And the html converted applet code is as follows..
This gives an Visual C++ runtime error.



I have no idea what MS has done to IE7...

Any help would be appreciated!

Hyung

[ edited by Ulf Dittmer for better readability ]
[ April 24, 2007: Message edited by: Ulf Dittmer ]
17 years ago
Hello Ilja,

I want to write unit test and my application is built with STRUTS,
iBATIS, HIBERNATE, and SPRING frameworks. Basically I wish to test
every unit of the application and realized that it wouldn't be a simple
job only with JUnit.

I just found Cactus and HttpUnit but I still see many other frameworks..
Could you plz give me some advices? Thank you in advance!
18 years ago
Hello,

I am searching for test frameworks for Web Applications and I just found
out that there are many many testing frameworks. The only test framework
I know is "JUnit" and I saw many JUnit extensions for Web Applications on

http://www.junit.org/news/extension/web/index.htm

Could you please recommend me testing frameworks for Web Applications
which are easy to use, widely used and enough references are available?

Thank you in advance for you reply!
18 years ago
Hi,

I am currently working with threads and I've just read the Javadoc

of "Thread.interrupt()" and it's written:

[If this thread is blocked in an invocation of the wait(), wait(long), or wait(long, int) methods of the Object class, or of the join(), join(long), join(long, int), sleep(long), or sleep(long, int), methods of this class, then its interrupt status will be cleared and it will receive an InterruptedException.

I am not sure what "its interrupt status will be cleared" exactly means.

The only thing I know is that this method stops the thread considering

the thread's condition. But I don't know what interrupt status means..

Could somebody plz explain about interrupt status?

Thanks in advance.

Hyung Kim
Hi,

I get the following error from the very beginning. I have installed J2SE 1.4 and J2EE 1.3 and tried to run the j2ee server and it gives the following error message.

----------------------------------------------------------------------

C:\Documents and Settings\김상욱>j2ee -verbose
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.internal.corba.ORB.getLocalHostName(ORB.java:925)
at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
ORB.java:889)
at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:458)
at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
a:336)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:367)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:191)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)

J2EE server listen port: 1050
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.internal.corba.ORB.getLocalHostName(ORB.java:925)
at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
ORB.java:889)
at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:458)
at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
a:336)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:77)
at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:376)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:191)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)

java.lang.NullPointerException
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)

java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)

java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
J2EE server reported the following error: Unable to create ORB. Possible causes
include TCP/IP ports in use by another process
Error executing J2EE server ...

----------------------------------------------------------------------

I checked the port number and 1050 was free. Could somebody help with this?

Thank you in advance.

Hyung.
Hi,

I agree with Ko Ko. Write a very simple "Hello, World" example and build it with WTK and WTK will compile, preverify, create JAD file as well as MANIFEST file automatically. After bulding the application, have a look inside the files created and I believe you will have a better understanding!

Hyung Kim
(SCJD 1.4)
Hi,

WTK2.1 provides tools for monitoring applications including memory

usage. See chapter 4 - Performance Tuning and Monitoring Applications

of the WTK2.1 User's Guide. Memory Monitor graph shows the maximum

amount of memory used since program execuyion began. So you would

probably have to use all the functions of your application to see

the maximum amount of memory used. Please note that memory monitor

simply provides you with possible indicators of excessive momey use for

the emulation.

Hope this helped.

Hyung Kim
(SCJD 1.4)
Hello,

I have my web services application built, and I am trying to

add signature & encryption to SOAP messages using Apache XML

Security but I am not sure how to retrieve SOAP message before

sending. Since I used "wsdeploy" and "wscompile", the stub & tie

class files are automaticlly generated and I don't know how to

add security. If I used SAAJ, I can create DOM documents and sign

& encrypt but then I have to write the SOAP message manually, right?

Could somebody help me with this?
20 years ago
Hello,

I am using JWSDP1.1 and I am trying to sign a SOAP message using

Apache XML Security (xmlsec.jar). I know how to sign and validate

xml files, but the problem is that I don't find a way to retrieve the

SOAP message before transmitting. Does anybody have succeeded XML

signature using JWSDP and ApacheXML Security? If so, could you please

let me know how you extracted the SOAP message?
20 years ago
Congratulations!!!
You won your appeal!
20 years ago
First of all, thanks to all who answered my questions!!!
Below is my detail scores:
General Considerations (maximum = 100): 97
Documentation (maximum = 70): 70
O-O Design (maximum = 30): 29
GUI (maximum = 40): 28
Locking (maximum = 80): 44
Data store (maximum = 40): 40
Network server (maximum = 40): 40
I don't know why I lost so many points in Locking.
Basically my locking mechanism is based on the sample
project (Denny's DVD)from the book of Apress - "The
Sun Certified Java Developer Exam with J2SE 1.4 -
Habibi, Patterson, Camerlengo"
Good luck to you all with your exams and thanks again
to all who helped me to pass SCJD.
Regards,
Kim
20 years ago