Sriram Sankar

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

Recent posts by Sriram Sankar

Hello All,
We have a working enterprise application that uses WAS3.5.4. We have quite a few Entity and session beans. We use DB27.1 database in NT.
However, when i deployed the same application after creating the deployed ear file using the AAT for WAS4.0.2, i get the error from DB2 as
"Trying to insert a null into a NOT NULL column". This happens randomly to all my Entity beans. I am not clear how to solve this problem.
Can any body please suggest a way out of this issue. I did not find any help in the ibm site.
All the columns in all my tables are defined as "Not Null". I am using VAJ4.0 to create my Deployed jar.
Thanks
Sriram
22 years ago
Hello All,
We have to create a Java backend application which will need to run as a deamon. This would be running in parallel with a front end web based system using the same database.
Now, the question is, Can i have a java application sharing the same entity beans created and used by the Application server(we have IBM WAS 4.0.2).
Is there any special considerations that i need to keep in mind while designing this application.
Also, is there any site which i can refer to get more information on the best practices for designing EJBs.
Thanks in advance
Sriram Sankar
Hi,
I want to read a static Hashtable belonging to one Applet in another.
I am able to read the Hashtable in the second applet in IE but in Netscape 4.7 its printing as null in the second Applet.
can anyone explain why is it so?
Sriram

22 years ago
Hi,
I have a servlet calling a Java class which compiles all the strings into a Input stream and sends it to a DB. It was working fine with IBM VisualAge but when i port it to the IBM WebSphere, it gives this error.
Can anyone help me out.
Thanks
Sriram

***********************************************************
[01.07.08 16:29:40:704 GMT+05:30] 5d5da346 ServletInstan X Uncaught service() exception root cause {0}: {1}
"com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade"
java.lang.ClassFormatError: com/gstp/tcs/muwa/xml/AlgTrResp (Repeative method name/signature)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:476)
at java.lang.ClassLoader.defineClass(ClassLoader.java:419)
at com.ibm.servlet.classloader.DynamicClassLoader.loadNonSystemClass(DynamicClassLoader.java:108)
at com.ibm.servlet.classloader.ClassLoaderTemplate.loadClass(ClassLoaderTemplate.java:57)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade.performTask(QueryCenterOwnTrade.java:884)
at com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade.doPost(QueryCenterOwnTrade.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:566)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
at java.lang.Thread.run(Thread.java:481)
***************************************************************
End of Error Information.
23 years ago
Hi,
I have a servlet calling a Java class which compiles all the strings into a Input stream and sends it to a DB. It was working fine with IBM VisualAge but when i port it to the IBM WebSphere, it gives this error.
Can anyone help me out.
Thanks
Sriram

***********************************************************
[01.07.08 16:29:40:704 GMT+05:30] 5d5da346 ServletInstan X Uncaught service() exception root cause {0}: {1}
"com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade"
java.lang.ClassFormatError: com/gstp/tcs/muwa/xml/AlgTrResp (Repeative method name/signature)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:476)
at java.lang.ClassLoader.defineClass(ClassLoader.java:419)
at com.ibm.servlet.classloader.DynamicClassLoader.loadNonSystemClass(DynamicClassLoader.java:108)
at com.ibm.servlet.classloader.ClassLoaderTemplate.loadClass(ClassLoaderTemplate.java:57)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade.performTask(QueryCenterOwnTrade.java:884)
at com.gstp.tcs.muwa.screens.query.servlet.QueryCenterOwnTrade.doPost(QueryCenterOwnTrade.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:566)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
at java.lang.Thread.run(Thread.java:481)
***************************************************************
End of Error Information.
23 years ago
Thank you Guys. Thats exactly what i have done. I have copied these files and then changed the default host of the webserver machine to point to the app server one in the vhost.properties and queues.propoerties files.
Thats it. Now it is working. I am yet to test these with the firewall.
23 years ago
Rahul,
Thank you very much. You are right. When i add the alias name/Ip address and the localhost of the app server in the vhosts.properties file, it worked.
That is the solution.
Cheers
Sriram
23 years ago
Hi,
We are using applets as our frontend and websphere3.5 for hosting the servlets. We have managed to configure the remote OSE for making the HTTP server from machine A to call the servlets in the APP server in Machine B.
The problem here is that the applets are able to call servlets only for http://localhost/servlets but not for http://IPaddress/servlets from machine A.
The applets are in the HTTP server(machine A) and the servlets are in the app server(machine B). Because of this, when i am trying to call applets from Machine C through browser, it is giving "com.ms.security.SecurityExceptionEx[rajpak/test.testmethod]: cannot connect to "172.20.83.174"
at com/ms/security/permissions/NetIOPermission.check"
Can anyone tell us how to solve this problem?.
Thanks
Sriram
23 years ago
Hello,
I have to implement a system which requires the Web Server to be in the DMZ and the App server within the firewall. But the problem is that i am not able to make my web pages make a servlet call to the App server in a different machine.
I want to try and implement the Remote OSE configuration in HTTP and Websphere. The versions are Websphere3.5 and HTTP server 1.3.12. Looking for guidance in terms of specific answers, clues or Websites for further clarifications.
Thanks
Sriram
23 years ago
Hi,
We are building a distributed web application where we need to make calls to some legacy systems.
We are using visibroker for making these CORBA calls to the legacy system. The legacy system is C based and situated at a remote location.These calls are working well if we use JDBC calls within our application. But our application also uses EJB.
The problem starts when we try and use both EJB & Visibroker in the same machine. When the PNS in the websphere starts, it clashes with the ORB pacakages of Visibroker.
I need help in any of these 2 directions,
1) Can anyone suggest how to make both the naming services(visibroker & PNS) run together so that i can avoid this problem?.
2) Is there anyway, i can use the component broker of IBM to be used to make my ORB calls to the legacy system?. I think ORBs are available with Websphere. My legacy software uses Visibroker for C++ ver 4.1.
This is quite urgent. Thanks for all your help. Waiting for your reply.
Cheers
Sriram
23 years ago
Yes, i have an Websphere 3.5 for deploying my servlets and EJBs. But i also have another problem. How do the HTTP server know that the servlets are in the webpath of the App server.
We have something called a server root and document root in HTTP server. If i put my htmls there, my applets are getting invoked but when i specify the path of the appserver root/servlets/ in the server root, there is no response.
Another question?. Can i install my websphere in another machine and configure the HTTP server to get the servlets from there?. But i think that applets and servlets should be in the same machine to work properly.
Pls advise.
Thanks for the help
Sriram
23 years ago
Hi,
I just wanted to know how we can make our servlets run in IBM HTTP Server.is there any documentation available on net which can guide me through the whole process.we have IBM HTTP Server 1.3.12
we have applets as well as servlets which needs to be deployed in IBM HTTP Server

