jai-core
  1. jai-core
  2. JAI_CORE-110

IMPORTED:JVMCI161: FATAL ERROR in native method: Try to unpin an object that is not pinned

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: medialib
    • Labels:
      None
    • Environment:

      Operating System: Windows 2000
      Platform: PC

    • Issuezilla Id:
      110

      Description

      bpb imported this issue from https://jai.dev.java.net/issues/show_bug.cgi?id=12
      Issue state when exported:
      Assigned to: issues@jai
      Component: jai
      [Issue creation]: 2006-10-05 10:07:22
      Last changed date: 20061005100722
      URL:
      Issue #: 12
      Status: NEW
      Issue type: DEFECT
      Keywords:
      OS/Version: Windows 2000
      Priority: P1
      QA contact: issues@jai
      Platform: PC
      Reported by: sroney
      Resolution:
      Summary: JVMCI161: FATAL ERROR in native method: Try to unpin an object that is not pinned
      Status whiteboard:
      Subcomponent: www
      Target milestone: milestone 1
      Version: current
      Votes:

      ------- Additional comments from sroney@jai.dev.java.net Thu Oct 5 17:07:22 +0000 2006 -------
      Utilizing JAI, I recieved this error message from the JVM:

      JVMCI161: FATAL ERROR in native method: Try to unpin an object that is not
      pinned
      at com.sun.medialib.codec.g4fax.Decoder.G4FAXDecode(Native Method)
      at com.sun.medialib.codec.g4fax.Decoder.decode(Decoder.java:147)
      at
      com.sun.media.imageioimpl.plugins.tiff.TIFFCodecLibFaxDecompressor.decodeRaw
      (TIFFCodecLibFaxDecompressor.java:99)
      at com.sun.media.imageio.plugins.tiff.TIFFDecompressor.decode
      (TIFFDecompressor.java(Compiled Code))
      at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.decodeTile
      (TIFFImageReader.java:963)
      at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.read
      (TIFFImageReader.java:1240)
      at com.TriMin.eRecord.imaging.ImagingUtils.getDPI(ImagingUtils.java:441)
      at com.TriMin.eRecord.imaging.IMSStoreImage.WriteImage
      (IMSStoreImage.java:508)
      at com.TriMin.eRecord.imaging.IMSStoreImage.CallStorImg
      (IMSStoreImage.java:299)
      at com.TriMin.eRecord.imaging.IMSStoreImage.StoreImageDC
      (IMSStoreImage.java:147)
      at com.TriMin.eRecord.imaging.ERImagingEngine.StoreImageDC
      (ERImagingEngine.java:43)
      at com.TriMin.eRecord.ProcessXML.doImageMethod(ProcessXML.java:378)
      at com.TriMin.eRecord.ProcessXML.proc(ProcessXML.java:138)
      at com.TriMin.eRecord.servlet.Inbox.doPost(Inbox.java:89)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
      Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
      Code))
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service
      (ServletWrapper.java(Compiled Code))
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
      (ServletWrapper.java(Compiled Code))
      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest
      (CacheServletWrapper.java(Compiled Code))
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
      (Compiled Code))
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready
      (WCChannelLink.java(Compiled Code))
      at
      com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination
      (HttpInboundLink.java(Compiled Code))
      at
      com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation
      (HttpInboundLink.java(Compiled Code))
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete
      (HttpICLReadCallback.java(Compiled Code))
      at
      com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.compl
      ete(SSLReadServiceContext.java:1698)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete
      (WorkQueueManager.java(Compiled Code))
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO
      (WorkQueueManager.java(Compiled Code))
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun
      (WorkQueueManager.java(Compiled Code))
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run
      (WorkQueueManager.java(Compiled Code))
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

      abnormal program termination
      JVMDG217: Dump Handler is Processing Signal 22 - Please Wait.
      JVMDG303: JVM Requesting Java core file
      JVMDG304: Java core file written to D:\Program
      Files\IBM\WebSphere\AppServer\profiles\default\javacore.20061005.111639.2852.txt
      JVMDG215: Dump Handler has Processed Error Signal 22.

      abnormal program termination

      Here is the offending piece of code:

      public void getDPI(File inFile) {
      try {
      if (inFile.exists())

      { // System.out.println("File Exists"); // System.out.println(inFile.getName()); // System.out.println(inFile.length()); }

      ImageInputStream imageInput = ImageIO.createImageInputStream
      (inFile);
      Iterator it = ImageIO.getImageReaders(imageInput);
      ImageReader reader = null;
      while (it.hasNext())

      { reader = (ImageReader) it.next(); // System.out.println(reader.toString()); }

      reader.setInput(imageInput);
      ImageReadParam param = reader.getDefaultReadParam();
      --> offending line BufferedImage bimg = reader.read(0, param);
      IIOMetadata meta = reader.getImageMetadata(0);
      org.w3c.dom.Node n = meta.getAsTree("javax_imageio_1.0");
      n = n.getFirstChild();
      while (n != null) {
      if (n.getNodeName().equals("Dimension")) {
      org.w3c.dom.Node n2 = n.getFirstChild();
      String s1, s2;
      while (n2 != null) {
      if (n2.getNodeName().equals("HorizontalPixelSize"))

      { org.w3c.dom.NamedNodeMap nnm = n2.getAttributes(); org.w3c.dom.Node n3 = nnm.item(0); float hps = Float.parseFloat(n3.getNodeValue()); setXDPI(Math.round(25.4f / hps)); // System.out.println(getXDPI()); }

      if (n2.getNodeName().equals("VerticalPixelSize"))

      { org.w3c.dom.NamedNodeMap nnm = n2.getAttributes(); org.w3c.dom.Node n3 = nnm.item(0); float vps = Float.parseFloat(n3.getNodeValue()); setYDPI(Math.round(25.4f / vps)); // System.out.println(getYDPI()); }

      n2 = n2.getNextSibling();
      }
      }
      n = n.getNextSibling();
      }
      reader.dispose();
      imageInput.close();
      } catch (Exception e)

      { e.printStackTrace(); }

      }

      What does this mean and why does it shut down the WebSphere instance? Is this
      a memory thing? Please let me know if there is more information that I can give

        Activity

        Hide
        bpb added a comment -

        Import did not preserve the original reporter.

        Show
        bpb added a comment - Import did not preserve the original reporter.
        Hide
        bpb added a comment -

        Apparently it's impossible to preserve the original submitter so reopen the issue.

        Show
        bpb added a comment - Apparently it's impossible to preserve the original submitter so reopen the issue.
        Hide
        bpb added a comment -

        Confirm issue.

        Show
        bpb added a comment - Confirm issue.
        Hide
        bpb added a comment -

        Change subcomponent to mediaLib.

        Show
        bpb added a comment - Change subcomponent to mediaLib.
        Hide
        bpb added a comment -

        Add CC.

        Show
        bpb added a comment - Add CC.
        Hide
        jxc added a comment -

        This issue should be against jai-imageio-core/codeclib instead of
        jai-core/medialib, but I don't know how to move this issue to
        jai-imageio-core.

        It may or may not be related to this issue:
        https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=141

        Show
        jxc added a comment - This issue should be against jai-imageio-core/codeclib instead of jai-core/medialib, but I don't know how to move this issue to jai-imageio-core. It may or may not be related to this issue: https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=141

          People

          • Assignee:
            jxc
            Reporter:
            bpb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: