Results 1 to 2 of 2

Thread: Help "RPC Fault Server.Processing"

  1. #1
    Join Date
    Jul 2012
    Posts
    2

    Angry Help "RPC Fault Server.Processing"

    I'm trying integrate Java + Flex by using blazeDS.

    Here, one of method in my class that flex remote to:
    PHP Code:
    public List<ContactfindAll() {
            
    Session session sessionFactory.openSession(); // this line
            //Query query = session.createQuery("from Contact");
            
    List<Contactcontacts = new ArrayList<Contact>();
            
    Contact ct1 = new Contact(1"aaa""bbb"234897234"dasds");
            
    Contact ct2 = new Contact(2"asd""cxv"32423543"vcbv");
            
    contacts.add(ct1);
            
    contacts.add(ct2);
            return 
    contacts

    If I create example data by hand, my app run ok.
    If I try to get data from database, my app got an error:
    [RPC Fault faultString="java.lang.NullPointerException : null" faultCode="Server.Processing" faultDetail="null"]
    Please help!!!

    Sorry for my bad English

  2. #2
    Join Date
    Jul 2012
    Posts
    2

    Default

    I tested the database connection by servlet, then I think I config hibernate right.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •