Very strange compile error...
Hi,
All my java programs compile fine, except for when I try to set the background color of a component. It's driving me nuts. I've uninstalled and reinstalled the Java JDK, but to no avail. Here's the text of the error message when I attempt to compile.
Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xE6D2
12
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
Dynamic libraries:
0x00400000 - 0x0040B000 C:\j2sdk1.4.2_05\bin\javac.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x7807E000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08139000 C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
0x629C0000 - 0x629C8000 C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x72FFA000 C:\WINDOWS\System32\USP10.dll
0x6BC00000 - 0x6BC14000 C:\WINDOWS\System32\DrvTrNTm.dll
0x6BC20000 - 0x6BC3D000 C:\WINDOWS\System32\DrvTrNTl.dll
0x00A20000 - 0x00A94000 C:\WINDOWS\TEMP\qka3.tmp
0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.DLL
0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.DLL
0x771B0000 - 0x772C7000 C:\WINDOWS\system32\OLE32.DLL
0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.DLL
0x71AD0000 - 0x71AD8000 C:\WINDOWS\System32\WSOCK32.DLL
0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll
0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
0x00BC0000 - 0x00BEB000 C:\WINDOWS\System32\msctfime.ime
0x10000000 - 0x10007000 C:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x00C00000 - 0x00C0E000 C:\j2sdk1.4.2_05\jre\bin\verify.dll
0x00C10000 - 0x00C29000 C:\j2sdk1.4.2_05\jre\bin\java.dll
0x00C30000 - 0x00C3D000 C:\j2sdk1.4.2_05\jre\bin\zip.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 362K [0x10010000, 0x100b0000, 0x104f0000)
eden
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x00e6d212
SIGNAL = -1073741678
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
And here' s the block of code that causes the error... if I comment out the line
panel.setBackground(Color.white)it compiles without error.
JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createLoweredBevelBorder());
panel.setPreferredSize(new Dimension(400,300));
panel.setBackground(Color.white);I am running Windows XP Home Edition. Any ideas? Help is greatly appreciated.
Nick
Your JVM crashed when you compile your file. This is unusual.
If your can reproduce this with a small test-case, I suggest you
filke a bug here: http://bugs.sun.com/services/bugreport/index.jsp
--Alexis
Similar Messages
-
Very strange compile error PLEASE HELP
in one class (Slanje) I defined method
public void(String host,String from,String to,String subject,String messagetext){.....
in other (Prikaz) I create an instance of class Slanje and try to use:
Slanje n=new Slanje();
n.infos(host,from,to,subjecta,poruka);
where to and subjecta getting from JTextField, using method getText();
but get following error mesage:
C:\javafile\samostalni\Mailpr\Prikaz.java:117: infos(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) in Slanje cannot be applied to (java.lang.String,java.lang.String,java.lang.String,javax.swing.JTextField,java.lang.String)
n.infos(host,from,to,subjecta,poruka);
I don't get it. what is the difference, both takes StringI know, but isn't it string because I used getText;
anyway how can I avoid that.
Is there some another way ( I tried to use cast operator (String)) but no success.
Help me someone, please! -
Safari Crash - Problem with doodle (planer) app - doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app. You could see the website in the backround working but safari crashes after clicking on the error window. Any suggestions?
Turn off Private Browsing.
Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off. -
Strange compilation error...
I have some java programes in a directory. Separetely all my files gets compiled properly. When i call any class of other file it returns error like bellow. IT WAS WORKING TILL YESTERDAY very well, but suddenly since today morning this is giving bellow error(without making any change in files).
In my case i have WSCaret.java file which deals with cursor size of text field which is in the same directory. I fire bellow statement :
txtUserName.setCaret(new WsCaret());and it returns bellow error :
Login.java:193: cannot resolve symbol
symbol : class WsCaret
location: class Login
txtPassword.setCaret(new WsCaret());
^what is the posibility of error. I have java version 1.4.1_02 running on Red Hat Linux9.
Regards...
jayayh i have already set class path in my .bash_profile like :
export PATH=/usr/java/j2sdk1.4.1_02/bin:$PATH
and i jave compiled WsCaret.java also , there is no error while compiling WsCaret.java, it creates WsCaret.class file also.
Help me with other sugessions, its very urgent. In fact i have re-installed java also but still same problem. -
I have several classes under a certain package. In three of
those classes I have some public vars of type Number. However, in
one of the methods in a rather complex class I declare a local
varable of type number and it has a complile error.
So I tried to declare a member of the class of type Number
with the same result. Why would this class not be able to find the
Number class when others in the same package not have this issue?
Very confusingYour JVM crashed when you compile your file. This is unusual.
If your can reproduce this with a small test-case, I suggest you
filke a bug here: http://bugs.sun.com/services/bugreport/index.jsp
--Alexis -
Hi, I was wondering if you could help me out with a little problem that I've encountred. When I compile my project, I get the following errors:
Errors:
C:\Program Files\Xinox Software\JCreatorV3 LE\MyProjects\MatrixAddition\MatrixAddition.java:23: illegal start of type
while(exit == false) {
^
C:\Program Files\Xinox Software\JCreatorV3 LE\MyProjects\MatrixAddition\MatrixAddition.java:120: <identifier> expected
^
2 errorsRadReader class:
import java.io.*;
import java.lang.*;
// Use to throw exceptions
class RadReaderException extends RuntimeException {
RadReaderException(Throwable cause) {
super(cause);
public class RadReader {
public static int readInt(String prompt) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get string input
int integer = 0;
String input = "";
try {
input = bfRdr.readLine();
catch(IOException e) {
throw new RadReaderException(e);
// Convert to int
try {
integer = Integer.parseInt(input);
catch(NumberFormatException e) {
throw new RadReaderException(e);
// Return integer
return integer;
public static float readFloat(String prompt) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get string input
float floatingPt = 0;
String input = "";
try {
input = bfRdr.readLine();
catch(IOException e) {
throw new RadReaderException(e);
// Convert to float
try {
floatingPt = Float.parseFloat(input);
catch(NumberFormatException e) {
throw new RadReaderException(e);
// Return floatingPt
return floatingPt;
public static double readDouble(String prompt) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get string input
double dble = 0;
String input = "";
try {
input = bfRdr.readLine();
catch(IOException e) {
throw new RadReaderException(e);
// Convert to double
try {
dble = Double.parseDouble(input);
catch(NumberFormatException e) {
throw new RadReaderException(e);
// Return dble
return dble;
public static char readChar(String prompt) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get char
char character = '?';
try {
character = (char)bfRdr.read();
catch(IOException e) {
throw new RadReaderException(e);
// Return true if method worked
return character;
public static char[] readCharArray(String prompt, int length) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get char[]
char[] array = new char[length];
try {
bfRdr.read(array, 0, array.length);
catch(IOException e) {
throw new RadReaderException(e);
// Return true if method worked
return array;
public static String readString(String prompt) {
BufferedReader bfRdr = new BufferedReader(new InputStreamReader(System.in));
// Print the prompt
if(prompt != "") {
System.out.print(prompt);
// Get string input
String string = "";
try {
string = bfRdr.readLine();
catch(IOException e) {
throw new RadReaderException(e);
// Return true if method works
return string;
}Main(Matrix Addition):
public class MatrixAddition {
// Radreader object
RadReader reader = new Radreader();
// Instantiate arrays
int[][] array1 = new int[3][2];
int[][] array2 = new int[3][2];
int[][] array3 = new int[3][2];
// Boolean control variables
boolean exit = false;
// Begin while loop
while(exit == false) {
// Get user input
for(int row = 0; row < array1.length; row++) {
for(int column = 0; column < array1[0].length; column++) {
// local storage
int element = 0;
// Query for input
element = reader.readInt("Please enter the value of the " +
"element at row " + row + " and " +
"column " + column + ":");
// Set input to array1
array1[row][column] = element;
// Get user input
for(int row = 0; row < array2.length; row++) {
for(int column = 0; column < array2[0].length; column++) {
// local storage
int element = 0;
// Query for input
element = reader.readInt("Please enter the value of the " +
"element at row " + row + " and " +
"column " + column + ":");
// Set input to array1
array2[row][column] = element;
// Add arrays
for(int row = 0; row < array3.length; row++) {
for(int column = 0; column < array3[0].length; column++) {
// Set input to array1
array3[row][column] = array1[row][column] +array2[row][column];
// Print arrays
System.out.println("Array 1");
for(int row = 0; row < array1.length; row++) {
for(int column = 0; column < array1[0].length; column++) {
System.out.print(array1[row][column] + " ");
System.out.println();
System.out.println();
System.out.println("Plus");
System.out.println();
System.out.println("Array 2");
for(int row = 0; row < array2.length; row++) {
for(int column = 0; column < array2[0].length; column++) {
System.out.print(array2[row][column] + " ");
System.out.println();
System.out.println();
System.out.println("Equals");
System.out.println();
for(int row = 0; row < array3.length; row++) {
for(int column = 0; column < array3[0].length; column++) {
System.out.print(array3[row][column] + " ");
System.out.println();
// Check for exit flag
char exitFlag = reader.readChar("Quit?(y/n) ");
if(exitFlag == 'y' || exitFlag == 'Y') {
exit = true;
System.out.println();
}Please advize me on how to fix my code.
Thanks!Nothing strange. You can only write a statement (such as a while-loop) inside a block. You can only write a block inside a method declaration or initializer.
Your problem is that you put the while-loop straight inside a class declaration. You should put it inside a method instead. -
Very strange Java error!!
Hi,
I have been trying to make the migration workbench run, for the past one week!
I have been consistently getting 'class not found' error(see listing below) when I try to run the startMWB script. Please note the last few lines of the listing; the class loader loads the MigrationApp class and then it says that it can't find it.
-----------------output of startMWB script---
bbd-orac1./export/app/workbench/Omwb/bin> startMWB
Info: ORACLE_HOME= /export/app/oracle/product/7.3.4
Info: JAVA_HOME= /usr/java1.1
Warning: ODBC_HOME not set, assuming default /opt/odbc path.
Info: SYBASE_JDBCHOME= /export/app/jConnect-4_2
Starting Migration Workbench.....
[Loaded java/lang/Thread.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Object.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Class.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/String.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/Serializable.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/ThreadDeath.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Error.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Throwable.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Exception.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/RuntimeException.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Cloneable.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Runnable.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/ThreadGroup.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/StringBuffer.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/System.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Integer.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Number.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/NoClassDefFoundError.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/LinkageError.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/OutOfMemoryError.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/VirtualMachineError.class from /usr/java1.1/lib/classes.zip]
[Loaded java/util/Properties.class from /usr/java1.1/lib/classes.zip]
[Loaded java/util/Hashtable.class from /usr/java1.1/lib/classes.zip]
[Loaded java/util/Dictionary.class from /usr/java1.1/lib/classes.zip]
[Loaded java/util/HashtableEntry.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/FileInputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/InputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/FileDescriptor.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/FileOutputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/OutputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/BufferedInputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/FilterInputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/PrintStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/FilterOutputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/BufferedOutputStream.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/OutputStreamWriter.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/Writer.class from /usr/java1.1/lib/classes.zip]
[Loaded sun/io/CharToByteConverter.class from /usr/java1.1/lib/classes.zip]
[Loaded sun/io/CharacterEncoding.class from /usr/java1.1/lib/classes.zip]
[Loaded java/util/Locale.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Character.class from /usr/java1.1/lib/classes.zip]
[Loaded sun/io/CharToByteISO8859_1.class from /usr/java1.1/lib/classes.zip]
[Loaded java/io/BufferedWriter.class from /usr/java1.1/lib/classes.zip]
[Loaded java/lang/Compiler.class from /usr/java1.1/lib/classes.zip]
[Loaded oracle/mtg/migrationUI/MigrationApp.class from /export/app/workbench/Omwb/jlib/omwb-1_3_0_0_1.jar]
[Loaded oracle/sysman/emSDK/client/appContainer/WebApplication.class from /export/app/workbench/Omwb/jl ib/omwb-1_3_0_0_1.jar]
Class not found: oracle.mtg.migrationUI.MigrationApp
bbd-orac1./export/app/workbench/Omwb/bin>
OS: Solaris (Ultra 5)
jvm: 1.1.8_10
oracle:7.3.4
Regards
ManuThanks OMW_Support. That was real neat support. Thanks, it worked!
Essentially, OMW gives an error if you try to install it into 7.3.4 home, so I had actually installed it into a different home. But while running the startOMW script, as you pointed out the ORACLE_HOME variable was set to 7.3.4; changed it to the second ORACLE_HOME and it worked.
Kind regards
Manu
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Migration Workbench Support:
If you are not running Oracle 8.1.7, then you need to install Oracle Migration Workbench 1.3.0.0.1 into a separate Oracle Home.
The installer will install the required 8.1.7. client libraries and you can then use it to migrate to an Oracle8 or Oracle8i database. The key issue here is that when the Installer asks you to select or enter an Oracle Home, that you enter a new Oracle Home. (If you already had 8.1.7, then you'd have been able to install into an existing 8.1.7 Oracle Home. However, because you are not, then you need to install into a separate Oracle Home).
ORACLE_HOME needs to point to this new Oracle Home when starting the Migration Workbench. Your log shows that it is pointing to an Oracle 7.3 home, which is incorrect.
Please note that the Migration Workbench only supports migrations to Oracle8 and Oracle8i.<HR></BLOCKQUOTE>
null -
Hello again all, I am studying Java and came across an interesting program from Elliotte Rusty Harold at UNC.
The original code is:
// This is the Hello program in Java
class Hello
public static void main (String args[])
if (args.length == 0) {
System.out.println(
"Hello whoever you are");
else if (args.length == 1) {
System.out.println("Hello " + args[0]);
else if (args.length == 2) {
System.out.println("Hello " + args[0] +
" " + args[1]);
else if (args.length == 3) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2]);
else if (args.length == 4) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] +
" " + args[3]);
else {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] + " " +
args[3] + " and all the rest!");
Copyright 1996 Elliotte Rusty Harold
[email protected]
*/This code will not compile using Java jdk-6u6-windows-i586-p.exe build.
If I remark out the code as follows it works
// This is the Hello program in Java
class Hello
public static void main (String args[])
if (args.length == 0) {
System.out.println(
"Hello whoever you are");
else if (args.length == 1) {
System.out.println("Hello " + args[0]);
else if (args.length == 2) {
System.out.println("Hello " + args[0] +
" " + args[1]);
/* else if (args.length == 3) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2]);
else if (args.length == 4) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] +
" " + args[3]);
else {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] + " " +
args[3] + " and all the rest!");
}Un-remarking any additional else if's gives "Illegal start of expression" errors.
Any ideas? Does the code compile on your machines/PC's?
Thanks in advanceStev0 wrote:
Hello again all, I am studying Java and came across an interesting program from Elliotte Rusty Harold at UNC.
The original code is:
// This is the Hello program in Java
class Hello
public static void main (String args[])
if (args.length == 0) {
System.out.println(
"Hello whoever you are");
else if (args.length == 1) {
System.out.println("Hello " + args[0]);
else if (args.length == 2) {
System.out.println("Hello " + args[0] +
" " + args[1]);
else if (args.length == 3) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2]);
else if (args.length == 4) {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] +
" " + args[3]);
else {
System.out.println("Hello " + args[0] +
" " + args[1] + " " args[2] + " " +
args[3] + " and all the rest!");
Copyright 1996 Elliotte Rusty Harold
[email protected]
The compiler is right. Take a closer look at the lines that cause the errors. Try to figure out what's in the last three elses that isn't in the first one. -
I have a flash label on a movie clip with its instance name called 'txtToomName'. This object has existed, been successfully instantiated and used for over a year without any modifications. All of a sudden, during the getClassByName() call, I start getting an errors.
The actual error is:
ReferenceError: Error #1065: Variable txtToonName is not defined.
at mcToonInformation_Design/__setTab_txtToonName_mcToonInformation_Design_Layer1_0()
There are other objects on the movieclip, defined as buttons, that were derived from an object in the library that didn't have its linkage set. This had worked fine up til now where I could define a common object without linkage, create copies of that object on a movie clip and assign an instance name to allow access.
Once I changed my buttons to be an instance of an object in the library with linkage properties assigned they didn't give me an error. The problem now is that it doesn't seem to like the Label object which is by default an instance of an object in the library that does have linkage properties set and yet still doesn't like it.
Anyone have any idea what the heck is going on? There hasn't been any library changes made or CS5 updates applied since 8/16/2010, the date on flash.exe.
I am using CS5 ver.11.0.2.489
Any advise/direction/assistance would be greatly appreciated as this is a show stopper and adds hours upon hours of adjustments to an application that has been running fine for a long time.
Message was edited by: whornak
In an attempt to get beyond the previously mentioned error, realizing that it references 'tab', I made the label inaccessible and now receive the following error:
ReferenceError: Error #1065: Variable txtToonName is not defined.
at mcToonInformation_Design/__setAcc_txtToonName_mcToonInformation_Design_Layer1_0()Upon attempted execution, after changing the setting you requested, the following is what I get.
ReferenceError: Error #1065: Variable lblCoinQty is not defined.
at mcToonInformation_Design/__setTab_lblCoinQty_mcToonInformation_Design_Layer1_0()[mcToonIn formation_Design::__setTab_lblCoinQty_mcToonInformation_Design_Layer1_0:1]
at mcToonInformation_Design()
at BPBGlobalFunctions$/getCasaMovieClipFromBulkLoader()[D:\Wayne\WizardBrewStudios\BackPackB uddys_Dev\BackPackBuddys_CS5_SFSX2\src\classes\BPBGlobalFunctions.as:167]
at com.bpb.ui::ToonInformationUI$/loadToonInformationUI()
at com.bpb::BackPackBuddys/onToonInformationLoadRequest()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.bpb.avatar::ExampleAvatar/onToonClick()
Cannot display source code at this location.
Another thing noticed is that the object that flash is having an issue making adjustments to is visible via the Variables window and has the tabindex property. -
I have a test class which I am running as an application in Eclipse to test the behavior of another class, MyClass:
public class TestMyClass {
public static void main(String[] args) {
MyClass mc = new MyClass();
mc.method1();
}I run the application, method1 behaves as expected. Then I change "method1" to "method2" in the code above, save it, and run again (I have Eclipse set to "build automatically"). method2 does not behave as expected. I then touch ANY OTHER FILE in the project (ie, i make a change, undo the change, and save), and method2 behaves as expected. That is, the project HAS NOT CHANGED AT ALL, yet the behavior changes.
"Cleaning" the project in after changing method1 to method2 doesn't help either. I have to actually touch one of the files.
How can this be happening????
TIA,
JohnThere's something seriously f'd up. For a very rude
and crude way of getting rid of this:
1) go to the directory where your project is stored;
2) throw away anything that starts with a dot, e.g.
.metadata, .classpath, .project;
3) throw away all your .class files;
4) go to the directory where eclipse itself is
stored;
5) throw away the 'configuration' directory;
6) start a newborn eclipse.
kind regards,
JosYou forgot: Format your hard drive.
� {� -
Very strange problem: Error for Overall result due to a custom infocube?
Hi,
I have a strange problem:
In my query the sumgt function doesn't work for the calculation of a percentage (es: 'KFA' %A SUMGT 'KFA').
The coloumn of the formula is full of red X.
Using Nodiv() the percentage are all zeroes.
I use a custom infocube for this query that is a copy of an infocube standard with some other infoobject custom. In the infocube standard the formula work and the sumgt is correct!.
It is possible that there are some parameter to be set at infocube level that make the SUMGT wrong?
I'm sorry for my poor english,
Alberto
Message was edited by:
Alberto MagginiAlberto,
Your problem might be a UNIT problem. If you are using key figures in a formula with different units, you will have the "red X" outcome.
Try using the NODIM() function in each formula element.
Regards,
L. Felipe -
Hello everyone? This is my first post- glad to be amongst some knowledgeable people who might be able to help me!
So everything is working fine on my computer- no issues at all. Then one day I go to open iTunes, and every time I do now, I get a "Not responding" error. It keeps telling me it's going to close. Okay, that's not weird- happens all the time. But when I decide to uninstall/reinstall iTunes is when I realize something is probably wrong.
As the installation goes along fine, when it nears the end, I get an error that reads, "DifXInstall32.exe - Application Error" "The instruction at "0x7c91b21a" referenced memory at "0x00000010". The memory could not be "written". Click OK to terminate, or click Cancel to debug". I tried to click Cancel, but still no luck.
What the **** does this error mean? I even tried to uninstall all iTunes components and reinstall, but still no luck..... help!
Thanks in advance,
PaulOK if it isn't simple blocking by security software, I don't think I can help much.
Is there any more information in the error message? May be a further info button?
difxinstall32.exe appears to be involved with the installation of drivers:
http://www.microsoft.com/whdc/driver/install/DIFxFAQ.mspx
I think it is involved with the installation of the Gear drivers for burning. You could try downloading the gear drivers from the gear site. Then see what happens if you try to install them yourself:
http://www.gearsoftware.com/support/drivers.cfm
(If you are using NoScript, you have to allow scripts to see the download) -
An XJC compilation error - Could not load class (..) for type cvsversion
I've got a strange compilation error using NetBeans 4.0 (I'd guess the version does not matter here) and Ant 1.6.2. When the following task is executed,
<target name="compile_ofx_schema">
<antcall target="clean-ofx"/>
<delete dir="${ofx-jaxb-src.dir}"/>
<mkdir dir="${ofx-jaxb-src.dir}" />
<xjc schema="${schema.dir}/ofx102.xsd" package="com.xxx.ofx102" target="${ofx-jaxb-src.dir}">
<arg value="-nv" />
<arg value="-extension" />
</xjc>
</target>
I get the error from NetBeans console,
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\appserver\build.xml:797: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 4 seconds)
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
And when I run the Ant task from the command line, I don't get the error at all.
Any help is greatly appreciated.That was a great finding from you. Thank you.
I followed your alternative approach and updated the ant.jar file. The "Could not load class..." error went away but the stack trace still remains. Now I am clueless again since I have ant on the debug mode and can't find any more useful info.
Class com.sun.tools.xjc.reader.internalizer.LocatorTable loaded from ant loader (parentFirst)
Class java.util.HashSet loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilderFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/DOMFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.DocumentBuilderFactory
Class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParserFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/SAXFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.SAXParserFactory
Class org.apache.crimson.jaxp.SAXParserFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilder loaded from parent loader (parentFirst)
Class java.util.Map loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParser loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/xmlschema/parser/XMLSchemaInternalizationLogic$ReferenceFinder.class
Finding class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/AbstractReferenceFinderImpl.class
Class org.xml.sax.helpers.XMLFilterImpl loaded from parent loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder loaded from ant loader (parentFirst)
Class org.xml.sax.XMLFilter loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.VersionChecker
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/VersionChecker.class
Class com.sun.tools.xjc.reader.internalizer.VersionChecker loaded from ant loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.DOMBuilder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/DOMBuilder.class
Finding class com.sun.xml.bind.marshaller.SAX2DOMEx
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-impl.jar com/sun/xml/bind/marshaller/SAX2DOMEx.class
Class org.xml.sax.ContentHandler loaded from parent loader (parentFirst)
Class com.sun.xml.bind.marshaller.SAX2DOMEx loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.DOMBuilder loaded from ant loader (parentFirst)
Class java.util.Stack loaded from parent loader (parentFirst)
Class org.w3c.dom.Document loaded from parent loader (parentFirst)
Class org.xml.sax.XMLReader loaded from parent loader (parentFirst)
Class org.w3c.dom.Node loaded from parent loader (parentFirst)
Class org.w3c.dom.Element loaded from parent loader (parentFirst)
Class javax.xml.parsers.ParserConfigurationException loaded from parent loader (parentFirst)
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\bbw\build\Common_3.6\Packaged\appserver\build.xml:799: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 1 second)
Any suggestions? BTW, I did not upgrade NetBeans to v5.5 due that my code is still JDK1.4 based. -
Compile error in adjacency matrix
Hello, I'm getting a strange compile error in my fileStream constructor
also I'm having trouble accessing nodes.
Any advice is much much appreciated and will be rewarded as such
cheers
mport java.io.*;
import java.util.*;
class AdjMatrix
private int [][] matrix;
private int num_vertices;
private final int inf = Integer.MAX_VALUE;
public AdjMatrix(int num_vertices)
this.num_vertices = num_vertices;
matrix = new int[num_vertices][num_vertices];
// let's assume that nodes are adjacent to themselves
for (int vertex = 0; vertex < num_vertices; vertex++)
for (int other_vertex = 0; other_vertex < num_vertices; other_vertex++)
if (other_vertex == vertex)
matrix[vertex][other_vertex] = 0;
else
matrix[vertex][other_vertex] = inf;
public void addEdge(int vertex_from, int vertex_to, int cost)
matrix[vertex_from][vertex_to] = cost;
public void addEdge(int vertex_from, int vertex_to)
addEdge(vertex_from, vertex_to, 0);
public void addBidirectedEdge(int vertex_one, int vertex_two, int cost)
addEdge(vertex_one, vertex_two, cost);
addEdge(vertex_two, vertex_one, cost);
public void addBidirectedEdge(int vertex_one, int vertex_two)
addEdge(vertex_one, vertex_two, 0);
addEdge(vertex_two, vertex_one, 0);
public void removeEdge(int vertex_from, int vertex_to)
matrix[vertex_from][vertex_to] = inf;
public void removeBidirectedEdge(int vertex_one, int vertex_two)
matrix[vertex_one][vertex_two] = inf;
matrix[vertex_two][vertex_one] = inf;
public int getEdge(int vertex_from, int vertex_to)
return matrix[vertex_from][vertex_to];
class FileStream extends AdjMatrix {
double answer;
String line;
AdjMatrix theMatrix;
int total;
public FileStream(String fileName) {
fileName = "Test.txt";
try {
FileReader fileRead = new FileReader(fileName);
BufferedReader br = new BufferedReader(fileRead);
while((line = br.readLine()) !=null) {
StringTokenizer st = new StringTokenizer(line, ",");
total++;
for(int i=0; i<st.countTokens(); i++){
for(int j=0; j<st.countTokens(); j++) {
int weight = Integer.parseInt(st.nextToken());
theMatrix.addEdge(i,j,weight);
br.close();
catch(IOException exc) {
System.out.println("File not found!");
//System.out.println("The total in [Test.txt] is: " +total);
}class FileStream extends AdjMatrix {
double answer;
String line;
AdjMatrix theMatrix;
int total;
public FileStream(String fileName) {
Since you don't specify which constructor of AdjMatrix to use in the contruction of FileStream the compiler is trying to use the default constructor of AdjMatrix BUT you don't have one!
Possible solutions -
1) Define a default constructor in AdjMatrix.
2) Use the public AdjMatrix(int num_vertices) constructor by using
public FileStream(String fileName) {
super(10); // or what ever size you think is appropriate3) Change AdjMatrix to use so as to use dynamic arrays (ArrayList?) instead of having a fixed dimension.
4) MakeFile stream a factory that does not extend AdjMatrix but has a method that returns an AdjMatrix based on a filename argument.
e.g.
class FileStreamFactory
public AdjMatrix createFromFile(String filename)
// Parse the file to get the size
AdjMatrix theMatrix = new AdMatrix(the size you parsed);
// Fill in anything else you need to
return theMatrix ;
}You would use this by creating a factory and then using it to create your AdjMatrix.
It should be obvious that I prefer approach 4.
Have fun! -
Strange Display Errors with certain Applications (ATI X1600) [SOLVED]
Hi everyone!
I have been using Arch now for a year or so and am very happy with it, but now there is a problem I unfortunately can't solve by my own.
Since a month or so certain applications (like emacs, feh or gimp, if i try to manipulate the drawing surface) cause very strange display errors. When I try to take a screenshot, they can't be seen, so i made to photographs
Image 1 (one instance of emacs under awesome-wm): http://img850.imageshack.us/img850/5186 … 112158.jpg
Image 2 (two instances of emacs under awesome-wm): http://img24.imageshack.us/img24/822/im … 112158.jpg
I already tried another display manager (musca) but there the same applications cause the same type of error.
Maybe the version 6.14.0-1 of xf86-video-ati broke my system, but I don't know.
Has anyone had similar problems or probably a solution?
Thanks in advance
Maak
P.S.: I hope this is the right forum for this topic.
Files:
/var/log/Xorg.0.log https://pastee.org/q3nn2
Output of lspci https://pastee.org/db7n8
UPDATE:
Hi everyone, again!
I just successfully downgraded the driver and the errors are gone
If someone has the same errors, here is the PKGBUILD (taken from SVN; only the version numbers and sha1sums are modified)
pkgname=xf86-video-ati
pkgver=6.13.2
pkgrel=1
pkgdesc="X.org ati video driver"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=(libpciaccess libdrm udev pixman ati-dri)
makedepends=('xorg-server-devel' 'libdrm' 'xf86driproto' 'mesa')
conflicts=('xorg-server<1.9.0')
groups=('xorg-drivers' 'xorg')
options=('!libtool')
source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('f9d379a884a833829ab1942de4ad4f4766cdcd46')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --enable-dri
make
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make "DESTDIR=${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
Last edited by Maak (2011-03-11 23:32:46)http://bbs.archlinux.org/viewtopic.php?id=89926
Maybe you are looking for
-
No data Exists for this selection in PSA.
Hi Guys, I received an Error message with loading of 2lis_03_bf datasource.. Error message when processing in the Business Warehouse Diagnosis An error occurred in the SAP BW when processing the data. The error is documented in an error message. Syst
-
Hi guys, one question:my customer says that in the release 4.6C and peraphs 4.7 when he run the transaction ME1M and the inforecord found had linked a Purchase Order with an item deleted, the code 'L' of cancel apperaed near item deleted. Now I'm wor
-
How to dynamically and selectively update DSO based on values in a csv file
Hi, I'm loading a csv file into a DSO. When loading the flat file in FULL mode I need to do a pseudo delete of records that were previously loaded but are not in the new flat file. Is it possible to dynamically determine the unique set of records (sa
-
Creating an image with a Cloud Effect
Can someone please tell me how I can create an image with a cloud effect like the photo located at the link below: http://www.arizonamedicalclinic.com/ Thanks in advance for all of your help.
-
Flash images not displaying correctly
Hi there, First post here, but could really us the help. I'm looking after this site: http://theacademy.me/index.htm The previous web developer set up a swfobject image rotator which didn't work before I got here. I wanted to get it working, but now