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