[JBossWS] - Re: Null pointer exception when using JBOSSWS 1.0.4 GA vesio
by clebert.suconic@jboss.com
Or at least change ToolsHelper to do some sanity check.. and throw a proper message saying.. "You User didn't set Location property as expected!"
if null.. throw a message to System.out than fail the tas/batch
public void handleWSDLToJavaGeneration(Configuration config, String outDir)
| {
| WSDLToJavaConfig w2jc = config.getWSDLToJavaConfig(false);
| GlobalConfig glc = config.getGlobalConfig(false);
|
| WSDLToJava wsdlToJava = new WSDLToJava();
| wsdlToJava.setTypeMapping(new LiteralTypeMapping());
|
| WSDLDefinitions wsdl = null;
| try
| {
| URL wsdlURL = null;
| try
| {
| wsdlURL = new URL(w2jc.wsdlLocation);
| }
| catch (MalformedURLException e)
| {
| // ignore
| }
|
| if (wsdlURL == null)
| {
| File wsdlFile = new File(w2jc.wsdlLocation); <<<<---- Here..
| if (wsdlFile.exists())
| {
| wsdlURL = wsdlFile.toURL();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046371#4046371
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046371
18 years, 11 months
[EJB 3.0] - Re: merge() behavior - is that correct?
by tarcio
"waynebaylor" wrote : You have a not-null constraint on the status_ field, so i would check to see why the object you're merging has status_=null.
Yes, exactly.
The point is that the object I'm sending to the struts form doesn't have all the fields for update - I mean the object is there, complete, but the struts form doesn't display all the fields.
I think, somehow, struts must be setting the fields not "visible for update" to null and thats why.. I've found a workaround, which is placing the fields on the JSP page as hidden fields and that works perfect
But by doing that, everytime a new field comes in, I need to update the page - which is not a big deal but, from my point of view, the system should handle it.
Regards, Tarcio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046363#4046363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046363
18 years, 11 months