Google Web Toolkit › adding gwt-validation-2.1.jar library, hibernate doesn't works. NullPointerException

81 views
Skip to first unread message

Silvio Troia

unread,
Jul 12, 2012, 11:20:14 AM7/12/12
to gwt-val...@googlegroups.com
hi, 
i'm new in GWT, 
i've added a gwt-validation library,
error appears when hibernate have to do merge
 /*

 * (non-Javadoc)

 * @see org.skyway.spring.util.dao.JpaDao#store(java.lang.Object)

 */

@Transactional

public T store(T toStore) {

if (canBeMerged(toStore)) {

return merge(toStore);

}

else {

return persist(toStore);

}

} 



i don't have a stacktrace.
all calls to db doesn't work
in debug mode i see only java.lang.reflect.InvocationTargetException
with target NullPonterExceptions in AopUtils.Class

some helps?

Reto

unread,
Jul 12, 2012, 2:01:41 PM7/12/12
to gwt-val...@googlegroups.com
 
Hi,

try to disable gwt-validation on the server-side and only use it on the gwt-client-side.
E.g. on maven use scope "provided" in the gwt-validation dependency.


Silvio Troia

unread,
Jul 13, 2012, 3:53:52 AM7/13/12
to gwt-val...@googlegroups.com
i think that this isn't possible, 
because it doesn't work when add a library on folder on my project.
i had only copy a file on a folder.
it's strange.

Silvio Troia

unread,
Jul 18, 2012, 9:54:51 AM7/18/12
to gwt-val...@googlegroups.com
some helps?
Reply all
Reply to author
Forward
0 new messages