[ 
https://issues.apache.org/jira/browse/DERBY-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667639#action_12667639
 ] 

Kristian Waagan commented on DERBY-4027:
----------------------------------------

Can you try to run with the Derby debug version?
Looking at your derby.log, the exception can be thrown in two places. By 
running with the debug build, we'll either get the line number of the 
exception, or possibly an assert error somewhere else. The debug version can be 
downloaded from the Apache Derby site.

There two cases are:
 1) There is not enough data in the page to read the header (2 bytes).
 2) There is not enough data in the page to read the user data according to the 
encoded byte length in the header.

Possible causes:
 o The page is somehow corrupt.
 o The header is wrong.
 o A bug where wrong information about the field data is used.
(o I also note that JRuby is being used.)

To investigate further, we need more information. The easiest thing to do is to 
run with the debug version to obtain line numbers (or an assert).
I don't know too much about JRuby, but I assume you are not using JDBC directly?
Also, is the data you are inserting ASCII only, or are you inserting for 
instance CJK or nordic characters?

Another thing to do for those looking into this, could be to understand what 
exactly is going on in the BTree (i.e. comparePreviousRecord).


Finally, in the description you wrote "It started yesterday". Does this mean 
that the application has been running successfully for a longer period of time?
And on the different systems, are you running against the same database or 
regenerating it from scratch?

> An attempt was made to access an out of range slot on a page
> ------------------------------------------------------------
>
>                 Key: DERBY-4027
>                 URL: https://issues.apache.org/jira/browse/DERBY-4027
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.4.2.0
>         Environment: Fedora 10 and Ubuntu 8.04
> Sun Java 1.6.0_07 and 1.6.0_11
> derby 10.4.2.0
>            Reporter: Uwe Kubosch
>            Priority: Blocker
>         Attachments: derby.log
>
>
> When running our application we get the following error message:
> An attempt was made to access an out of range slot on a page:
> INSERT INTO orders (operation, receptacle, vehicle_id, iata_origin, 
> icao_origin, sta, eta, ata, pta, onb, arr_stand_id, arr_gate, arr_flight_no, 
> arr_remarks, flight_no, icao_flight_no, icao_callsign, iata_destination, 
> icao_destination, std, etd, atd, ofb, stand_id, pit_code, gate, 
> aircraft_subtype_code, aircraft_registration, fuel_request, canceled, 
> delay_ind, remarks, ptd, slot_request_code, slot_request, slot_granted, 
> terminal, customer_name, customer_type, supplier_id, carnet_no, 
> carnet_expiry, contract_id, authorization_reference, service_level, 
> standby_at, started_at, completed_at, status, comment, 
> meter1_start_volume_automatic, meter1_start_volume_manual, 
> meter1_stop_volume_automatic, meter1_stop_volume_manual, 
> meter2_start_volume_automatic, meter2_start_volume_manual, 
> meter2_stop_volume_automatic, meter2_stop_volume_manual, temperature, 
> density, created_at, updated_at, fuel_on_board, id) VALUES('FUELLING', NULL, 
> NULL, NULL, NULL, '2009-01-22 07:25:00', '2009-01-22 07:30:00', '2009-01-22 
> 07:27:00', '2009-01-22 07:27:00', '2009-01-22 07:29:46', 
> 'anAEBO3yqr3zaaabxfoB_Q', NULL, 'DY 0201', NULL, 'DY 0242', 'NAX0242', 
> 'NAX242', 'TOS', 'ENTC', '2009-01-22 07:50:00', NULL, '2009-01-22 08:13:00', 
> '2009-01-22 08:06:08', 'anAEBO3yqr3zaaabxfoB_Q', NULL, '18', '733', 'LNKHA', 
> 7200, 0, 'X', NULL, '2009-01-22 08:13:00', NULL, NULL, NULL, '1', NULL, NULL, 
> NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 
> NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2009-01-21 08:04:54', 
> '2009-01-22 13:24:59', 0, 'aV9HYQ55ir3B9DabxfoB_Q')
> The error occurs several times per day on different systems.  It started 
> yesterday

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to