david chan

Ranch Hand
+ Follow
since Jun 10, 2002
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 david chan

Hi,

I have the PDF report looks fine in windows, but after deploy to AIX, (using java.awt.headless=true, JDK 1.4) the PDF looks different, i.e. some words disappear in between pages, (I have one field with long text can go to a few pages).

The PDF font I am using is Helvetica, I tried PDF embedded=true, still doesn't work.

I am using jasper report 1.0.2, websphere application server 6.0.1, in AIX

Any suggestion?

Thanks.
David
Hi,
Does anyone did or play to do some project by using Struts and Vignette?
I have some existing Struts project and need to intergrate with Vignette v7 portal?
Any link or resource I can look it up?

Thanks.
David
14 years ago
Hi,
I am trying to run the sample code from Willy Farrell's article http://www-106.ibm.com/developerworks/ibm/library/i-ad5mq53/,
I installed the Websphere MQ 5.3 and setup it up as the article said, also had all setup in WSAD 5.1, and run the
QReceiverUI, then put mq/MyQCF in the Connection, it give this error:
Exception: javax.naming.ServiceUnavailableException: Could not obtain an initial context due to a communication failure. Since no provider URL was specified, the default provider URL of "corbaloc:iiop:1.0@99b41p4:2809/NameService" was used. Make sure that any bootstrap address information in the URL is correct and that the target name server is running. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe]
any idea?
Thanks.
David
14 years ago
import java.sql.Date;
import org.apache.log4j.Logger;
public class MyUser implements Serializable
{
private final static long TOTAL_TIMES = ((long)90) * 24 * 60 * 60 * 1000;
protected static Logger mylogger = Logger.getLogger(MyUser.class);
private int id;
private String username;
private String lastnm;
private String firstnm;
private String nameinit;
private byte[] hash;
private int type;
private boolean disable = false;
private Date updateDate;
//here are getter and setter methods for the attributes

//toString method
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append(getId());
sb.append(":");
sb.append(getUsername());
sb.append(":");
sb.append(getLastnm());
sb.append(":");
sb.append(getFirstnm());
sb.append(":");
sb.append(getType());
return sb.toString();
}
}
15 years ago
MyUser user = (MyUser)session.getAttribute("user");
I am not able to Cast the "user" object stored in session back to "MyUser" type, this only happens sometimes, not always.
In memory to memory session persistence config, it is config as to sync. all session values for every 10 seconds, and there are two nodes(servers) in the clustering.
Thanks.
David
15 years ago
Hi,
My application throw this exception recently, and I have no idea why, and I never saw this Class before. It seems sometimes it will throw this exception when the program try to access session object, which I will also do a cast to my specify object.
I think the only change made recently is I enabled memory to memory session persistence for two nodes clustering (Websphere 5.0 in AIX).

