This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

sathish kannan

Greenhorn
+ Follow
since Jul 11, 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 sathish kannan

Hi

I had got an interesting problem from my customer:


Problems Encountered:

Due to the network constraints on our North America users� side, they frequently complaint the slowness of our system page loading.

But the challenge is of our existing users have already got used to existing UI page, and then we try not to change existing ones to achieve the usability.



Possible Solutions:

We get to know some J2EE web-applications are making use of one important feature to compress the JSP page on server side before returning back to the client side. Once the zipped jsp downloaded by client�s internet browser, the browser itself will auto unzip the file and display it.

The users can achieve the better performance and usability at the same time.


Can we acheive this? If so please give me some tips for me to proceed in the right direction?
12 years ago
JSP
The error is because you operate methods on Null objects without instantiating. The null could be of various reason:

1. You may be passing some objects through Request/Session to jsp and trying to operate on that without checking for null value.
2. Without instantiating an object in the JSP you may try to operate on that.

So better give more debug statements and execute the jsp. It is highly recommended that you check for not null on java objects before executing any methods on it.
13 years ago
JSP
You can also check this....

Properties prop = new Properties();
prop.load(new FileInputStream(filePath));

Regards
Hi Sreeni

i completely forgot the solution how i resolved it. But the mail reason was, since it was clustered, the network administer will be giving the appropriate URL which will be connecting to either of the server. It works similar to load balancer. Earlier i was not giving the proper URL/Domain name.

Regards
Sathish
13 years ago
I tried with both IP address and hostname, it is not working.
14 years ago
Hi

I am trying to communicate from local Window WLS(8.1) to Unix WLS(8.1) which is clustered with two servers. I am using T3 protocol to communicate from local to UNIX as mentioned below


t3://ipaddress ortnumber

But it is giving the following error,
javax.naming.CommunicationException. Root exception is java.net.ConnectException: t3://dappsn03-04.asianconnect.com:8301: Bootstrap to dappsn03-04.asianconnect.com/192.168.32.17:8301 failed. It is likely that the remote side declared peer gone on this JVM
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:199)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:296)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)

I am using Initial Context to get the connection and here is the program:Can anyone help me to resolve this

14 years ago
Hi I am also getting the same problem while doing batch query on DELETE operation in a DAO class.

removeMetaDataDefinition-------------->DELETE FROM TDMS_METADATA_DEFN WHERE RESCLASSID ='05011132220000180' AND METADATADEFNID ='05011132190000179'
<Feb 5, 2005 12:09:20 PM IST> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default' has been busy for "864" seconds working on the request "Http Request: /dmsweb/folder.do", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
<Feb 5, 2005 12:09:21 PM IST> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default' has been busy for "1,539" seconds working on the request "Http Request: /dmsweb/folder.do", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
<Feb 5, 2005 12:19:21 PM IST> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default' has been busy for "828" seconds working on the request "Http Request: /dmsweb/folder.do", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
<Feb 5, 2005 12:19:21 PM IST> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default' has been busy for "1,464" seconds working on the request "Http Request: /dmsweb/folder.do", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>


If you have solved the problem please let me know

thanks in advance
15 years ago
One more point to add....

It is similar to how it is done in the same forum, where when we submit "New Topic", it is displaying some page saying that..."Sit Tight we are taking back to JSP" and after that displaying the list of questions posted...

I need something similar to this

Regards
Shaili
16 years ago
JSP
Hi

I am developing a J2EE based application in Weblogic server.
I have a module where i have to upload a new file. For that i have a JSP which is used for uploading and on submitting i am uploading the file to server using a servlet and displaying a successful page by using another JSP.

My problem is, how can i display a status bar saying that " Please wait your file is uploading" and below that i have to display a status bar. This should come before the successful page, so that user knows that the file is uploading.

In Servlet, I tried using RequestDispatcher to dispatch twice. First line in the doPost method would be dispatching to Status page and after that i am writing the logic for uploading. Finally again i dispatch to Successful page, but it doesnt work.


Please help me out. thanks in advance.
Regards
Shaili
16 years ago
JSP
Hi
I need to do indexing and searching on Microsoft power point (.ppt) files. Can any one tell me is there any parser to read the ppt files and do indexing and searching or any related sites.

Thanks
17 years ago
Hi
When i am trying to look up a bean from a stand alone environment using InitialContext.lookup("ejb/dmsrel1_0/dmsrel1_0/DMSClientHome") it is giving the following error:
Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve 'ejb.dmsrel1_0/dmsrel1_0/DMSClientHome' Resolved: '' Unresolved:'ejb' ; remaining name 'ejb.dmsrel1_0/dmsrel1_0/DMSClientHome'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:341)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at TestAction.createDocuments(TestAction.java:114)
at TestAction.main(TestAction.java:142)
I dont know why "ejb/dmsrel1_0/dmsrel1_0/DMSClientHome" is converted in
"ejb.dmsrel1_0/dmsrel1_0/DMSClientHome"
Actually my code is as below :
void createCabinets()throws Exception{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL,t3://localhost:7001);
InitialContext initCtx = null;
try{
initCtx = new InitialContext(env);
}catch(CommunicationException ce){
}
DMSClientHome home = (DMSClientHome)ic.lookup("ejb/dmsrel1_0/dmsrel1_0/DMSClientHome");
DMSClient remote = home.create();
}

can any one tell what might be the problem of conversion from "/" to "." in the JNDI name which i am passing..
thanks
Hi
I have packed a property file in the WAR under the package WEB-INF as
/WEB-INF/Contant.properties
I want to read and extract the contents of this property file in my java class.
My code is as follows:
String filePath = "/WEB-INF/Contant.properties";
Properties prop = new Properties();
prop.load(new FileInputStream(filePath));

Hashtable ptable = (Hashtable)prop;

is this correct ???
thanks in advance
KSK
hi
Instead of using <a href="/Myservlet"> try using <a href="Myservlet"> since if u give in the first way, it will go and search the file from the root directory and the context path will be different. so to keep the context path same either u give contextpath/Myservlet or Myservlet. try and let me know what happens.
17 years ago
In EJB 1.0, the ejbCreate() methods in bean-managed persistence (BMP) and container-managed persistence (CMP) entities are required to have different return values. In CMP entities, the bean must return a void type, while in BMP entities, the bean must return the primary key type. The logic for this discrepancy was that CMP entities are not responsible for manufacturing their own primary key -- that's the container's job -- so the return value should reflect that aspect of the bean-container contract. BMP entities, however, are responsible for manufacturing their own primary keys (instantiating them with the right values), so they need to return the key to the container and thus must have a return value of the primary key type.
Hope this would answer your question

sathish
Hi guys
When i open pdf file using acrobat separately it is opening . but the problem is only when i am opening thru servlet it is saying that " File is damaged and couldnot be opened". This is the problem in IE5.0
But when i open the same file using netscape 4.7, it is perfectly opening.
How can i solve the IE5.0 problem. Do i need to set anything in the options.if so please reply me
thanks
sathish
17 years ago