Hi I create a application in netbeans, and in one web service method it return a List.

 @WebMethod
    public List searchByAuthor(String author) {
        return bookBean.listByAuthor(author);
    }

above is the code. When i right click the web service and click 'Test Web Service' and test the ListByAuthor it gives me an exception

Service invocation threw an exception with message : null; Refer to the server log for more details

Exceptions details : java.lang.reflect.InvocationTargetException

how do i solve this
thanks appreciate help

Recommended Answers

Exceptions details : java.lang.reflect.InvocationTargetException

It means your argument list wasn't valid.

Where is your <List>?

Jump to Post

the list is the values that return from bookBean.listByAuthor(author) method.
the fields are bookID,title,ISBN, description etc

This is function InvocationTargetException{} read this:

http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/InvocationTargetException.html

Jump to Post

All 5 Replies

Member Avatar

Exceptions details : java.lang.reflect.InvocationTargetException

It means your argument list wasn't valid.

Where is your <List>?

Hi LastMich

the list is the values that return from bookBean.listByAuthor(author) method.
the fields are bookID,title,ISBN, description etc

how would i solve it

thanks
appreciate a reply

but i would i display the result?

Member Avatar

but i would i display the result?

If you resolve the InvocationTargetException{} issue, then on your JSP page will display the results.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.