java.lang.ClassCastException: com.ibm.ws.drs.DRSBuffWrapper
at xxx.xxx.xxx.SearchAction.execute(SearchAction.java(Compiled Code))
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java(Inlined Compiled Code))
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java(Compiled Code))
at org.apache.struts.action.ActionServlet.process(ActionServlet.java(Inlined Compiled Code))
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code
))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDi
spatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.i
nvoke(CacheableInvocationContext.java(Compiled Code))
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
15 years ago
HI,
I am trying to find out the root directory for WSAD 5.1 embeded http server, so that I can define a virtual directory and put some images there, which will similar to my production environment.
In the production environment, my application call test has include a header.html, and in that header.html, it referece to some image located on web server like this "<img src=/image/icon.jpg>"
I am trying to setup the same thing in my WSAD test environment.
Any idea?
Thanks.
David
15 years ago
Hi,
I created a 5.0 test server and J2EE 1.3 project, but somehow when I changed my code, the server is not picking up the change automatically, I need to manually restart the server.
How can I configure a test server to reload my changes automatically ? Here is my server output:
*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01] running with process name localhost\localhost\server1 and process id 3148
Host Operating System is Windows 2000, version 5.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\work\programs\IBM\wsad51\runtimes\base_v5
user.install.root = C:\work\programs\IBM\wsad51\runtimes\base_v5
Java Home = C:\work\programs\IBM\wsad51\runtimes\base_v5\java\jre
...
Thanks.
David
15 years ago
Hi,
I saw periodically in the Websphere server log file these exception, I am using Websphere 4.0.5 on AIX. What's the cause? How can I direct this exception to my application log file (log4j) ?
Thanks.
David
[12/29/03 2:38:15:093 PST] bf3d3d9 SystemOut U mpim3100: There is an error in error.jsp: com.ibm.servlet.engine.webapp.WebAppErrorReport: There is no process to read data written to a pipe.:There is no process to read data written to a pipe.
[12/29/03 2:38:15:230 PST] bf3d3d9 SystemOut U com.ibm.servlet.engine.webapp.WebAppErrorReport: There is no process to read data written to a pipe.:There is no process to read data written to a pipe.
[12/29/03 2:38:15:234 PST] bf3d3d9 WebApp X SRVE0115E: Error occurred while invoking error reporter com.ibm.servlet.engine.webapp.WebAppErrorReport: There is no process to read data written to a pipe.
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java(Compiled Code))
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.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.http11.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
15 years ago
Hi,
I have a question about WAS 5 memory-to-memory session persistence:
If I have a user object stored in session in the begining the object created,
Do I need to call session.setAttribute each time the user object got updated, so that it will be updated on other node?
Thanks.
David
15 years ago
Hi,
1) Does WAS 4.x support custom tag pooling? If so, how can I change that?
2) Where are a list of JSP attributes and values in AAT I can reference to?
Thanks.
David
15 years ago
Hi,
I have two webserver and two application server (AE 4.0.5 on AIX), each webserver has plugin that knows both app. server, and if I specify the URL "www1.mycompany.com/test", it can goes to one of app. server.
My question is any way I can specify a URL that will go to the specify app. server only? so that I can run one of the servlet for that particular app. server only, not randomly selected by the plugin load balancing.
Thanks.
David
15 years ago
Hi,
I just install WAS AE 4.0.1 then apply the fix pack 4.0.5 (repository DB is Oracle 9i), then restart my win2000, and then type "adminserver.bat" in command prompt, it failed with this error, any idea?
===begin error mesg =====
[8/25/03 18:41:55:049 EDT] 6d13703a SystemOut U NMSV0012E: Name server initi
alization failed. Cannot create the CosNaming name tree.
javax.naming.NamingException: Caught unexpected exception, name=nodeRoots. Root
exception is org.omg.CORBA.INV_OBJREF: Resolving a context which has been destr
oyed. minor code: 0 completed: No
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.do_resolve_complete_i
nfo(WsnOptimizedNamingImpl.java:855)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete
_info(WsnOptimizedNamingImplBase.java:809)
at com.ibm.ws.naming.cosbase.WsnCosTreeInitializer.getNamingContext(WsnC
osTreeInitializer.java:145)
at com.ibm.ws.naming.cosbase.WsnCosTreeInitializer.createUpperTreeStruct
ure(WsnCosTreeInitializer.java:84)
at com.ibm.ws.naming.bootstrap.NameServer.createCosUpperTreeStructure(Na
meServer.java:391)
at com.ibm.ws.naming.bootstrap.NameServer.completeRdbCosInitialization(N
ameServer.java:509)
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.ifNSBeanHomeHackTheBi
nd(WsnOptimizedNamingImpl.java:1145)
.....
----- Begin backtrace for rootCause
org.omg.CORBA.INV_OBJREF: Resolving a context which has been destroyed. minor c
ode: 0 completed: No
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.do_resolve_complete_i
nfo(WsnOptimizedNamingImpl.java:855)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete
_info(WsnOptimizedNamingImplBase.java:809)
at com.ibm.ws.naming.cosbase.WsnCosTreeInitializer.getNamingContext(WsnC
osTreeInitializer.java:145)
at com.ibm.ws.naming.cosbase.WsnCosTreeInitializer.createUpperTreeStruct
ure(WsnCosTreeInitializer.java:84)
at com.ibm.ws.naming.bootstrap.NameServer.createCosUpperTreeStructure(Na
meServer.java:391)
at com.ibm.ws.naming.bootstrap.NameServer.completeRdbCosInitialization(N
ameServer.java:509)
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.ifNSBeanHomeHackTheBi
nd(WsnOptimizedNamingImpl.java:1145)
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.do_rebind_corba_objec
t(WsnOptimizedNamingImpl.java:497)
at com.ibm.ws.naming.rdbcos.WsnOptimizedNamingImpl.do_rebind_corba_objec
t(WsnOptimizedNamingImpl.java:497)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.rebind_corba_obj
.......
==== end truncated error mesg ===
Thanks.
David
15 years ago
Hi,
I am using WSAD 4.0.3, how can I show the line number when I am editing a java program, I notice the line number will show up for JSP file, but not for Java file.
why's that?
David
15 years ago
Hi,
Are there any open source schedule component? I am creating some kind of report server that will use JasperReport as report engine, and will like to add a schedule feature so to generate report like everyday and then email to some email address.
If there are already this kind of open source report server, please let me know also.
Thanks.
David