URGENT!Problem running a Query with a Subquery that includes the same table

Hello all,
Currently we are working over Oracle Database 10g Release 2 (10.2.0.3) Patch Set1.
We have registered a schema called ICRI and we have created two VIEW over this schema to work in some occasions.
CREATE OR REPLACE VIEW "ICRI_RELACIONAL_VIEW"
(IDICRI, NOMBRERECURSO, VERSIONRECURSO) AS
SELECT extractValue(value(i), '/ICRI/ID/text()'),
       extractValue(value(i), '/ICRI/NombreRecurso/text()'),
       extractValue(value(i), '/ICRI/VersionRecurso/text()') || '.' || extractValue(value(m), '/Modificacion/Secuencia/text()'),
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Modificacion'))) m
WHERE extractValue(value(m), '/Modificacion/Secuencia/text()') =
      (SELECT max(extractValue(value(s), '/Secuencia/text()'))
       FROM table(xmlsequence(extract(value(i),'/ICRI/Modificaciones/Modificacion/Secuencia'))) s)
WITH READ ONLY;
CREATE OR REPLACE VIEW "ICRI_DOMINIOS_VIEW"
(ID, DOMINIO) AS
SELECT extractValue(value(i), '/ICRI/ID/text()'),
       extractValue(value(a), '/Dominio/text()', 'xmlns="http://www.orswegimoarmada.es/ORSWE/ICRI"')
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Dominios/Dominio'))) a
WITH READ ONLY;We have created 5000 XML documents based in this schema and stored in the database.
Now we have executed different querys to obtain certain data.
* QUERY 1
SELECT COUNT(*) FROM ICRI_DOMINIOS_VIEW V1, ICRI_DOMINIOS_VIEW V2
WHERE V1.ID = V2.ID AND V1.DOMINIO = 'Mar' AND V2.DOMINIO = 'Tierra'Time: 38sg. 1 row, Value: 1097.
* QUERY 2
SELECT COUNT(*) FROM ICRI_DOMINIOS_VIEW V1
WHERE V1.DOMINIO = 'Mar'
      AND
      V1.ID IN (SELECT V2.ID FROM ICRI_DOMINIOS_VIEW V2
                WHERE V2.DOMINIO = 'Tierra')Time: 34sg. 1 row, Value: 1097.
