grace chow

Greenhorn
+ Follow
since Oct 25, 2004
Merit badge: grant badges
For More
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 grace chow

Dear,
I have written a RMI and set the RMI port into 1099, however, find out that when start the RMI , it not only need the port of 1099 but also a random port. as we have to set restrict on the connection between RMI and the application server. it is not ok to open all the port for RMI..but we have checked RMI needs a random port... so do anyone know how to make the random port into a fix port..??? is there any program to make this random port into a fixed port?
Regards,
Dear ,
When I use JSP smart upload, I discovered that it has problem with SSL.
that when we upload file with SSL, the file sometimes can be uploaded. but sometimes, it cannot be uploaded. it is not stable.
But without SSL, it was fine.

Do anyone has this experience and know how to solve?

Regards,
18 years ago
JSP
Dear ,
When I use websphere to insert a row into Oralce Table
with the following code, it always have the exception like this:
EXCEPTION: com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement
java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.
Do you guys know what causes this problem!! Many thanks



[edited to add code tags]
[ April 30, 2005: Message edited by: Jeanne Boyarsky ]
Dear ,
When I insert data into blob and long raw field of oracle database table.
always having the error:
java.sql.SQLException: Data size bigger than max size for this type:

I am using Oracle 9i. and I know that my program code in Oracle 8 is fine without any error..
Therefore, the problem occurs in Oracle 9i. Do you have any suggestion that I have to modify my program code in order to fit the Oracle 9i.

Thanks,
Dear
I want to write the data from DaseBase into XML format and then write it into a file. Do you know how to get an EXample of doing this kind of things. many thanks.
Regards,
Dear,
Do you know how to invalidate a user by using a session id in servlet?
regards,
18 years ago
JSP
Dear,
I have the following exception just occur occassionally. This error occurs when I press a link to popup a page , but when observing this error occurs, I press the link again, it will be back up normal without any error. Can anyone help me to solve this problem and give me some suggestion


Message: Server caught unhandled exception from servlet [JSP 1.0 Processor]:
Server caught unhandled exception from JSP [error.jsp]
Stack Trace:
com.ibm.servlet.engine.webapp.UncaughtServletException:
Server caught unhandled exception from servlet [JSP 1.0 Processor]:
Server caught unhandled exception from JSP [error.jsp]
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at hk.gov.cerg.servlet.ControlServlet.service(ControlServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled Code))
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java(Compiled Code))
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:220)
at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
at java.lang.Thread.run(Thread.java:481)
19 years ago
JSP
Actually, it is the login page, with login id and password.
The user with valid login id and password can login.. So anyone got the login id and password can use the service. We wanna to control only one use are using the service. so we wanna to inactivate the first login so that the second user with valid login can continue. Thank for your suggestion. But I am still have difficult in using the sessionId to retrieve the actual object and inactive the old session
The session ID is getting from the first login
HttpSession session = request.getSession(true);
sessionID = session.getId();
and this sessionID is put into DB, when the second user login, it will check if this user Id has login not logout. and actually, we retrieve the sessionID from DB and wanna to use it for INactivate the old session.
However, I still not figure out how to do it..
Thanks for your kind help and many thanks
Regards,


I authenticate user by login id and password..Thanks
Dear guys,
if there is duplicate login, I wanna to logout the previous login.
I have the previous session ID, I wanna to know if it is possible to remove th previous session using this session id .so the the previous login will be invalidated.

Regards,

[ March 09, 2005: Message edited by: grace chow ]

[ March 11, 2005: Message edited by: grace chow ]
[ March 11, 2005: Message edited by: grace chow ]
19 years ago
JSP
Dear,
I have a problem using Applet. When I use applet to auto print something, it also popup a confirmation warning popup for print?
the popup detail are as follow?

Confirmation Needed - print
Applet would like to print. Do you want to proceed?
check box for "Don't show this dialog box again"

I really do not like this popup to appear. even I have check the box for "dont show this dialog box again". However, it still also popup.

