Announcement Announcement Module
Collapse
No announcement yet.
Help "RPC Fault Server.Processing" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I tested the database connection by servlet, then I think I config hibernate right.

    Comment

    Working...
    X