我通过这个https://localhost:8443/partymgr/control/viewvendor?partyId=DemoSupplier来提取时发生以下错误,第一次使用,什么也不知道,希望各位帮一下忙.Error: The application script threw an exception: Sourced file: G:\ofbiz\components\party\webapp\partymgr\WEB-INF\actions\party\viewvendor.bsh : null : at Line: 62 : in file: G:\ofbiz\components\party\webapp\partymgr\WEB-INF\actions\party\viewvendor.bsh : party .getRelatedOne ( "Vendor" ) Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation BSF info: G:\ofbiz\components\party\webapp\partymgr\WEB-INF\actions\party\viewvendor.bsh at line: 0 column: 0

解决方案 »

  1.   

    Error: The application script threw an exception: Sourced file: 
    目标资源不存在 这种开源的东西 很少人去研究的 去GOOGLE搜索下吧
    java.lang.NullPointerException: Null Pointer in Method Invocation BSF info: 
    还有个就是空值错了
      

  2.   

     G:\ofbiz\components\party\webapp\partymgr\WEB-INF\actions\party\viewvendor.bsh   文件里的party   .getRelatedOne   (   "Vendor "   ) 值为空,请检查一下自己的程序,request.setAttribute的那个值有没有的