* QUERY 3 (XPath Version)
SELECT COUNT(*)
FROM ICRI
WHERE existsNode(object_value, '/ICRI/Dominios[Dominio="Mar" and Dominio="Tierra"]')=1
Time: 32msg. 1 row, Value: 1097.
* QUERY 4 (Version XPath)
SELECT extractValue(object_value, '/ICRI/ID/text()')
FROM ICRI
WHERE existsNode(object_value, '/ICRI/Dominios[Dominio="Mar" and Dominio="Tierra"]')=1
Time: 63mseg. 1097 rows.
* QUERY 5
SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1, ICRI_DOMINIOS_VIEW V2
WHERE V1.ID = V2.ID AND V1.DOMINIO = 'Mar' AND V2.DOMINIO = 'Tierra'
Time: 15sg. 1097 rows.
* QUERY 6
SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1
WHERE V1.DOMINIO = 'Mar'
AND
V1.ID IN (SELECT V2.ID FROM ICRI_DOMINIOS_VIEW V2
WHERE V2.DOMINIO = 'Tierra')
Time: 26sg. 1097 rows.
Now, with the next query, we have found an important issue in Oracle, because this query doesn't return any row.
* QUERY 7
SELECT extractValue(value(i), '/ICRI/ID/text()') ID,
       extractValue(value(i), '/ICRI/NombreRecurso/text()') NOMBRE,
       extractValue(value(i), '/ICRI/VersionRecurso/text()') || '.' || extractValue(value(m), '/Modificacion/Secuencia/text()') VERSION
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Modificacion'))) m
WHERE
   (extractValue(value(m), '/Modificacion/Secuencia/text()') =
    (SELECT max(extractValue(value(s), '/Secuencia/text()'))
     FROM table(xmlsequence(extract(value(i),'/ICRI/Modificaciones/Modificacion/Secuencia'))) s)
AND
   (extractValue(value(i), '/ICRI/ID/text()') IN
    (select extractValue(object_value, '/ICRI/ID/text()') ID
     FROM ICRI
     WHERE (existsNode(object_value, '/ICRI/Dominios[Dominio="Mar" and Dominio="Tierra"]')=1)
)Time 607mseg. 0 rows.
* QUERY 8
SELECT VI.IDICRI, VI.NOMBRERECURSO, VI.VERSIONRECURSO
FROM ICRI_RELACIONAL_VIEW VI, (SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1, ICRI_DOMINIOS_VIEW V2
                               WHERE V1.ID = V2.ID AND V1.DOMINIO = 'Mar' AND V2.DOMINIO = 'Tierra') V3
WHERE VI.IDICRI = V3.ID Time: 16sg. 1097 rows.
* QUERY 9
SELECT VI.IDICRI, VI.NOMBRERECURSO, VI.VERSIONRECURSO
FROM ICRI_RELACIONAL_VIEW VI
WHERE VI.IDICRI IN
(SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1
WHERE V1.DOMINIO = 'Mar'
      AND
      V1.ID IN (SELECT V2.ID FROM ICRI_DOMINIOS_VIEW V2
                WHERE V2.DOMINIO = 'Tierra')Time: 34 sg. 1097 rows.
* QUERY 10
SELECT extractValue(value(i), '/ICRI/ID/text()') ID,
extractValue(value(i), '/ICRI/NombreRecurso/text()') NOMBRE,
extractValue(value(i), '/ICRI/VersionRecurso/text()') || '.' || extractValue(value(m), '/Modificacion/Secuencia/text()') VERSION
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Modificacion'))) m,
(SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1, ICRI_DOMINIOS_VIEW V2
WHERE V1.ID = V2.ID AND V1.DOMINIO = 'Mar' AND V2.DOMINIO = 'Tierra') V3
WHERE
(extractValue(value(m), '/Modificacion/Secuencia/text()') =
(SELECT max(extractValue(value(s), '/Secuencia/text()'))
FROM table(xmlsequence(extract(value(i),'/ICRI/Modificaciones/Modificacion/Secuencia'))) s)
AND
extractValue(value(i), '/ICRI/ID/text()') = V3.ID
Time: 15sg. 1097 rows.
* QUERY 11
SELECT extractValue(value(i), '/ICRI/ID/text()') ID,
       extractValue(value(i), '/ICRI/NombreRecurso/text()') NOMBRE,
       extractValue(value(i), '/ICRI/VersionRecurso/text()') || '.' || extractValue(value(m), '/Modificacion/Secuencia/text()') VERSION
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Modificacion'))) m
WHERE
   (extractValue(value(m), '/Modificacion/Secuencia/text()') =
    (SELECT max(extractValue(value(s), '/Secuencia/text()'))
     FROM table(xmlsequence(extract(value(i),'/ICRI/Modificaciones/Modificacion/Secuencia'))) s)
AND
   (extractValue(value(i), '/ICRI/ID/text()') IN (SELECT V1.ID FROM ICRI_DOMINIOS_VIEW V1
                                                  WHERE V1.DOMINIO = 'Mar'
                                                  AND
                                                  V1.ID IN (SELECT V2.ID FROM ICRI_DOMINIOS_VIEW V2
                                                            WHERE V2.DOMINIO = 'Tierra'))
)Time: 30sg. 1097 rows.
* QUERY 12
SELECT extractValue(value(i), '/ICRI/ID/text()') ID,
       extractValue(value(i), '/ICRI/NombreRecurso/text()') NOMBRE,
       extractValue(value(i), '/ICRI/VersionRecurso/text()') || '.' || extractValue(value(m), '/Modificacion/Secuencia/text()') VERSION
FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Modificacion'))) m
WHERE
   (extractValue(value(m), '/Modificacion/Secuencia/text()') =
    (SELECT max(extractValue(value(s), '/Secuencia/text()'))
     FROM table(xmlsequence(extract(value(i),'/ICRI/Modificaciones/Modificacion/Secuencia'))) s)
   )Time: 187msg. 5000 rows.
Well, if we execute the query based in a relational view all work fine but the performance of the query is hugely decreased. If we try to execute the query based in the XPath values, this options must be the correct, the query doesn't return any result.
Any idea to solve this problem? For us it is very important to find a solution as soon as possible, because our development time is finishing.
Our clients have installed Oracle Client 10.2.0.1 & ODAC 10.2.0.20.
Thanks in advance for your help,
David.

SQL> alter session set optimizer_features_enable='10.1.0';
Session altered.
SQL> SELECT count(*)
2 FROM ICRI i, table(xmlsequence(extract(value(i), '/ICRI/Modificaciones/Mo
dificacion'))) m
3 WHERE
4 extractValue(value(i), '/ICRI/ID/text()') IN
5 (select extractValue(object_value, '/ICRI/ID/text()') ID
6 FROM ICRI
7 WHERE (existsNode(object_value,
8 '/ICRI/Dominios[Dominio="Mar" and Dominio="Tierra"]')=1))
9 /
COUNT(*)
5
Test this with a few of your queries and see if the results are expected.
if so I am thinking it is close to bug 5585187
QUERY NOT RETURNING PROPER RESULTS WITH INLINE VIEWS
Fixed in 11.
I am going to see if I can get an env to see if your TC works with this fix before I confirm it 100 percent.
Also note this was done with a very scaled down version of your testcase. Using only one XML doc
regards
Coby
Message was edited by: Coby
coadams

Similar Messages

  • Query with many sub-selects on the same table

    Hi,
    Please consider the example below (Oracle 11g):
    create TABLE test1 (order_id number, CODE VARCHAR2(10), VALUE NUMBER);
    insert into test1 VALUES (1, 'A', 100);
    insert into test1 VALUES (1, 'B', 200);
    insert into test1 VALUES (1, 'C', 300);
    insert into test1 VALUES (1, 'D', 400);
    insert into test1 VALUES (2, 'A', 10);
    insert into test1 VALUES (2, 'B', 20);
    SELECT order_id,
           CODE,
           VALUE,
           (SELECT VALUE FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code = 'B') b_Value,
           (SELECT SUM(VALUE)/COUNT(*) FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code IN ('C', 'D')) cd_Value,
           (SELECT COUNT(*) FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code IN ('C', 'D')) cd_qty
    FROM   TEST1 t
    WHERE  CODE = 'A';In my real-life case, I don't have 3 but tens of sub-query columns like those. The performance is OK but I was wondering whether there were a better way in terms of performance and maintainability to write this query.
    I thought of the WITH clause but couldn't see how it could help much.
    Please note that some sub-queries can be more complex than just looking up a column, like in column cd_value/cd_qty.
    Any suggestions?
    Thanks
    Luis

    Simpler, but will go for two table scans. You will have to use outer joins according to your requirement.
    select t1.order_id,
           t1.CODE,
           t1.VALUE,
           max(decode(t2.code,'B',t2.value)) b_value,
           sum(decode(t2.code,'C',t2.value,'D',t2.value,0))/nullif(sum(decode(t2.code,'C',1,'D',1,0)),0)  cd_value,
           sum(decode(t2.code,'C',1,'D',1,0))  cd_qty 
    from TEST1 t1,test1 t2
    where t1.CODE = 'A'
    and t1.ORDER_ID = t2.order_id
    group by t1.order_id,
           t1.CODE,
           t1.VALUEEdited by: jeneesh on Feb 7, 2012 11:54 AM

  • Aperture replaces images with other images that have the same image number

    Help! Aperture has started replacing images in recent projects with older images from elsewhere on my hard drive that have the same image number. Obviously I need a better numbering system, but can someone help me figure out why this is happening? I store master files on an external drive and the "replacement" files seem to be coming from identically named images on my local HD or in iPhoto.

    I started renaming all of my images when I import them. I'm using referenced images to an external drive, although I still have a bunch of older images stored in the Aperture library under my old numbering system (which was basically whatever image number the camera generated)....need to move them all to the external drive but haven't had time.
    So here's the latest problem: Today, Aperture started replacing images in albums (referenced images with unique file names under my new system) with old images even though the file names weren't even remotely close. It also replaced the images with the preview for the old image (230 pixels wide). "Show master" showed me the preview for the old image, not the correct image.
    I tried forcing an update to the preview, but it had no effect. The real masters are intact on the external drive, but this is really scaring me. It happens out of the blue, right in front of me...I watch as my images appear to be replaced with random old images in Aperture. It appears to have nothing to do with file names, as I'm now using totally unique file names.

  • Query with ROWNUM - does it scan the entire table? or returns once the limit is reached?

    Suppose I have a table with 50k records.
    I am running a query like the one below
    select *
    from sometable
    where ROWNUM < 10 AND AnotherCondition='y'
    In the above query, I can think of two possible ways to come up with the answer
    1. Scan and apply filter condition on ALL the rows, and return the first 10
    2. Do the things mentioned in option (1) but stop scanning once the record limit of 10 is reached. Don't scan the rest since it is not required.
    I would like to know which of the following approaches does Oracle follow?  Or, does it follow any other strategy that is not mentioned above?
    Has anyone done any tests to find out the answer for the above question?  If so, could you please share the findings?
    Thanks in advance.
    Regards,
    Vivek Ganesan

    Thanks! But where would I run the sql statement. When anyone launches the application it creates the database files in their user directory. How would I connect to the database after that to execute the statement?
    I see the create table statements in the files I have pulled into NetBeans in both the source folder and the distribution folder. Could I add the statement there before the table is created in the jar file in the distribution folder and then re-compile it for distribution? OR would I need to add it to the file in source directory and recompile those to create a new distribution?
    Thanks!

  • Inbound Invoices (EDI 810) with multiple items that are the same keys.

    One of our Vendors just started sending us 810's that have multiple items with the same P.O., Delivery, P/N, Price, etc.  The reason is that they (and we) track inbound batches for the purpose of traceability, so the only difference between items on both the invoice and inbound delivery is the batch number.
    SAP will not allow the automatic creation of an SAP Invoice with these conditions.  The error message is M8321 - 'Document contains same order item more than once'.
    SAP Note 103051 says it cannot be done, and you must "Deactivate the billing of the batch sub-items in SD Customizing" in order to have an Invoice created that combines all items into one.
    Does anyone know how to do that?
    Thanks in advance!

    Nevermind. Fixed the problem. Two menu items both began with the letter S. Added an & before the second letter of the second menu item and now the problem is fixed. First items hotkey is S and the second items hotkey is now h (which is the second letter of the 2nd menu item).

  • CAML query return Two Events that are the same

    Hi,
    when I run a CAML query for a recurring event in a calendar I get the same event returned twice
    steps to reproduce
    create an event in the calendar view as a recurring event
    set the series of event to all day events
    set the occurrence to daily 
    run the below code
    query.Query = "<Where>" +
    "<DateRangesOverlap>" +
    "<FieldRef Name=\"EventDate\" />" +
    "<FieldRef Name=\"EndDate\" />" +
    "<FieldRef Name=\"RecurrenceID\" />" +
    "<Value Type=\"DateTime\">" +
    "<Today />" +
    "</Value>" +
    "</DateRangesOverlap>" +
    "</Where>" +
    "<OrderBy>" +
    "<FieldRef Name='RecurrenceID' />" +
    "</OrderBy>";
    can any one tell me why I'm getting this unexpected result

    The valid values for DateRangesOverlap is Year, Month and Now. Did you try using Now instead of Today?
    Similar Thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/daa06f95-9952-4990-835b-57702acafa11/how-to-get-recurrence-yearly-item-in-list-calendar
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to implement two different websites with one section that has the same content?

    I have two sister websites, each for a separate but related department in a hospital. On each of these websites, I have a main tab called library, which has about 30 pages within it for related healthcare issues. The library is the exact same content on each site, but the main navigation and header for the site is obviously different. I have been upkeeping this identical content on both sites (if something is changed, then I have to do it twice). This isn't efficient and I would like to find a way to combine them somehow. I don't have a ton of experience but I catch on pretty quickly and I basically need ideas for the best way to handle this. I have considered creating a third site, and the library tab on each of the other sites would take you to this new site. I have also wondered if there is a way to embed duplicate content into two separate pages (maybe with an iframe). That way I would update the original file and it would be updated on both sites.
    The sites also have different body sizes. One is 960 pixels wide and the other is 690 because it has a sidebar that makes it smaller. How would you all recommend I handle this? I use Dreamweaver CS6 and my pages are all HTML

    I looked into Server Side Includes and I think I would like to try it, but I can't seem to get it working. The problem is both of my sites are under a separate domain but hosted the same way I believe. For instance, I have two dreamweaver sites, but when I use my FTP, I have one large folder for the main site, then the sister site is in a folder within the main site folder. Although you can get to the main site using www.ukneurology.com, you can also get to the site using kyneurosurgery.com/neurology/index.html. I think this is what is messing me up because I can't seem to get it to work right.

  • VERY URGENT: problem in sql query with long datatype in weblogic

    I have a problem while tryind to retrieve a column value with a long datatype using servlet and oci driver and the server is weblogic5.1 .I have used prepared statement the problem comes in the
    preparedStatement.executeQuery().
    The sql Query is simple query and runs well in all cases and fails only when the long datatype column is included in the query.
    The exception that comes on the weblogic server is that :
    AN UNEXPECTED EXCEPTION DETECTED IN THE NATIVE CODE OUTSIDE THE VM.

    Did you try changing the driver then?
    Please use Oracle's thin driver instead of the oci driver.
    There are many advantages of using the type 4 driver. the first and foremost being that it does not require oracle client side software on your machine. Therefore no enteries to be made in tnsnames.ora
    The thin driver is available in a jar called classes112.zip the class which implements the thin driver is oracle.jdbc.driver.OracleDriver
    the connection string is
    jdbc:oracle:thin:@<machine name>:1521:<sid>
    please try out with the thin driver and let me know.
    regards,
    Abhishek.

  • How can i get a list with all devices that have the same icloud account for iMessage, FaceTime, Reminders, etc...

    Hi, I want to know which devices (iMac, MacBook, iPod, iPhone, iPad & PC) are using my iCloud account, specifically because of iMessage going to devices that im not aware of.
    A list of those devices would be great.
    I do have a list of the ones with find my i activated, but i want the full list. Or at least the ones being used by FaceTime or iMessage!
    Thank you in advance!

    I don't think there's a single place that will give you a list but you can check your devices to create one.  On your iOS devices go to Settings>Messages>Receive At and check the Apple ID at the top.  You can check FaceTime at Settings>FaceTime.  You can check iCloud at Settings>iCloud>Account.  On your Mac go to System Preferences>iCloud> click on Account Details.  On your PC go to Start>Control Panel>Network and Internet>iCloud (you Apple ID is listed on the left).

  • Ora-03114 running a query with group by

    Hi, I've a query with a group by on a sub-query, something like
    SELECT <40+ fields>
      FROM (SELECT <40+ fields>
              FROM table
    GROUP BY <40+ fields> I don't have any problem running this query directly via toad. This query is a cursor in a procedure in a package and, if I invoke it on the same data, the session crash "with ora-03114 not connected to oracle". If I modify the query selecting less fields, 22, I don't have any problem while with 23 the crash appears.
    Furthermore, I don't have any problem in other databases with similar data.
    The db version is 9.2.0.6.0 - 64bit
    Any idea/advice?
    Edited by: 912104 on 3-feb-2012 2.02
    Edited by: 912104 on 3-feb-2012 2.03
    Edited by: 912104 on 3-feb-2012 2.03

    912104 wrote:
    I have difficult to have more information, I can only add:
    select * from v$version
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0 ;   Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production Can I ask what do you think about the different behavior via toad and via package? I mean, it's possible that is a server bug?
    Edited by: 912104 on 3-feb-2012 4.02Are you retrieving the entire result set via toad? or just the first few records?
    Are there any TOAD non-fetched column values in your result set, i.e. CLOBS, XMLTypes, nested types?
    What does your code do with the cursor? Presumably you don't loop through it and do nothing. Are you sure it's the select that's causing the error, or something you are doing with the data in the procedure?
    Can you not adding some instrumentation to your code so that you know exactly what line/data values are processed at the time of the crash? Does it always crash on the same values/line or does it vary?
    "Furthermore, I don't have any problem in other databases with similar data." ... what do you mean by "similar data". You only need one odd value in one column to cause you a 3114 in the right circumstances. It seems like you are long way off establishing what exactly the problem is. It's always useful not to close doors to lines of thought. You need to systematically track down the root cause of the issue by exclusion and assumptions are the enemy of that process.

  • URGENT:Problem in a mapping with 8 tables in JOIN and using the DEDUP op.

    I have an urgent problem with a mapping: I must load data from 8 source tables (joined togheter) in a target table.
    Some data from 1 of the 8 tables have to be deduplicated, so I created a sort of staging table where I inserted the "cleaned" data, I mean, the deduplicated ones.
    I made it to make all the process faster.
    Then, I joined the 8 tabled, writing the join conditions in the operator properties, and connected the outputs into the fields of the target table.
    But..it does not work because this kind of mapping create a cartesian product.
    Then, I tried again with another mapping builted up in this way: after the joiner operator, I used the Match-Merge Operator and I load all data into a staging table exactly alike the target one, except for the PK (because it is a sequence). Then, I load the data from this staging table into the target one, and, of course, I connect to the target table also the sequence (the primary key). The first loading works fine (and load all the data as I expected).
    For the next loadings,I scheduled a pre-mapping process that truncate the staging table and re-load the new data.
    But..it does not work. I mean, It doesn't update the data previously loaded (or inser the new ones), but only insert the data, not considering the PK.
    So, my questions are as follow:
    1) Why loading the data directly from the joiner operator into the fact table doesn't work? Why does it generate a cartesian product??
    2) The "escamotage" to use the Match-Merge operator is correct? I have to admit that I didn't understand very well the behaviour of this operator...
    3) And, most of all, HOW CAN I LOAD MY DATA? I cannot find a way out....

    First of all, thanks for the answer!
    Yes, I inserted the proper join condition and in fact I saw that when WB generates the script it considers my join but, instead of using the fields in a single select statement, it builts up many sub-selects. Furthermore, it seems as it doesn't evaluate properly the fields coming from the source tables where I inserted the deduplicated data...I mean, the problems seems not to be the join condition, but the data not correctly deduplicated..

  • Problem in SAP Query with currency conversion   based on table TCURX

    Hi All,
    I have an infoset where tables A903 and KONP are joined . Query is displaying the KONP-KBTER values with currency as stored in the database table .My requirement is to show the KBETR value as per decimals stored in TCURX table for that currency .
    For Example If KONP-KBETR = 51.29 JPY , It sholuld display as 5129  as  Decimal places for JPY is 0.
    There is FM CURRENCY_AMOUNT_SAP_TO_DISPLAY Which gives the equvivalent display value to the databse value value.But it is giving dump because of type conflict with
    KONP-KBETR .
      Can any body help me how can i solve the problem in My Query ? .Pls any small idea taht may help greatly  also warmly welcome .
    Thx,
    Dharma .

    Hi Sriram ,
    But how can i use it in Queries . I mean should I go for a additional filed in infoset and then passing the  converted value to the the that additional field .
    Thx ,
    Dharma .

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • I have updated my Macbook pro to mavericks since yesturday it has been running none stop with a gray screen and the apple logo in the medle

    I have updated my Macbook pro to mavericks since yesturday it has been running none stop with a gray screen and the apple logo in the midle. Does anyone has incounedt that same of problem? Please help. Thank you in advance.

    The startup disk may need repairing ...
    Startup your Mac while holding down the Command + R keys.
    From there you should be able to access the built in utilities to repair the disk and restore OS X using OS X Recovery

  • I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look

    I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look normal when I first open them in photoshop. I will edit, save, and then realize once i've sent it to myself to test the color is WAY off. This only happens in photoshop. I've read some forums and have tried different things, but it seems to be making it worse. PLEASE HELP! Even viewing the saved image on the mac's pic viewer is way off once i've edited in photoshop. I am having to adjust all my colors by emailing myself to test. Its just getting ridiculous.

    Check the color space in camera raw, the options are in the link at the bottom of the dialog box. Then when saving make sure you save it to the srgb color space when sending to others. Not all programs understand color space and or will default to srgb. That won't necessarily mean it will be accurate, but it will put it in the ballpark. Using save for web will use the srgb color space.

Maybe you are looking for