Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326293 - Get java.lang.IllegalArgumentException: Argument not valid when trying to open PHP files
Summary: Get java.lang.IllegalArgumentException: Argument not valid when trying to ope...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P1 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 326757 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-27 08:11 EDT by Todd Chaffee CLA
Modified: 2020-05-14 11:08 EDT (History)
5 users (show)

See Also:


Attachments
Stack trace (6.37 KB, text/plain)
2010-09-27 08:13 EDT, Todd Chaffee CLA
no flags Details
PHP file #1 that reproduces the error (9.98 KB, application/php)
2010-09-28 03:57 EDT, Todd Chaffee CLA
no flags Details
PHP file #2 that reproduces the error (22.91 KB, application/php)
2010-09-28 03:57 EDT, Todd Chaffee CLA
no flags Details
patch (1.15 KB, patch)
2010-10-01 02:25 EDT, Zhongwei Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Chaffee CLA 2010-09-27 08:11:41 EDT
Build Identifier: 20100917-0705

This just started happening with the lastest upgrade.  I try to open a PHP file and the editor shows java.lang.IllegalArgumentException: Argument not valid.

Reproducible: Always

Steps to Reproduce:
I don't know how to reproduce it.  It happens on some files and not others.  I haven't seen a pattern.
Comment 1 Todd Chaffee CLA 2010-09-27 08:13:05 EDT
Created attachment 179628 [details]
Stack trace

Stack trace attached
Comment 2 Jacek Pospychala CLA 2010-09-27 17:49:14 EDT
Todd, can you share any of files, for which it happens?
We've been fixing this issue a while ago in bug 322217, but apparently it hasn't been fixed for all cases.
Thanks
Comment 3 Todd Chaffee CLA 2010-09-28 03:57:07 EDT
Created attachment 179714 [details]
PHP file #1 that reproduces the error

This file will reproduce the bug.  I'll also upload another in the hopes it will be easier to determine what is common between the two files that is causing the bug.
Comment 4 Todd Chaffee CLA 2010-09-28 03:57:50 EDT
Created attachment 179715 [details]
PHP file #2 that reproduces the error

This file also reproduces the error.
Comment 5 Zhongwei Zhao CLA 2010-10-01 02:25:01 EDT
Created attachment 180012 [details]
patch
Comment 6 Todd Chaffee CLA 2010-10-01 03:39:24 EDT
Any idea when then patch will be available in the compiled downloads?
Comment 7 Zhongwei Zhao CLA 2010-10-01 04:09:50 EDT
fixed in head and branch
Comment 8 Q.S. Wang CLA 2010-10-01 06:53:44 EDT
*** Bug 326757 has been marked as a duplicate of this bug. ***
Comment 9 Jacek Pospychala CLA 2010-10-01 09:21:10 EDT
*** Bug 326757 has been marked as a duplicate of this bug. ***
Comment 10 Todd Chaffee CLA 2010-10-02 13:56:44 EDT
Now that the patch is available, how do I get a working version of Eclipse? I'm hoping the release schedule if frequent enough that I don't have to build Eclipse from source in order to get this fix on a timely basis.
Comment 11 Petyo Tanchev CLA 2010-10-04 07:46:41 EDT
Tested on 2.2.1.v20101001
Works with the attached files.
Comment 12 Todd Chaffee CLA 2010-10-04 08:00:53 EDT
Any tips on how I can get a version of Eclipse with the patch applied? I'm hoping to avoid having to build Eclipse from source, however anything at this point is acceptable as I cannot use Eclipse until I install a version with this fix.
Comment 13 Martyn Ranyard CLA 2010-10-07 04:29:59 EDT
+1 for a way to install without compiling from source.  I cannot push eclipse in our organisation as a php ide with this bug, as we can't open one of our main projects!
Comment 14 Glen A. CLA 2010-10-09 09:51:17 EDT
Follow these steps to update PDT:

1. Download "pdt-Update-M201010080201.zip" from https://hudson.eclipse.org/hudson/job/cbi-pdt-2.2-helios/534/artifact/build/M201010080201/.
2. In Eclipse, go to Help > Install New Software...
3. Click "Add..." and then "Archive...". Select the ZIP file and click OK.
4. Check the version of PDT you want (SDK or runtime), and continue with the update.

Hope this helps.

(Thanks to Roy for his help).
Comment 15 Todd Chaffee CLA 2010-10-14 05:12:39 EDT
Glen,

I finally had a chance to try your fix and the link is no longer valid. Is there another link I can use to get the patch?

Thanks,
Todd
Comment 16 Petyo Tanchev CLA 2010-10-14 07:05:40 EDT
You can use this update site that includes the fix: 
http://download.eclipse.org/tools/pdt/updates/2.2/milestones
Comment 17 Todd Chaffee CLA 2010-10-14 08:59:14 EDT
That worked.  I am very happy to be back in business with Eclipse.  Thanks for everyone's help on this.