Android Question Wrong class file IOException.class

driesvp

Member
Licensed User
Longtime User
While compiling an old program in the new v6.00 I receive following error:

cannot access java.io.IOException
bad class file: java\io\IOException.class(java\io:IOException.class)
class file has wrong version 52.0, should be 50.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.io.IOException;


How can I solve this?
 

driesvp

Member
Licensed User
Longtime User
1 step further, I installed v7. Now receiving another error:

httputils2service.java:169: error: cannot access ParseException
anywheresoftware.b4a.keywords.Common.Log(_response.GetString("UTF8"));
^
class file for org.apache.http.ParseException not found
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

driesvp

Member
Licensed User
Longtime User
True! The error happens on the phone, in B4A I only have some warnings in the log but no errors.
On the phone I receive "There was a problem while parsing the package."
 
Upvote 0

driesvp

Member
Licensed User
Longtime User
The icon file is only 5 kB. I'm using a spare phone with Android 4.3 on it. This is maybe the reason?
 
Upvote 0

driesvp

Member
Licensed User
Longtime User
I don't receive any error anymore, only the parser error.
View of the log:

LogCat connected to: B4A-Bridge: samsung GT-I9300
--------- beginning of /dev/log/main
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
ignoring event: pe_connectivitychanged
GC_EXPLICIT freed 277K, 21% free 10017K/12672K, paused 8ms+6ms, total 69ms
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 89K, 19% free 10346K/12672K, paused 5ms+2ms, total 43ms
Streams_terminated
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 690K, 23% free 10168K/13076K, paused 3ms+3ms, total 20ms
WAIT_FOR_CONCURRENT_GC blocked 11ms
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 353K, 22% free 10327K/13076K, paused 2ms+2ms, total 21ms
WAIT_FOR_CONCURRENT_GC blocked 9ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
java.net.SocketException: Socket closed
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 1059K, 25% free 10292K/13568K, paused 3ms+3ms, total 31ms
WAIT_FOR_CONCURRENT_GC blocked 13ms
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
GC_CONCURRENT freed 377K, 24% free 10361K/13568K, paused 4ms+3ms, total 38ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 692K, 25% free 10180K/13568K, paused 4ms+4ms, total 42ms
WAIT_FOR_CONCURRENT_GC blocked 20ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 740K, 24% free 10360K/13568K, paused 3ms+1ms, total 24ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 702K, 34% free 10163K/15336K, paused 1ms+2ms, total 15ms
WAIT_FOR_CONCURRENT_GC blocked 9ms
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 352K, 33% free 10322K/15336K, paused 3ms+2ms, total 24ms
WAIT_FOR_CONCURRENT_GC blocked 6ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
GC_CONCURRENT freed 1094K, 34% free 10252K/15336K, paused 3ms+2ms, total 29ms
WAIT_FOR_CONCURRENT_GC blocked 10ms
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 363K, 33% free 10359K/15336K, paused 5ms+4ms, total 44ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 692K, 34% free 10179K/15336K, paused 3ms+4ms, total 35ms
WAIT_FOR_CONCURRENT_GC blocked 17ms
Connected to B4A-Bridge (Wifi)
Installing file.
GC_CONCURRENT freed 1052K, 27% free 10047K/13660K, paused 2ms+1ms, total 18ms
GC_CONCURRENT freed 412K, 27% free 10037K/13660K, paused 3ms+1ms, total 20ms
GC_CONCURRENT freed 402K, 27% free 10045K/13660K, paused 2ms+4ms, total 24ms
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 702K, 34% free 10163K/15336K, paused 1ms+2ms, total 15ms
WAIT_FOR_CONCURRENT_GC blocked 9ms
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 352K, 33% free 10322K/15336K, paused 3ms+2ms, total 24ms
WAIT_FOR_CONCURRENT_GC blocked 6ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
Connected to B4A-Bridge (Wifi)
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)
at libcore.io.IoBridge.sendto(IoBridge.java:468)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
at java.io_OutputStream.write(OutputStream.java:82)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:317)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:155)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
at libcore.io.IoBridge.sendto(IoBridge.java:466)
... 6 more
GC_CONCURRENT freed 1094K, 34% free 10252K/15336K, paused 3ms+2ms, total 29ms
WAIT_FOR_CONCURRENT_GC blocked 10ms
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 363K, 33% free 10359K/15336K, paused 5ms+4ms, total 44ms
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
GC_CONCURRENT freed 692K, 34% free 10179K/15336K, paused 3ms+4ms, total 35ms
WAIT_FOR_CONCURRENT_GC blocked 17ms
Connected to B4A-Bridge (Wifi)
Installing file.
GC_CONCURRENT freed 1052K, 27% free 10047K/13660K, paused 2ms+1ms, total 18ms
GC_CONCURRENT freed 412K, 27% free 10037K/13660K, paused 3ms+1ms, total 20ms
GC_CONCURRENT freed 402K, 27% free 10045K/13660K, paused 2ms+4ms, total 24ms
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
GC_CONCURRENT freed 400K, 24% free 10029K/13116K, paused 7ms+8ms, total 77ms
GC_CONCURRENT freed 378K, 24% free 10035K/13116K, paused 22ms+8ms, total 115ms
 
Upvote 0
Top