Seema Hanji

Ranch Hand
+ Follow
since Jan 29, 2001
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Seema Hanji

Please somebody help me in this
15 years ago
Yes, XML is well formed. First line lookes like this

<?xml version="1.0" encoding="UTF-8"?>
15 years ago
My web application has a jsp which uses JSTL xml tag to read data from xml and display them. I am using apache web server and WebLogic app server.

When I try to access this jsp, I keep getting following exception. And when I refresh the page, error goes away and page is displayed fine and again if I refresh the page, I get the error again.

javax.servlet.ServletException: White spaces are required between publicId and systemId.
at weblogic.servlet.jsp.PageContextImpl.handlePageException(
at jsp_servlet._2_46_5.__homepage_45_4._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl$
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.RequestDispatcherImpl.include(
at weblogic.servlet.internal.RequestDispatcherImpl.include(
at weblogic.servlet.jsp.PageContextImpl.include(
15 years ago
I am not sure whether this is the right forum to post this question. Please bear with me.

We have a very big J2EE web application. Following is our application design explained in brief :

- A set of Struts action classes. which don't have any instance variables declared.
Hence they are all stateless.
- These action classes, for each request retrive session data object from EJB stateful session and store it back in session at the end of request.
- Session object is externalizable with all serializable data as members. This session data object has a Collection of sub-objects of same type.
- There is a static factory class, which reads xml config file to create Collection of sub-objects to be stored in main session object and these sub-objects are cached in the factory. And factory gives deep copy of these objects instead of same objects, hence main session object will be working on seperate set of these sub-objects for each session.
- We have a very simple Stateful session EJB which has main session object.

This wholething works perfect when there is no concurrent access. But, while doing performance test, when hit with multiple users at the same time, we are seeing some of the sub-objects missing from main session object . What could be the reason for this ? we don't see any activation /passivation going on also, as our max-bean-in-cache is set to a very high number.

We are using Weblogic 8.1 as app server and have set weblogic param <enable-call-by-reference>True</enable-call-by-reference> in weblogic-ejb-jar.xml.

Please help ...any clues, ideas will be appreciated.
I want to know whether session expired or not in my Struts action class.

I already have a session listener which removes EJB on session destroyed event. I don't have anyway to communicate between session listener and my action class.
19 years ago
How can we differenciate between when session created for first time and session re-created after session expiry.
For both the instances, HttpSession isNew() returns true. Also session attribute will be null Either for first time or after session expiry.

Thanks in advance.

[ December 02, 2004: Message edited by: Seema Hanji ]
[ December 07, 2004: Message edited by: Mark Spritzler ]
19 years ago
Thanks Ashish,
I did find out what the problem was. It was because of mixing AWT and SWING. I changed it to se all swing, and it worked fine.
21 years ago
Here is the code

public class TestTab extends JPanel{
public TestTab() {
setLayout(new BorderLayout());
Insets ins = getInsets();
setSize(800, 550);
JPanel searchPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

// today string
SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy");
String todayStr = fmt.format(new Date());
// from date
searchPanel.add(new JLabel("From : "));
_fromDateField = new JTextField(new DocumentFilter(8), todayStr, 8);
_fromDateField.setBounds(40, 5, 40,20);
_fromDateField.setPreferredSize(new Dimension(10, 20));
// end date
searchPanel.add(new JLabel("To : "));
_toDateField = new JTextField(new DocumentFilter(8), todayStr, 8);
_toDateField.setPreferredSize(new Dimension(10, 20));
// cusip
searchPanel.add(new JLabel("CUSIP : "));
_cusipField = new JTextField(new DocumentFilter(8), null, 8);
_cusipField.setPreferredSize(new Dimension(10, 20));

searchPanel.add(new JLabel("PARTNER : "));
_partnerCB = new JComboBox();
// search button
_searchButton = new JButton("Search");
_searchButton.setBackground(new java.awt.Color(51, 51, 102));
_searchButton.setForeground(new java.awt.Color(204, 204, 153));
Panel panel1 = new Panel(new BorderLayout());
panel1.add(searchPanel, BorderLayout.NORTH);
// cusip detail label
_cusipDetailLabel = new JLabel();
Panel cusipDetailPanel = new Panel(new BorderLayout());
cusipDetailPanel.add(_cusipDetailLabel, BorderLayout.NORTH);
panel1.add(cusipDetailPanel, BorderLayout.CENTER);
_tab1 = new TableTab1();
Panel resultPanel = new Panel(new BorderLayout());
resultPanel.add(_tab1, BorderLayout.NORTH);
Panel panel2 = new Panel(new BorderLayout());
panel2.add(_tab1, BorderLayout.CENTER);
Panel mainPanel = new Panel(new BorderLayout());
mainPanel.add(panel1, BorderLayout.NORTH);
mainPanel.add(panel2, BorderLayout.CENTER);
add(mainPanel, BorderLayout.CENTER);
_searchButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
Object object = event.getSource();
if (object == _searchButton) {


private void initialize(){
String sql = "Select '--All Partners--' partner_id, 'All' name FROM dual Union ";
VBComboBoxModel partnerModel = new VBComboBoxModel(sql);

_partnerCB.addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent me){
System.out.println("***** partnerCB Mouse Clicked ");

}catch(Exception e){
JOptionPane.showMessageDialog(this,"Exception while getting partner list - "+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
21 years ago
I have added JComboBox to a panel(with FlowLayout). Then I set model of comboBox with custom model(getting data from db).
ComboBox is populated properly, but when I click the down arrow to show popup, nothing happens... popup doesn't show at all . If I use arrow keys to change selection in comboBox, it works fine.
I also tried by adding itmes with JComboBox.addItem() instead of using custom model, still it had same problem...
Any idea why ? Please reply soon
21 years ago
Hi All,
I am trying to insert a record into Oracle-8 database using JDBC. For a particular column somehow the data is inserted partially. This colum is of type VARCHAR2(256) . I could successfully insert comma seperated values say 'CA,GA,CO' . But when I try to insert the value like 'Exclude CA,GA,CO' it inserts only 'Exclude '. When I run this insert statement using sql*plus, it inserts fine . but inserts partially as said above when I try to insert through JDBC using
Just before executing this statement in my java code, I am printing out the insert statement and it looks fine.
Any idea why???
Thanks in advance,
[ June 26, 2002: Message edited by: Seema Hanji ]
which study guide are you talking about ?
can you provide the link to that ?
I am evaluating embarcadero's Describe UML tool.
It's pretty good . You can download 15-day evaluation version from here ...
By setting back PC time works for me to evaluate for more dys
[ April 28, 2002: Message edited by: Seema Hanji ]
Congrats Asha.
I just started with Part-II. I have some questions about sequence diagrams .
How detailed should be the sequence diagrams ?
Did you create seq. diagrams for all 7 usecases in usecase diagram ?
I was planning to use Fast-Lane-Reader design pattern(J2ee pattern) for search flight action. do you have any suggessions ?
Did you create seperate sequence diagrams for alternative flows ? If yes these alternative flow seq diagrams should include all actions in original seq diagram or just alternative situation ?
Thanks ,
[ April 11, 2002: Message edited by: Seema Hanji ]
Thanks for all of your responses.
I solved this problem. I was setting column widths using TableColumn.setMinWidth(). I replaced this with TableColumn.setPreferredWidth() and all columns are visible now.
22 years ago
I have a JTable inside a JScrollPane which is added to a JPanel and this panel is added to a JTabbedPane. tabbedPane is added to a JPanel.
I dynamically populate JTable from a sql query and which has a large number of columns (around 30-40).
The problem is all columns are not visible in the JTable, though I scroll horizontal scrollBar to right. I tried to change the size of tabbedPane and panel... still didn't work.
Anybody know solution for this.
Appreciate if you could reply soon.
22 years ago