Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    NullPointerException when uploading file

    Hi, I faced the problem as description in these threads

    1. http://forums.smartclient.com/showthread.php?t=7437
    2. http://forums.smartclient.com/showthread.php?t=8967

    I found the root cause it is because the DSRequest instanced by other threads

    e.g.
    in TaxDMI.java

    public void update(Tax tax, DSRequset dsRequest){
    .....

    taxService.processTax(tax, dsRequest); // taxService is a SpringBean

    ......
    }

    in TaxService.java

    public void processTax(Tax tax, DSRequest dsRequest){
    .....
    }

    if I removed the param 'dsRequest' from #processTax in TaxService, then this problem resolved.

    But I had no idea why this would side effect on var Config in com.isomorphic.datasource.DSRequest

    my version is SISV 6.5.1
    Last edited by xml-leo; 20 Dec 2010, 07:17.
Working...
X