This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.

Jared Sheehan

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

Recent posts by Jared Sheehan

Hi everyone,

Basically the problem is this, we upgraded from 1.5 to 1.6 and now our components do not not print anymore.

We resized them to fit perfectly on a page and printed and it worked great. Now it looks like the font is not scaling down automatically anymore. Any ideas on what to do?

Resizing the Component---


Component component = windowManager.getSelectedFrame();
int height = component.getHeight();
int width = component.getWidth();
int modWidth = 850;
component.setSize(new Dimension(modWidth, height));
PrintDelegateEnboss.print(component);
component.setSize(new Dimension(width, height));

Printing ------

PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(component);
boolean ok = job.printDialog();
if (ok) {
try {
job.print();
} catch (PrinterException ex) {
/* The job did not successfully complete */
}
}
Thanks For the help

Jared
15 years ago
That still doesnt explain why it happens on one of our servers and not the other.

It looks like this is where the problem starts:

------------------------------------------
public Object getValueAt(int row, int col)
{
try
{
return ((List) data.get(row)).get(col);
}
catch (Exception e)
{
UIMessageManager.getInstance( Application.NAVIGATOR ).displayMessage( e );
}

return null;
}

------------------------------------------

In the catch statement should I throw a new exception and have a another class above it handle that exception?

This is where the exception actually occurs, looks like there is no try\catch null\IndexOutOfBoundsException check and it returns an Object.class if the value is null. I can update that but the question is still the same, why is this working on one server and not the other?

------------------------------------------
/**
* Returns the class of a given column in the table model
*
* @param col a column index
* @return the class of the given column
*/
public Class getColumnClass(int col)
{
if (getValueAt(0, col) != null)
{
return getValueAt(0, col).getClass();
}

return Object.class;
}
------------------------------------------
15 years ago
Hello,

I am a little perplexed with this one. We are running weblogic as our app servers in an admin with two managed servers clustered environment and two citrix presentation servers.

When we launch our application and open a certain project, one of our presentation servers works fine, the other crashes and generates the standard-out-output below, however no log files are ever written. To close the application i have to go through the task manager and select "End Task" button. I have verified that our execution paths are exactly the same on each presentation server. I assume that one of our servers does not like some data that is put into a certain column in our jtable but how come it works on the other server with the same path?? Any ideas? We execute with java 1.6 but the presentation servers default java paths are both 1.5.


java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.ams.enboss.common.ui.swing.tablemodel.TableModelEnbossBasic.getValueAt(TableModelEnbossBasic.java:31)
at com.ams.enboss.common.ui.swing.tablemodel.TableModelEnbossCommon.getColumnClass(TableModelEnbossCommon.java:95)
at javax.swing.JTable.getColumnClass(Unknown Source)
at com.mercury.ftjadin.support.jfc11.cs.JTableCS$CellEditorListenerRegistrar.addListener(JTableCS.java:139)
at com.mercury.ftjadin.infra.abstr.ObjectCS.registerListeners(ObjectCS.java:2607)
at com.mercury.ftjadin.infra.DefaultCustomClassManager.onCreate(DefaultCustomClassManager.java:555)
at com.mercury.ftjadin.hooks.WToolkitHook.onCreate(WToolkitHook.java:23)
at java.awt.Toolkit.createComponent(Unknown Source)
at java.awt.Component.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JTable.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JRootPane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at javax.swing.JLayeredPane.addImpl(Unknown Source)
at javax.swing.JDesktopPane.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at com.ams.enboss.common.ui.swing.util.ChildWindowManagerEnboss.addFrame(ChildWindowManagerEnboss.java:96)
at com.ams.enboss.projdoc.client.ProjDoc$3.construct(ProjDoc.java:1045)
at com.ams.enboss.common.ui.swing.util.SwingWorkerEnboss$2.run(SwingWorkerEnboss.java:138)
at java.lang.Thread.run(Unknown Source)
15 years ago
All the new application servers are running the same version of JRockit, I was referring to the old environments. Basically what happens when the issue occurs is that either Managed A or B will just freeze and be in an infinite loop and be in a "Failed not restartable state". We have to resume then stop then start again in the weblogic console to get the server back up. Oh one other thing we noticed, when i rdp into the affected managed server, and open the taskmgr, the java process is eating up 99 - 100% of our cpu. That obviously is very bad but what does it mean the server is doing in its endless loop where we get NO logs...
15 years ago

