hi,  i'm trying to get DAS to work for my service.  i'm able to query and get 
results back no problem.  below is my code for updating.  if i take out the 
call to account.set(....), then the apply works (but there were no changes to 
the DataObject).  with the account.set(...) call, the exception is thrown.  
ideas? thx abe
Command read = das.getCommand(
read.setParameter(1, Integer.valueOf(organizationId));
root = read.executeQuery();
DataObject account = root.getDataObject(
System.
account.set(
System.
das.applyChanges(root);"getAccountByID");"ACCOUNT[1]");out.println("accountName 
before change -> "+ account.getString("ACCOUNT_NAME"));"ACCOUNT_NAME", 
"TestAccount");out.println("apply changes...");
apply changes...Exception in thread "main" java.lang.NullPointerExceptionat 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.copyFault(
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(
at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
at $Proxy7.updateOrganization(Unknown 
Source)PassByValueInterceptor.java:125)PassByValueInterceptor.java:115)SCABindingInvoker.java:61)PassByValueInterceptor.java:108)JDKInvocationHandler.java:286)JDKInvocationHandler.java:154)


      

Reply via email to