解决方案 »

  1.   

    在网上看了下,说是jar包的问题,但我检查了一下,并不是网上说的那样删除某几个jar包就好了。求大神支招,这是在显示一张图片时的错误
      

  2.   

    试试看看 request.getAttribute("id");
      

  3.   

    pic jsp 的 74 行是哪行?在你填出来的代码 哪行
      

  4.   

    你试试在看看tomcat里的 D:\Tomcat 7.0\work\Catalina\localhost\你项目\org\apache\jsp\ *\pic_jsp 里看看编译过的代码哪出的问题 或者 一行一行输出看看哪行获取不了数据
      

  5.   


    <%@page import="org.jbpm.api.*,java.io.*"%>
    <%
        ProcessEngine processEngine = Configuration.getProcessEngine();
        RepositoryService repositoryService = processEngine
                .getRepositoryService();
        ExecutionService executionService = processEngine
                .getExecutionService();
        String id = request.getParameter("id");
        ProcessInstance processInstance = executionService
                .findProcessInstanceById(id);
        String processDefinitionId = processInstance
                .getProcessDefinitionId();
        ProcessDefinition processDefinition = repositoryService
                .createProcessDefinitionQuery().processDefinitionId(
                        processDefinitionId).uniqueResult();
        InputStream inputStream = repositoryService.getResourceAsStream(processDefinition.getDeploymentId(),"leave.png");
        byte[] b = new byte[1024];
        int len = -1;
        while ((len = inputStream.read(b, 0, 1024)) != -1) {
            response.getOutputStream().write(b, 0, len);
        }
    %>压根就没有74行,就是这个页面,太奇葩了
      

  6.   

    看这个兄弟的的回复,你要看jsp编译后的java代码的对应行!
      

  7.   

    那你到这JSP页面里面下个断点  很容易看出来的。
      

  8.   

    看你的jsp编译后的java文件,找74行的错误~
      

  9.   

    兄弟,那是因为你传的Id值是kongzhi空值导致的而非代码的错误 好好检查下view.jsp中的id你真的传过来了吗?