Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-845

Fileupload fail in cluster server (JBoss)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.11
    • Component/s: Clustering
    • Security Level: Jimmy
    • Labels:

      Description

      1. access the zul page in the browser.
      2. close node 1.
      3. upload an image.
      it will cause nullpoint execption
      Problem accessing session data : class
      java.lang.NullPointerException null

      <zk>
      <zscript>
      void upload(UploadEvent event) {
      org.zkoss.util.media.Media media = event.getMedia();
      if (media instanceof org.zkoss.image.Image)

      { org.zkoss.zul.Image image = new org.zkoss.zul.Image(); image.setContent( (org.zkoss.image.Image) media); image.setParent(pics); }

      else

      { Messagebox.show("Not an image: "+media, "Error", Messagebox.OK, Messagebox.ERROR); }

      }
      </zscript>
      <button label="Upload" upload="true" onUpload="upload(event)"/>
      <toolbarbutton label="Upload" upload="true" onUpload="upload(event)"/>
      <vbox id="pics" />
      </zk>

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: