This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59944 - Mobility Pack EndToEndClient problem
Summary: Mobility Pack EndToEndClient problem
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-14 17:01 UTC by dobr_pan4ev
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dobr_pan4ev 2005-06-14 17:01:06 UTC
Hi,

ArrayIndexOutOfBoundsException occurs on mobile device/simulator when trying to
transfer byte arrays with more than 32768 elements calling EndToEndClient
generated methods.

Example:

calling the EndToEndClient generated method:

    public long service_Service_startSavingPicture(String a0, long a1, String
a2, byte[] a3) throws IOException {
        Object[] args = new Object[] {
            a0,
            new Long(a1),
            a2,
            a3
        };
        return ((Long) invokeServer(7, args)).longValue();
    }

with argument array with size 20k works perfectly, but if array size is 40k
(large picture) method call fails with exception.
Comment 1 Martin Ryzl 2005-06-28 08:59:27 UTC
This is a known limitation of 4.1 version. It should be fixed in next version,
also complex types other than Strings should be supported as well. 
Comment 2 Petr Suchomel 2005-10-10 16:39:37 UTC
This is fixed in 5.0. You can use range of INTEGER.MAX.
Comment 3 Lukas Hasik 2006-01-17 13:57:14 UTC
verifying all old issues