Hello Rohit,
          
          The line number might be off in my view; it shows that the row
          might be
          null and I am not sure what could cause that without an
          exception or
          problem occuring in the query.  
          Can you send the log just showing the query and the exception
          with
          logging set to finest?  Does it go through any iterations
          before the
          exception occurs, or is it the fist call to hasNext that
          throws the
          exception?
          Can you also check the results from executing the generated
          SQL
          manually?
          
          Best Regards,
          Chris
          
          On 07/07/2011 3:17 AM, Rohit Banga wrote:
          
 Hi All
            
            I am getting a NullPointerException
            when trying to
            execute a ReadAllQuery with scrollable cursor enabled. It
            seems that
            the exception happens when it tries to access the many side
            of the
            mapping.
            I am using Eclipselink-2.3. Here is the stack trace:
            
            Exception in thread "main"
                java.lang.NullPointerException
                    at
org.eclipse.persistence.internal.queries.JoinedAttributeManager.processDataResults(JoinedAttributeManager.java:1074)
                    at
org.eclipse.persistence.queries.ScrollableCursor.retrieveNextObject(ScrollableCursor.java:557)
                    at
org.eclipse.persistence.queries.ScrollableCursor.loadNext(ScrollableCursor.java:397)
                    at
org.eclipse.persistence.queries.ScrollableCursor.hasNext(ScrollableCursor.java:263)
                    at ScrollableCursorTest.main(ScrollableCursorTest.java:80)
              
            I have attached the sample code along with this mail. Can
            someone
            please have a look at it and see what is amiss?
            Thanks in Advance!
            
            -- 
              Thanks and Regards 
              Rohit Banga 
              Member Technical Staff 
              Oracle Server Technologies 
            
            
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users