"Post Today 10:52:10 AM Subject: We upgraded from Weblogic 9.1 to 9.2.3 and JRockit hangs and freezes
What is the difference between the affected environment and the others?
Have you opened a ticket with Weblogic support?"

Yes we did that this morning and they are looking at it. We managed to get a binary dump from windbg and they have that now. Its about 500 mbs so I cant really post it. The difference in the environments is we have the admin, managed a and managed b on sep virtual servers, the version of JRockit is different since the weblogic version is different. Before our upgrade, we had the admin and managed a on the same physical server and managed b on its own physical server.

Old Environment:
JRockit version: jrockit90_150_04
Weblogic version: 9.1

New Virtual Environment:
JRockit version: jrockit_150_12
Weblogic version: 9.2.3
15 years ago
Hi,

This last weekend 3-28 to 3-30, we upgraded our Hardware to all be virtual weblogic servers. Each of our environments has a single Admin server and a clustered A and B server. We also, upgraded our weblogic versions from 9.1 to 9.2.3 and we are using JRockit version jrockit_150_12. When we open our application and have multiple users in our environment one of the managed servers freezes and produces no log output. When we connect with jconsole we just stop getting output back, we do not even get a stack trace. Any ideas what is going on?

THANKS!!

Jared Sheehan
[email protected]
15 years ago
Hi,

We have implemented the Inetsoft Style Report BI tool in a clustered environment. After about a week of use, our second (Managed_B) server starts throwing 500 errors and saying it is getting a null pointer exception on most all of our reports. When we bounce that server it starts working perfectly again. I have not been able to reproduce this on a non clustered dev environment but have occasionally reproduced it on a clustered test environment. Is this a memory leak issue or something else? Style Reports customer support seems to be as clueless as we are. Thanks for your help!

Jared Sheehan
16 years ago
Hi Thank you everyone for your help. It was a configuration problem. Someone had changed the ip for the class loaders on accident. We found this out by doing a Beyond Compare of the Weblogic configuration file between the Test Environment (Environment that was hosed) and the production environment (Environment that was not hosed).
16 years ago
Yes, we ran from the commandline and referenced the jar directly with no success.
16 years ago
We used ant to build it and deployed it using the Weblogic builtin admin console deployer to deploy to the other members of the cluster. Previous versions do not work either. Same error.
16 years ago
Hi,

We are running Weblogic in a clustered environment (2 servers), Citrix as our presentation servers (2) and Oracle as our database backend. We are getting this stacktrace...

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class com.ams.SomeObject...
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.ams.enboss.worksheets.server.ejb.sessionbean.Worksheet_8ljdvz_EOImpl_920_WLStub.saveWorksheet(Unknown Source)
at com.ams.enboss.projdoc.client.worksheets.WorksheetPanel.save(WorksheetPanel.java:708)
at com.ams.enboss.projdoc.client.worksheets.WorksheetPanel.cleanup(WorksheetPanel.java:1321)
at com.ams.enboss.projdoc.client.Project.cleanup(Project.java:1650)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction.saveProject(ProjDoc.java:1419)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction.access$4200(ProjDoc.java:1388)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction$1.construct(ProjDoc.java:1401)
at com.ams.some.swing.workerclass.run(workerclass.java:138)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: Failed to load class com.ams.workerclass
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:203)
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:128)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:308)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:344)
at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:400)
at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:255)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(ArrayList.java:592)
at java.lang.LangAccessImpl.readObject(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:191)
at someSessionBean.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:357)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

It says it cannot load our class but when checking our ear the jar file is there. Any ideas?

Thanks soo much, Jared and Mike
16 years ago