Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B5BF106C1 for ; Fri, 28 Aug 2015 05:00:01 +0000 (UTC) Received: (qmail 82087 invoked by uid 500); 28 Aug 2015 05:00:00 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 81988 invoked by uid 500); 28 Aug 2015 04:59:59 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 81977 invoked by uid 99); 28 Aug 2015 04:59:59 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 04:59:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 34673181939 for ; Fri, 28 Aug 2015 04:59:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ULgQHDuhdaoj for ; Fri, 28 Aug 2015 04:59:44 +0000 (UTC) Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0144.outbound.protection.outlook.com [157.56.112.144]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id F180A5070E for ; Fri, 28 Aug 2015 04:59:43 +0000 (UTC) Received: from DB5PR05MB1285.eurprd05.prod.outlook.com (10.162.157.147) by DB5PR05MB1286.eurprd05.prod.outlook.com (10.162.157.148) with Microsoft SMTP Server (TLS) id 15.1.243.23; Fri, 28 Aug 2015 04:59:36 +0000 Received: from DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) by DB5PR05MB1285.eurprd05.prod.outlook.com ([10.162.157.147]) with mapi id 15.01.0243.024; Fri, 28 Aug 2015 04:59:36 +0000 From: Christofer Dutz To: "users@flex.apache.org" Subject: AW: AW: Blaze DS 4.7.1 - bug found Thread-Topic: AW: Blaze DS 4.7.1 - bug found Thread-Index: AQHQ4L7fcTqNhDlg0EOy1ZlHIPof8J4g2scg Date: Fri, 28 Aug 2015 04:59:35 +0000 Message-ID: References: ,,,, In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=christofer.dutz@c-ware.de; x-originating-ip: [84.150.102.77] x-microsoft-exchange-diagnostics: 1;DB5PR05MB1286;5:q34WqQBmpw3JYkRsZiuoW44llgA2xklNyETsrOBewUvCbPVCwIGyrSfMA+s01rNZESiRBD9Sua2Cq9woPAbk3SnClWJRE0cpfkVYDBz5Q+rJAjARXvf8O/NTDuUadqrlpn9vCBif95yGEw2xQbKkyQ==;24:0T83/KKaNTjMDcFXTBRQDKmjoWMgKuzqJwiiw8LsGDmgembdYJE9dEuj3MGndicmKz9L7wm2OZZD4kx5/4XwAsmnd/JM2hOCKqdLHEKrsjQ=;20:wBbs0WXfwbzFC6aNCQTzpRar+fnYS9atXwj9zFcbD9H6Ux7o/54y39uPG2dwZx5NyYE354k6j1YP+7RN7NYLEw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1286; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(8121501046)(5005006)(3002001);SRVR:DB5PR05MB1286;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1286; x-forefront-prvs: 0682FC00E8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(24454002)(51914003)(53754006)(43784003)(51444003)(62966003)(229853001)(2351001)(86362001)(64706001)(66066001)(4001540100001)(2656002)(76176999)(5001960100002)(97736004)(107886002)(81156007)(5001830100001)(110136002)(101416001)(54356999)(189998001)(5001860100001)(19580395003)(33656002)(15395725005)(19580405001)(77096005)(50986999)(68736005)(77156002)(5007970100001)(450100001)(74316001)(87936001)(106116001)(92566002)(106356001)(105586002)(75402003)(2501003)(15974865002)(5004730100002)(5003600100002)(122556002)(5002640100001)(74482002)(40100003)(93886004)(2900100001)(46102003)(10400500002)(76576001)(2950100001)(15975445007)(102836002)(567094001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR05MB1286;H:DB5PR05MB1285.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: c-ware.de does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: c-ware.de X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Aug 2015 04:59:35.8058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9d387546-1437-4b89-846c-691d64a7e74d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1286 Hi Miguel, It took a little for me to dig into your problem, but I think I now know wh= at you are refereing to. I'll look into it and probably make a 4.8.0-SNAPSHOT available as soon as p= ossible. Chris -----Urspr=FCngliche Nachricht----- Von: Miguel Ferreira [mailto:miguel.cd.ferreira@hotmail.com]=20 Gesendet: Donnerstag, 27. August 2015 13:52 An: users@flex.apache.org Betreff: RE: AW: Blaze DS 4.7.1 - bug found Hi all, i found the problem in the class: MethodMatcher =20 Before we add this code if (obj =3D=3D null ||=20 (desiredParamTypes[i].isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Integer.TYPE && Integer.class.isAssignableFrom= (objClass)) || =20 (desiredParamTypes[i] =3D=3D Double.TYPE && Double.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Long.TYPE && Long.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Boolean.TYPE && Boolean.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Character.TYPE && Character.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Float.TYPE && Float.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Short.TYPE && Short.class.isAssignableFrom(objClass)) || =20 (desiredParamTypes[i] =3D=3D Byte.TYPE && Byte.class.isAssignableFrom(objClass))) =20 { =20 parameters.set(i, obj); =20 matchCount++; =20 } So, when the conversion used by the TypeMarshaller returns null then the pa= rameter is added to be use in the method call by reflection But with the new version: if (objClass !=3D null && isAssignableFrom(desiredParamTypes[i], objClass)) =20 { =20 // See if there's an exact match before parameter is converted. =20 if (isAssignableFrom(desiredParamTypes[i], param.getClass())) =20 exactMatchCount++; =20 if (convert) // Convert the parameter. =20 parameters.set(i, obj); =20 matchCount++; =20 } The condition of the object is removed it should be (if (obj =3D=3D null ||= (objClass !=3D null && isAssignableFrom(desiredParamTypes[i], objClass))) b= ecause the condition to get the objClass is currentMatch.convertedSupplied= Types[i] =3D (obj !=3D null ? (objClass =3D obj.getClass()) : null); So with the change of the current code the TypeMarshaller everytime that se= nd null the ObjClass will be null and then the matchCount will no tbe updat= ed and the parameter is not set! Causing the exception that this method don= 't exist. Here is the full class from the version 3.2:http://grepcode.com/file/repo1.= maven.org/maven2/com.adobe.blazeds/blazeds-core/3.2.0.3978/flex/messaging/u= til/MethodMatcher.java Chris, It is possible to make this change or is better to find a "local" so= lution? Thanks again in advance. > From: christofer.dutz@c-ware.de > To: users@flex.apache.org > Subject: AW: Blaze DS 4.7.1 > Date: Wed, 26 Aug 2015 20:59:35 +0000 >=20 > Does this article of mine eventually help? >=20 > https://dev.c-ware.de/confluence/display/PUBLIC/Fixing+the+mapping+of+ > null+values+for+numeric+types >=20 > Chris >=20 > ________________________________________ > Von: Mario Souza > Gesendet: Mittwoch, 26. August 2015 22:48 > An: users@flex.apache.org > Betreff: Re: Blaze DS 4.7.1 >=20 > You have a NaN value in Java if you're using the Double or Float=20 > http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html#NaN > http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Float.html#NaN >=20 >=20 > I'm not sure but I think that BlazeDS serializes the AS3 Number.NaN to=20 > a Java Double type, then by reflection api, the BlazeDS can't find a=20 > method with this signature (String, Double) because your signature is=20 > a (String, Long). >=20 > Change your method signature and make sure that you're sending the=20 > correct types from AS3. >=20 >=20 > Regards. >=20 >=20 >=20 >=20 > --- > *Mario de Souza* > UI Developer > Website: www.vizexplorer.com > Skype: vizexplorer-mariosouza > M +6421 082 71135 > > Level 3, 54-56 Cambridge Terrace > PO Box 19204, Wellington 6149 >=20 > *The information contained in this email may be private and/or=20 > confidential. It has been sent for the sole use of the intended=20 > recipient(s). If the reader of this message is not an intended=20 > recipient, you are hereby notified that any unauthorized review, use,=20 > disclosure, dissemination, distribution, or copying of this=20 > communication, or any of its contents, is strictly prohibited. If you=20 > have received this communication in error, please contact the sender=20 > by reply email and destroy all copies of the original message.* >=20 >=20 > On 27 August 2015 at 04:03, Miguel Ferreira=20 > > wrote: >=20 > > zero and -1 have meaning in the business application. > > The workaround is to pass a context object as argument. > > > > But, this kind of error dint exist before in the old version 3.2 of=20 > > BlazeDS. > > I don't know why when is trying to call the remote function BlazeDS=20 > > don't find the correct signature. > > I even try to have another method without the last parameter to=20 > > verify the behavior of it. > > Maybe someone know how i can try to switch on the debugger of blazeDS. > > Thanks for the help deepak. I am trying to see a general solution=20 > > because i have a lot of methods that use Long as an argument. > > > Date: Wed, 26 Aug 2015 21:27:26 +0530 > > > Subject: Re: Blaze DS 4.7.1 > > > From: megharajdeepak@gmail.com > > > To: users@flex.apache.org > > > > > > Is there any purpose of passing NaN ? You may instead try to pass=20 > > > a specific number say 0 or -1 in case of NaN. > > > > =20