Regards
Sriram
23 years ago
Hello,
I also had the same problem. But i used another approach. Instead of the mnemonics, use the keystroke class. It gives you lots of options. Atleast it is working for me.
Pls create a keystroke method and register it to a jbutton, then it will work.
Here is the sample code.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class KeyStrokeSample {
public static void main(String args[]) {
JFrame frame = new ExitableJFrame("KeyStroke Sample");
JButton buttonA = new JButton(
"<html><center>FOCUSED
control alt 7");
JButton buttonB =
new JButton(
"<html><center>FOCUS/RELEASE
VK_ENTER");
JButton buttonC =
new JButton(
"<html><center>ANCESTOR
VK_F4+SHIFT_MASK");
JButton buttonD =
new JButton(
"<html><center>WINDOW
' '");
// Define ActionListener
ActionListener actionListener =
new ActionListener() {
public void actionPerformed(
ActionEvent actionEvent) {
System.out.println(
"Activated");
}
};
KeyStroke controlAlt7 = KeyStroke.getKeyStroke(
"control alt 7");
buttonA.registerKeyboardAction(
actionListener, controlAlt7, JComponent.WHEN_
FOCUSED);

KeyStroke enter = KeyStroke.getKeyStroke(
KeyEvent.VK_ENTER, 0, true);
buttonB.registerKeyboardAction(
actionListener, enter, JComponent.WHEN_FOCUSED);

KeyStroke shiftF4 = KeyStroke.getKeyStroke(
KeyEvent.VK_F4, InputEvent.SHIFT_MASK);
buttonC.registerKeyboardAction(
actionListener, shiftF4,
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);

KeyStroke space = KeyStroke.getKeyStroke(' ');
buttonD.registerKeyboardAction(
actionListener, space,
JComponent.WHEN_IN_FOCUSED_WINDOW);

Container contentPane = frame.getContentPane();
contentPane.setLayout(new GridLayout(2,2));
contentPane.add(buttonA);
contentPane.add(buttonB);
contentPane.add(buttonC);
contentPane.add(buttonD);
frame.setSize(400, 200);
frame.setVisible(true);
}
}

NOTE: If you try to run the previous program with JFC/Swing release 1.1, a NullPointerException will be generated.

Sriram
23 years ago
I have an application which i have put it on the jscrollpane, the problem is once i reach the bottom of the visible area in my application , i need my jscrollpane to scroll upwards automaticaly so that i need not every time manually scroll down to enter next set of data or view next set of data.
My requirement is to scroll the JScrollPane with code rrather that user involvement.
23 years ago
I had Extended a JTextField Class, this is to restrict the user form entering more than the required length of value into the text field.
The problem i face is that my extended class works perfect when the user, types in the text field directly, but when he does some cut/CopyPaste activity, it accepts more then the required length.
I need to stop the user from pasting if it exceeds the required length of the corresponding field.
The code to check for the length is as given below
this.limit = columns;
addKeyListener(new KeyAdapter()
{
public void keyTyped(KeyEvent evt) {
if (getText().length() >= extJTextField.this.limit)
evt.consume();}});

here limit is the allowed lenght of the field entry.
23 years ago