Do you guys have any idea? Thanks

Rgds,
19 years ago
Dear neelesh Katakkar,
thanks so much ,, you are right, I solve the problem! Many thanks


Dear, I am insert an very large string called SIGNED_TEXT into database, I am converting the SIGNED_TEXT into blob data type in db., the following are my codes. but there is always error row containing the LOB value is not locked.. do you know what it means and how to solve it? thanks for ur attention

String sqlSignText= "select SIGNED_TEXT from STORE where STORE_ID ='" + STORE_ID + "'";
pstmt2= con.prepareStatement(sqlSignText);
ResultSet rset= (OracleResultSet) pstmt2.executeQuery();
if (rset.next()) {
BLOB blob= (BLOB) rset.getBlob("SIGNED_TEXT");
OutputStream outstream= blob.getBinaryOutputStream();
InputStream instream= new ByteArrayInputStream(SIGNED_TEXT.getBytes());
int count= 1, total= 0;
byte[] data= new byte[(int) instream.available()];
instream.read(data);
outstream.write(data);
instream.close();
outstream.close();
String sqlinsert= "insert into STORE values (SIGNED_TEXT) values (?) where STORE_ID = '" + STORE_ID + "'";
pstmt3= con.prepareStatement(sql);
pstmt3.setBlob(1, blob);
pstmt3.executeUpdate();




O ***************************************************************************************
[:812 CST04?9?10? 19?03?] 4815ac77 SystemOut O java.io.IOException: ORA-22920: row containing the LOB value is not locked
[ November 03, 2004: Message edited by: grace chow ]
Dear,
I have tested the reason redirecting to an error page during upload may be due to the ENCTYPE="multipart/form-data.. As I have removed the ENCTYPE="multipart/form-data.. and it does not redirect to an error page. I wonder if there is anything I need to set in WEBSPHERE 5.0 so that it will enable ENCTYPE="multipart/form-data to receive the upload more constantly so that it work normally without redirect to error page.

thanks for your kind attention.

Rgds,





function SaveForm() {

if(validate())
{

document.form2.mode.value = "save";
document.form2.action = "uploadEngine.jsp";
document.form2.submit();
}
}

<form name="form2" method="post" action="" class="form" ENCTYPE="multipart/form-data">

<table>


<tr>
<td class="Arial10" colspan="2">
</p>
<input type="file" name="upfile">
</td>
</tr>


<tr>
<td width="20%"> <input type="button" name="Save" value="Save" onKlick="SaveForm()">

</td>
<td width="80%">&nbsp;

</td>
</tr>



</table>
</form>
19 years ago
Dear,
Can anyone email me the SmartUpload.jar for JSP Smart Upload?
I did not have the java code of SmartUpload too.
It will be very kind of you to grant me the source.

Thanks.
19 years ago
I am using SmartUpload to upload file, the smartupload code are contained in uploadEngine.jsp . I am wondering if the unstable submit is due to ENCTYPE="multipart/form-data.. thanks your kind attention

function SaveForm() {

if(validate())
{

document.form2.mode.value = "save";
document.form2.action = "uploadEngine.jsp";
document.form2.submit();
}
}

<form name="form2" method="post" action="" class="form" ENCTYPE="multipart/form-data">

<table>


<tr>
<td class="Arial10" colspan="2">
</p>
<input type="file" name="upfile">
</td>
</tr>


<tr>
<td width="20%"> <input type="button" name="Save" value="Save" onKlick="SaveForm()">

</td>
<td width="80%">&nbsp;

</td>
</tr>



</table>
</form>



Dear,
I have use the Post form to upload something by JSP. However, the upload is sometimes done successfully, sometimes the upload is NOT successful and redirect to another error page. Is there anyone have experience of having this problem. It is difficult to solve problem sometimes ok and sometimes not ok!!

[ October 25, 2004: Message edited by: grace chow ]
[ October 25, 2004: Message edited by: grace chow ]
19 years ago