-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Post loaded Class Files for Hibernate Problem
PostPosted: Sun Mar 12, 2006 10:08 am 
Newbie

Joined: Fri Feb 17, 2006 11:05 am
Posts: 3
i have a really not solveable problem

the problem is i am developing a logistic software for managing the whole data which occure during the processes of such a company.
if the program will be finished ther will be a enterpriese, standard.. edition availabe. so i made modules which you could add by copying a jar file which includes all class files mapping files pictures etc.
so when i try to save a dataobject java throws a propertyaccess exception whe i come to the source code session.save(addr)

Code:
public void addAddress(Address addr) {
        Session session=null;
        try {
            session = hibUtil.getSession();
            hibUtil.beginTransaction();
            addr.setModbenutzer_id(1);
            addr.setSysstatus(2);
            session.save(addr);
            hibUtil.commitTransaction();
        }catch(PropertyAccessException e){
            e.printStackTrace();
            logger.error("Fehler beim Schreiben einer Adresse: "+e.getPropertyName()+" "+e.getMessage());
        } catch (HibernateException ex) {
            ex.printStackTrace();
            logger.error("Adresse konnte nicht in Datenbank gespeichert werden"+ex+session);
        }
    }


the funny fuck solution for that is only to copy the class file of Address into mainwindow, but i dont know why because then the program work, but then the whole modularity isnt working beause then i must alvwys send the whole main jar file also the my customers.

main jar:
frachtprofi.core.(mainclassfiles)

addressmanagement.jar
frachtprofi.addrmgr.(modulclassfiles) here should be the Address.class

but it must be at the main.jar that is works dont know why


please help me


Top
 Profile  
 
 Post subject: Re: Post loaded Class Files for Hibernate Problem
PostPosted: Sun Mar 12, 2006 4:12 pm 
Regular
Regular

Joined: Wed Feb 22, 2006 11:28 am
Posts: 65
Location: Santiago, Chile
Hello Friend:

Can you post your stack trace? It ver hard to understand your problem without the trace posted.

I am waiting for you trace.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.