Skip to main content



      Home
Home » Newcomers » Newcomers » Error in eclipse
Error in eclipse [message #548014] Tue, 20 July 2010 08:27 Go to next message
Eclipse UserFriend
Al salamo Aleekom
And Hi
Then thank you for re
ading my
topic......


------------------------------------------------------------ -----------------------------------------------------
- I found error in my error-log eclipse but the program works and i got
the desired output when debuging and running.
i hope to know the reason for this error.
here is the code i compile if needed:


#include <iostream>

	using namespace std;

	int AreaCube(int length, int width = 25, int height = 1);
	int main()
	{
		int length = 100;
		int width = 50;
		int height = 2;
		int area;

		area = AreaCube(length, width, height);			// 100 * 50 * 2
		cout << "First area equals: " << area << endl;

		area = AreaCube(length, width);					// 100 * 50 * 1
		cout << "Second time area equals: " << area << endl;

		area = AreaCube(length);						// 100 * 25 * 1
		cout << "Third time area equals: " << area << endl;
		return 0;
	}

	int AreaCube(int length, int width, int height)
	{
		return (length * width * height);
	} 


The Error:

eclipse.buildId=I20100608-0911
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.linuxtools.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.linuxtools.product


Error
Tue Jul 20 13:49:25 EEST 2010
Error logged from Debug Core:

java.io.IOException: read error
at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Nativ e Method)
at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(Spawne rInputStream.java:66)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:2 73)
at java.io.BufferedInputStream.read(BufferedInputStream.java:33 4)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.eclipse.debug.internal.core.OutputStreamMonitor.read(Out putStreamMonitor.java:144)
at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1 (OutputStreamMonitor.java:134)
at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(Ou tputStreamMonitor.java:207)
at java.lang.Thread.run(Thread.java:636)
Re: Error in eclipse [message #548053 is a reply to message #548014] Tue, 20 July 2010 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Did you see the "sticky" message at the top of this Newcomers forum
titled "Problems with C/C++ in Eclipse? Read this."

Eric


On 7/20/10 8:27 AM, Di wrote:
> Al salamo Aleekom
> And Hi
> Then thank you for reading my topic......
>
> ------------------------------------------------------------
> -----------------------------------------------------
> - I found error in my error-log eclipse but the program works and i got
> the desired output when debuging and running.
> i hope to know the reason for this error.
> here is the code i compile if needed:
>
> #include <iostream>
>
> using namespace std;
>
> int AreaCube(int length, int width = 25, int height = 1);
> int main()
> {
> int length = 100;
> int width = 50;
> int height = 2;
> int area;
>
> area = AreaCube(length, width, height); // 100 * 50 * 2
> cout << "First area equals: " << area << endl;
>
> area = AreaCube(length, width); // 100 * 50 * 1
> cout << "Second time area equals: " << area << endl;
>
> area = AreaCube(length); // 100 * 25 * 1
> cout << "Third time area equals: " << area << endl;
> return 0;
> }
>
> int AreaCube(int length, int width, int height)
> {
> return (length * width * height);
> }
> The Error:
>
> eclipse.buildId=I20100608-0911
> java.version=1.6.0_18
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.linuxtools.product
> Command-line arguments: -os linux -ws gtk -arch x86 -product
> org.eclipse.epp.package.linuxtools.product
>
>
> Error
> Tue Jul 20 13:49:25 EEST 2010
> Error logged from Debug Core:
>
> java.io.IOException: read error
> at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Nativ e Method)
> at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(Spawne
> rInputStream.java:66)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:2 73)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:33 4)
> at java.io.FilterInputStream.read(FilterInputStream.java:107)
> at org.eclipse.debug.internal.core.OutputStreamMonitor.read(Out
> putStreamMonitor.java:144)
> at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1
> (OutputStreamMonitor.java:134)
> at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(Ou
> tputStreamMonitor.java:207)
> at java.lang.Thread.run(Thread.java:636)
>
Re: Error in eclipse [message #650268 is a reply to message #548014] Mon, 24 January 2011 00:57 Go to previous message
Eclipse UserFriend
Hi Di

I am new to eclipse too and encountering the same issue, I read the stickies per Eric's advice and they were related to jvm and your java version seems alright.

found 2 bug reports and they look like they were solved by the end of december 2010

here are the links

https://bugs.eclipse.org/bugs/show_bug.cgi?id=315259

https://bugs.eclipse.org/bugs/show_bug.cgi?id=286162

applying the recommended patches may solve your problem (and mine) but I did not apply those yet, I've just started using eclipse.

Best,
Previous Topic:Not able to install plug-ins from Eclipse market place
Next Topic:how to get login details for www.eclipse.org
Goto Forum:
  


Current Time: Sat Nov 08 02:53:57 EST 2025

Powered by FUDForum. Page generated in 0.08958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top