Getting a java.awt.Window.pack(unknown source) error
Hello,
This is the exact error stack:
ERROR: 10:48:21,503 - TcLogger$IC_PrintStream.println:?
java.lang.NullPointerException
java.lang.NullPointerException
at com.teamcenter.rac.util.PropertyLayout.askRowPreferredSize(Unknown Source)
at com.teamcenter.rac.util.PropertyLayout.preferredLayoutSize(Unknown Source)
at com.teamcenter.rac.util.PropertyLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at com.honda.ergo.pergo.ProcErgoJDialog.createProcErgoDialog(ProcErgoJDialog.java:789)
at com.honda.ergo.pergo.ProcErgoJDialog.<init>(ProcErgoJDialog.java:328)
at com.honda.cme.actions.ErgoAssessmentAppAction.run(ErgoAssessmentAppAction.java:139)
at java.lang.Thread.run(Unknown Source)
I'm sure it has something to do with the PropertyLayout (Layout Manager) that I'm using but I don't know what. It works fine on one system but does not work or another.
Thanks,
dumas9 wrote:
at java.awt.Window.pack(Unknown Source)
at com.honda.ergo.pergo.ProcErgoJDialog.createProcErgoDialog(ProcErgoJDialog.java:789)
at com.honda.ergo.pergo.ProcErgoJDialog.<init>(ProcErgoJDialog.java:328)
at com.honda.cme.actions.ErgoAssessmentAppAction.run(ErgoAssessmentAppAction.java:139)
at java.lang.Thread.run(Unknown Source)It looks like you're not running the Swing GUI on the EDT and since your problem is intermittent it's a likely cause of the problem. Search on "java swing concurrency tutorial" for more information.
Similar Messages
-
Hi friends,
This is a stupid issue, I am not able to solve sice almost two days.
A simpl app throws this exception:
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(Unknown Source)
at sun.awt.FontConfiguration.readFontConfigFile(Unknown Source)
at sun.awt.FontConfiguration.<init>(Unknown Source)
at sun.awt.windows.WFontConfiguration.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Unknown Source)
at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at javax.swing.RepaintManager.<clinit>(Unknown Source)
+... 13 more+
I dont know why the hell should it come.
Is it related something to fonts.
Even the least of help will be highly appreciated.,
thanksHi,
I feel its not related to code as such. Maybe configuration stuff i guess.
Because the same code runs in Eclispe....and was even working in Netbeans
just 2 hours back....but now it ain't woking in netbeans.
I need to use javafx you see, so need to use netbeans....
help people...help -
The application behind this code is generating a bunch of "Unknown Source" errors at runtime:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at Polygon#MouseHandler.mousePressed(Polygons.java:95)
at java.awt.Component.processMouseEvent(Unknown Source), and so on...
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
public class Polygons extends JPanel {
protected static boolean shiftIsDown;
public static void main(String[] args) {
JFrame window = new JFrame("Polygons");
Polygons content = new Polygons();
content.addKeyListener( new KeyAdapter() {
public void KeyPressed(KeyEvent evt) {
int key = evt.getKeyCode();
if(key == KeyEvent.VK_SHIFT)
shiftIsDown = true;
window.setContentPane(content);
window.pack();
window.setLocation(100, 100);
window.setResizable(false);
window.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
window.setVisible(true);
} // End main()
private static class PolygonData {
int[] x;
int[] y;
public Polygons() {
// Constructor.
setBackground(Color.WHITE);
MouseHandler listener = new MouseHandler();
setPreferredSize(new Dimension(350, 350) );
addMouseListener(listener);
addMouseMotionListener(listener);
private class MouseHandler implements MouseListener,
MouseMotionListener {
PolygonData polygon;
private boolean dragging = false;
private int vertices;
private int x1, y1; // First vertex point.
private int x2, y2; // Second vertex point.
private boolean newPolygon = false; // Is the user drawing
// a new polygon?
public void mousePressed(MouseEvent evt) {
// If the user is within two pixels of the
// starting point, draw the polygon.
// Graphics g = getGraphics();
int tolerence = 2;
if(shiftIsDown);
x1 = evt.getX();
y1 = evt.getY();
vertices++;
if(newPolygon) {
polygon = new PolygonData();
x2 = x1;
y2 = y1;
polygon.x = new int[1024];
polygon.y = new int[1024];
if(vertices == 1){
polygon.x = new int[1024];
polygon.y = new int[1024];
polygon.x[vertices] = x1;
polygon.y[vertices] = y1;
g.setColor(Color.BLACK);
g.drawPolygon(polygon.x, polygon.y, vertices);
// Did the user click near the starting point?
if( (polygon.x[0] - x1 <= tolerence)
&& (polygon.y[0] - y1 <= tolerence) ) {
g.setColor(Color.RED);
g.fillPolygon(polygon.x, polygon.y, vertices); }
public void mouseMoved(MouseEvent evt) {
// Grab the graphics context.
Graphics g = getGraphics();
x2 = evt.getX();
y2 = evt.getY();
g.drawLine(x1, y1, x2, y2);
repaint();
// Required by the interfaces....
public void mouseReleased(MouseEvent evt) { }
public void mouseClicked(MouseEvent evt) { }
public void mouseEntered(MouseEvent evt) { }
public void mouseExited(MouseEvent evt) { }
public void mouseDragged(MouseEvent evt) { }
} // End nested class Mousehandler
} // End class PolygonsSame goes for mouseMoved().... What's the fix?flounder wrote:
if(newPolygon) {
polygon = new PolygonData();This is the probable cause. Since newPolygon is initially false, it will not execute the if statement and polygon will not be initialised. So later in your code when you attempt to use polygon it is null.That did it.
Thanks! -
Extends.java.awt.Window
Hi I've tried the following below (/** My Code **/) and get a compilation error: Window is not public in java.awt.Window; cannot be accessed from outside package.
I did set the JDK1.4 path in the autoexec.bat. The API 1.4 describes Window like:
public class Window
extends Container
/** My Code **/
import java.awt.*;
class WarningWindow extends Window
/** With the below code everything compiles **/
import java.awt.*;
class WarningWindow extends Container
/** END My Code **/
Can someone please tell me why I get this above error and how can I manage to import the Window class.
Thank You
LHello,
The problem is that Window constructor is not declared as public.
But i don't know why JDK1.4 refuse that.
By setting "package java.awt;" you'll access all these method but that is NOT a good solution (you should use Dialog, Frame or Container).
But there is still something strange... Why JDK1.4 refuses compiling that ?????? -
Java.awt.Window: inner size
Whilst it is clearly easy to work out the external size of a java.awt.Window object, does anybody have a way of querying the inner size of the Window (i.e. the available internal space, once the window's borders have been taken into account )?
Many thanks
AliGAHick,
Get the total window size, then get the insets of the window, subtract the window size from the windows insets and you will be left with the total available internal space.
-- Bud -
How to disable maximize button of the java.awt.Window ????
How to disable maximize button of the java.awt.Window !!!!
Help neededHow to spam the forum with the same fuqin question. Please get lost.
-
Cannot connect to oracle db with - ensureMemberAccess(Unknown Source) error
Hi there!
i'm trying to run a simple applet to check connection with the oracle db:
import java.sql.*;
import oracle.jdbc.driver.*;
class JDBCVersion
public static void main (String args [])
throws SQLException
// Load the Oracle JDBC driver
DriverManager.registerDriver
(new oracle.jdbc.driver.OracleDriver());
System.out.println("registered!");
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@host:1521:sid","user","pass");
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData ();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
I'm not getting any errors during the compilation and my CLASSPATH is ok pointing to the ojdbc14.jar file, i'm running j2sdk1.2.4_12 and the error
when I'm trying to load applet is:
java.lang.IllegalAccessException: Class com.opera.PluginPanel can not access a member of class JDBCVersion with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.opera.PluginPanel.run(PluginPanel.java:406)
at java.lang.Thread.run(Unknown Source)
What is wrong???
Any help would be very appreciable...
Thanx.thank you for your valuable reply, but could you add
some more additional information?Since I don't write applets and don't know anything additional, no.
You might try posting your question in a forum that deals with applets and/or the Java security model. Or maybe if you wait long enough, someone who knows both JDBC and applet security will happen along and decide to answer your question. -
Getting Unknown Source Error While Deploying the Planning Application
Hi,
Getting following error while trying to Deploy Planning Application from BPMA
Started Time : Tuesday, January 08, 2008 5:43:40 PM
Submitted Time : Tuesday, January 08, 2008 5:43:40 PM
Last Updated Time : Tuesday, January 08, 2008 5:44:32 PM
User Name : hpadmin
Process Name :
Thread : 0
Server : DimServer
Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source) at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source) at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)Hi,
I am getting the same error:-
Started Time : Tuesday, February 26, 2008 4:14:31 PM
Submitted Time : Tuesday, February 26, 2008 4:14:31 PM
Last Updated Time : Tuesday, February 26, 2008 4:15:39 PM
User Name : hpadmin
Process Name :
Thread : 0
Server : DimServer
Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source) at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source) at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)
1---Have created new user for new App as well datasource
2-Bounced the EPMA as well planning server but no avail.
how I can I get detail log ? or if is it possible to tell me which directory to look into
thanks in advance
Sanjay -
Hi Experts
I am trying to decrypt the user login credentials while logging to SAP portal. Bellow code is used.
PrivateKey privKey = bean.getRandomKey();
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.DECRYPT_MODE,privKey);
cipherData = cipher.doFinal(new BASE64Decoder().decodeBuffer(enPwd));
But I am getting the error specified below, May I kindly request you please give me some approach to resolve this problem if you have come across the same issue earlier.
iaik.pkcs.pkcs1.b.b(Unknown Source)
iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)
iaik.pkcs.pkcs1.RSACipher.engineDoFinal(UnknownSource)
javax.crypto.Cipher.doFinal(DashoA12275)
We use SAP Portal version 7.01 SP12 and JDK 1.4.2_19.
Configtool to set the path of the cookie and domain of the cookie are Changed.
"cluster-data" -> "Global Server Configuration" -> "services" -> "servlet_jsp"
Please find the attached image.
But Default setting are there that time it's working,But some security region that settings customized.the following way
JSESSIONID.CookieDomain = SERVER (Default value)
SESSIONID.CookiePath = APPLICATION(Custom values)
SAPLB.CookiePath = APPLICATION(Custom values)
SAPLB.CookieDomain = SERVER(Custom values)
This below settings is there that time working fine.
SESSIONID.CookiePath = / (Default values)
SAPLB.CookiePath = / (Default values)
SAPLB.CookieDomain = NONE(Default values)
Please give your suggestion and Help...Solution is Required.
Thank you && Regards,
Durga RaoDear Experts This is My Enter Error
iaik.pkcs.pkcs1.b.b(Unknown Source)iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)iaik.pkcs.pkcs1.RSACipher.engineDoFinal(Unknown Source)javax.crypto.Cipher.doFinal(DashoA12275)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:331)com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:173)com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:119)com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.ume.component.logon.SAPMLogonCertComponent.doContent(SAPMLogonCertComponent.java:33)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:235)com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)java.security.AccessController.doPrivileged(Native Method)com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)javax.servlet.http.HttpServlet.service(HttpServlet.java:853)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)java.security.AccessController.doPrivileged(Native Method)com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) -
ReportPageViewer "Unknown Source" error
I have a problem with JRC in WebSphere Portal 6.1.
It does not work and returns the error below.
Crystal Reports 11.8
Java 5.0
Java Server Faces 1.1
regards
E.
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R java.lang.NullPointerException
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.crystaldecisions.report.web.jsf.UIReportPageViewer.if(Unknown Source)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.crystaldecisions.report.web.jsf.ViewerHtmlRenderer.encodeEnd(Unknown Source)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeEnd(DefaultAjaxRenderer.java:83)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:630)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:553)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm._jsp._test4View._jspx_meth_bocrv_reportPageViewer_0(_test4View.java:212)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm._jsp._test4View._jspx_meth_h_form_0(_test4View.java:233)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm._jsp._test4View._jspx_meth_hx_scriptCollector_0(_test4View.java:256)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm._jsp._test4View._jspx_meth_f_view_0(_test4View.java:283)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm._jsp._test4View._jspService(_test4View.java:152)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
[5/27/10 14:07:01:756 EEST] 00000047 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)I really need this answer and I don't have another place to ask. I explain much more what I did herebelow.
I created a portlet project and created a faces portlet. I created "report" folder under WEB-INF and put a report in it. The report can be previewed successfully. Then I added Report Page Viewer to portlet. It asked file path of the report. I entered /test8/WebContent/WEB-INF/report/IPRPSD001.rpt. Then jsf page looks like below.
I see that "reportWrapper" managed bean was created in faces_config.xml and points the report I selected.
When I run this project following errors come:
[5/28/10 9:53:42:664 EEST] 0000009f SystemErr R java.lang.NullPointerException
[5/28/10 9:53:42:664 EEST] 0000009f SystemErr R at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
What's wrong with this code?
Regards
E.
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf:pagecode language="java" location="/src/pagecode/Test8View.java" %><% /jsf:pagecode --%><%@taglib
uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
uri="http://java.sun.com/portlet_2_0" prefix="portlet"%><%@taglib
uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portlet-client-model"
prefix="portlet-client-model"%><%@taglib
uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
prefix="bocrv"%><%@taglib uri="http://www.ibm.com/jsf/html_extended"
prefix="hx"%><%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@page
language="java" contentType="text/html" pageEncoding="ISO-8859-1"
session="false"%><portlet-client-model:init>
<portlet-client-model:require module="ibm.portal.xml.*" />
<portlet-client-model:require module="ibm.portal.portlet.*" />
</portlet-client-model:init>
<portlet:defineObjects />
<link rel="stylesheet" type="text/css" title="Style"
href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'>
<f:view><hx:scriptCollector id="scriptCollector1">
<h:form styleClass="form" id="form1">
<p>Place content here.<bocrv:reportPageViewer
viewerName="CrystalViewer"
reportSource="#{reportWrapper.reportSource}"></bocrv:reportPageViewer></p>
</h:form>
</hx:scriptCollector>
</f:view>
> -
URGENT URGENT: MySQL unknown source error
Hi, need ur help again.
I have a web application that uses mysql 4.1.1 as database and tomcat 4.1.29. This application connects to 5 databases.
First database is main database for application.
Second database is used to retrieve records for report generation only.
Third and forth database do the same as second database.
Fifth database uses for authentication, which is in different machine.
NOTE that 1st, 2nd, 3rd and 4th database are on same machine.
All the database connection work fine (can make connection and retrieve records) in windows platform (where the tomcat and database server are installed in window).
However, when i test the application in linux platform (where the tomcat and database server are installed in linux), the connection to 2nd,3rd and 4th database fail. The log files shows that there are error known as 'Unknown source'.
What can i do?Ok, i found the problem.
There is a case-sensitve issue: the table name.
thanks. -
I'm getting the following error at windowClosed event of a JDialog in an Applet. JDialog's setDefaultCloseOperation has been set to WindowConstants.DISPOSE_ON_CLOSE.
java.lang.NullPointerException
at com.abc.adv.scheduler.applet.YearlyCalendarPanel.access$000(Unknown Source)
at com.abc.adv.scheduler.applet.YearlyCalendarPanel$YearlyCalendarWindowListener.windowClosed(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JDialog.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
As far as I see, this is not affecting any functionality I have put in....but why is this 'Source Unknown' error?
Thanks in advance,can u pls post the code here
might be have u registered window listener
and there in windowClosing event
u r processing or manipulating the reference of the window -
An unknown CSS error occurred Hyperion
Hi,
I have installed Hyperion 9.3. When I tried to configure Shared Services, after entering username and password. It gives An unknown CSS error occurred error. how do i resolve it? help please
advance thanksHi-
I am getting the same error at registering Essbase with SS step.. any resolution on this? Thanks.
By the way this is what in Configtool_err.log
Error Code: -1
com.hyperion.css.common.configuration.CSSConfigurationException: Cannot configure the system. Please check the configuration. Error Code: 9
NestedException:
java.io.IOException: Property data cannot be loaded from cache.
at com.hyperion.css.common.configuration.CSSConfigurationImplXML.<init>(Unknown Source)
at com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
at com.hyperion.cis.config.CmsRegistrationUtil.getStandAlonCSS(CmsRegistrationUtil.java:110)
at com.hyperion.cis.config.CmsRegistrationUtil.<init>(CmsRegistrationUtil.java:81)
at com.hyperion.cis.config.wizard.HubRegistrationPanel.queryExit(HubRegistrationPanel.java:143)
at com.installshield.wizard.awt.AWTWizardUI.doNext(Unknown Source)
at com.installshield.wizard.awt.AWTWizardUI.actionPerformed(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI.actionPerformed(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationController.notifyListeners(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationController.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Nested Exception:
java.io.IOException: Property data cannot be loaded from cache.
at com.hyperion.css.common.configuration.CSSConfigurationImplXML.processStreams(Unknown Source)
at com.hyperion.css.common.configuration.CSSConfigurationImplXML.<init>(Unknown Source)
at com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
at com.hyperion.cis.config.CmsRegistrationUtil.getStandAlonCSS(CmsRegistrationUtil.java:110)
at com.hyperion.cis.config.CmsRegistrationUtil.<init>(CmsRegistrationUtil.java:81)
at com.hyperion.cis.config.wizard.HubRegistrationPanel.queryExit(HubRegistrationPanel.java:143)
at com.installshield.wizard.awt.AWTWizardUI.doNext(Unknown Source)
at com.installshield.wizard.awt.AWTWizardUI.actionPerformed(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI.actionPerformed(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationController.notifyListeners(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationController.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
(Sep 18, 2008, 04:04:21 PM), com.hyperion.cis.config.CmsRegistrationUtil, ERROR, Failed to initialize CSS API
(Sep 18, 2008, 04:04:21 PM), com.hyperion.cis.config.CmsRegistrationUtil, ERROR, Failed to authenticate user = admin
(Sep 18, 2008, 04:07:43 PM), com.hyperion.cis.config.CmsRegistrationUtil, ERROR, Failed to authenticate user = admin
(Sep 18, 2008, 04:09:31 PM), com.hyperion.cis.config.CmsRegistrationUtil, ERROR, Failed to authenticate user = admin
(Sep 18, 2008, 04:16:14 PM), com.hyperion.cis.config.CmsRegistrationUtil, ERROR, Failed to authenticate user = admin -
OutOfMemory error in java.awt.image.DataBufferInt. init
We have an applet application that performs Print Preview of the images in the canvas. The images are like a network of entities (it has pictures of the entities involve (let's say Person) and how it links to other entities). We are using IE to launch the applet.
We set min heap space to 128MB, JVM max heap space to 256MB, java plugin max heap space to 256MB using the Control Panel > Java.
When the canvas width is about 54860 and height is 1644 and perform Print Preview, it thows an OutOfMemoryError in java.awt.image.DataBufferInt.<int>, hence, the Print Preview page is not shown. The complete stack trace (and logs) is as follows:
Width: 54860 H: 1644
Max heap: 254 # using Runtime.getRuntime().maxMemory()
javaplugin.maxHeapSize: 256M # using System.getProperties("javaplugin.maxHeapSize")
n page x n page : 1x1
Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.azeus.gdi.chart.GDIChart.preparePreview(GDIChart.java:731)
at com.azeus.gdi.chart.GDIChart.getPreview(GDIChart.java:893)
at com.azeus.gdi.ui.GDIUserInterface.printPreviewOp(GDIUserInterface.java:1526)
at com.azeus.gdi.ui.GDIUserInterface$21.actionPerformed(GDIUserInterface.java:1438)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Drilling down the cause of the problem. The OutOfMemory occurred in the constructor of DataBufferInt when it tried to create an int array:
public DataBufferInt(int size) {
super(STABLE, TYPE_INT, size);
data = new int[size]; # this part produce out of memory error when size = width X height
bankdata = new int[1][];
bankdata[0] = data;
The OutOfMemory error occurred when size is width * height (54860 X 1644) which is 90,189,840 bytes (~86MB).
I can replicate the OutOfMemory error when initiating an int array using a test class when it uses the default max heap space but if I increase the heap space to 256MB, it cannot be replicated in the test class.
Using a smaller width and height with product not exceeding 64MB, the applet can perform Print Preview successfully.
Given this, I think the java applet is not using the value assigned in javaplugin.maxHeapSize to set the max heap space, hence, it still uses the default max heap size and throws OutOfMemory in int array when size exceeds the default max heap space which is 64MB.
For additional information, below is some of the java properties (when press S in java applet console):
browser = sun.plugin
browser.vendor = Sun Microsystems, Inc.
browser.version = 1.1
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\PROGRA~1\Java\jre6\classes
java.class.version = 50.0
java.class.version.applet = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.6.0_17-b04
java.specification.version = 1.6
java.vendor.applet = true
java.version = 1.6.0_17
java.version.applet = true
javaplugin.maxHeapSpace = 256M
javaplugin.nodotversion = 160_17
javaplugin.version = 1.6.0_17
javaplugin.vm.options = -Xms128M -Djavaplugin.maxHeapSpace=256M -Xmx256m -Xms128M
javawebstart.version = javaws-1.6.0_17
Kindly advise if this is a bug in JRE or wrong setting. If wrong setting, please advise on the proper way to set the heap space to prevent OutOfMemory in initializing int array.
Thanks a lot.
Edited by: rei_xanther on Jun 28, 2010 12:01 AM
Edited by: rei_xanther on Jun 28, 2010 12:37 AMrei_xanther wrote:
..But the maximum value of the int data type is 2,147,483,647. That is the maximum positive integer value that can be stored in (the 4 bytes of) a signed int, but..
..The value that I passed in the int array size is only 90,189,840...its only connection with RAM is that each int requires 4 bytes of memory to hold it.
new int[size] -- size is 90,189,840Sure. So the number of bytes required to hold those 90,189,840 ints is 360,759,360.
I assumed that one element in the int array is 1 byte. ..Your assumption is wrong. How could it be possible to store 32 bits (4 bytes) in 8 bits (1 byte)? (a)
a) Short of some clever compression algorithm applied to the data. -
Problem : It is question about unknown source.
Following error of applet program practice that use jtable happened.Can not find correct position coming out by Unknown Source.Receive impression that do Oryuindeut from painted again part.During light bulb try ~ by catch catch can, is no there method that can solve error?
java.lang.NullPointerException
at sun.awt.image.SunVolatileImage.isGCValid(Unknown Source)
at sun.awt.image.SunVolatileImage.validate(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)You used a language translation program to say that, didn't you? Try a different program, that one is no good.
Maybe you are looking for
-
Error while loading data from DSO to Infocube
Hi all, I'm loading data from flat file to the cube via a DSO. I get an error in the DTP. The data loads to the DSO, i'm able to see the contents in the active data table. Transformation from DSO to Cube is activated without any errors. Its a one to
-
How to format my c7 device?
any one can advice how can format my device????
-
I have a music video downloaded from itms, a protected MPEG-4 video file which shows up as a movie. All the others show up as music videos. The 'video kind' drop down box is greyed out. Is there a way to change it (so it goes from the movie section)?
-
Which better performance? return "blah" or return "blah".clone()?
Is there a performance diff. between returning a String created inside my method and returning a clone of it?
-
Are the activation servers still down for creative cloud subscription purchases?
Would like to know why I still can not open After Effects CC, asks for serial number even though I purchased membership.