Warning: Undefined array key "birthday_search" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 173

Warning: Undefined array key "joindate" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 190

Warning: Undefined array key "posts" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 191

Warning: Undefined array key "posts" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 197

Warning: Undefined array key "userid" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 6509

Warning: Undefined array key "userid" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 212

Warning: Undefined array key "privacy_options" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/api/user.php on line 251

Warning: Undefined array key "userid" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/library/user.php on line 4998

Warning: Undefined array key "userid" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/library/user.php on line 1585

Warning: Undefined array key "lastactivity" in phar:///home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb/vb.phar/library/user.php on line 1601

Warning: Trying to access array offset on value of type bool in /home/duptmor/public_html/prod.mcpressonline.com/forum/core/vb5/route/profile.php on line 74
"Length problem" error in - MC Press Online Forums

Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

"Length problem" error in

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Length problem" error in

    I'm opening a 1441 page PDF and using PdfTextExtractor_getTextFromPage to search for certain keywords in each page. The call to PdfTextExtractor_getTextFromPage is failing showing only the message "Length problem" on the QShell screen on exactly 107 of those pages. I'm using monitor/on-error to stop it from abnormally ending, but I can't figure out what problem it has with these 107 pages. I thought it was a random memory allocation error, but it's always the same pages.

    Any thoughts?
    Code:
    dow airPage <= airPages;
      #lcerr = *off;
      monitor;
        airString = PdfTextExtractor_getTextFromPage(airExtractor:airPage);
      on-error;
        srltext80 = 'Error occurred during Text Extraction on '
         + 'Page ' + %trim(%editc(airPage:'Z'));
        exsr add_log;
        #lcerr = *on;
      endmon;
      if not #lcerr;
        airBytes32k = String_getBytes(airString);
        #lcpage = airPage;
        #lcpagetxt32k = airBytes32k;
        exsr search_page;
      endif;
      airPage = airPage + 1;
    enddo;
    Last edited by Guest; 01-27-2011, 10:22 AM.

  • #2
    Here's what shows up in the job log:

    Message ID . . . . . . : RNX0301 Severity . . . . . . . : 50
    Message type . . . . . : Escape
    Date sent . . . . . . : 01/27/11 Time sent . . . . . . : 10:04:37

    Message . . . . : Java exception received when calling Java method.
    Cause . . . . . : RPG procedure SOR005 in program WORKLIBR/SOR005CL received
    Java exception "com.lowagie.text.ExceptionConverter:" when calling method
    "getTextFromPage" with signature "(I)Ljava.lang.String;" in class
    "com.lowagie.text.pdf.parser.PdfTextExtractor".
    Recovery . . . : Contact the person responsible for program maintenance to
    determine the cause of the problem.

    Comment

    Working...
    X