java3d
  1. java3d
  2. JAVA3D-639

ObjectFileMaterials fails on ImageException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: not determined
    • Component/s: j3d-core-utils
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      639

      Description

      Method readMapKd() does not catch a potential exception during texture load,
      causing the entire load to fail (instead of just the texure).

      Solution is to add ImageException to the list of caught Exceptions:
      Line 308

      catch (ImageException iex)

      { // Texture won't get loaded if image problem }

      Solution is ready for integration.

        Activity

        Hide
        mcneillk added a comment -

        Tested.

        Show
        mcneillk added a comment - Tested.
        Hide
        aces added a comment -

        Hi

        Thanks for the review.

        Please check the ImageException declaration. I was unable to track it.
        Also, if ImageException is subclass of IOException, it is already catch.

        ===
        I would like to have a logger to collect exception messages like this on core-utils.
        Unfortunately, Java3D logger is available at javax.media.j3d package only.

        Show
        aces added a comment - Hi Thanks for the review. Please check the ImageException declaration. I was unable to track it. Also, if ImageException is subclass of IOException, it is already catch. === I would like to have a logger to collect exception messages like this on core-utils. Unfortunately, Java3D logger is available at javax.media.j3d package only.
        Hide
        mcneillk added a comment -

        Ok,

        Of course, ImageException is NOT a subclass of IOException, or there would not
        have been any exception, plus the compiler would have pointed this out ...

        I will integrate.

        Show
        mcneillk added a comment - Ok, Of course, ImageException is NOT a subclass of IOException, or there would not have been any exception, plus the compiler would have pointed this out ... I will integrate.
        Hide
        aces added a comment -

        Ok,

        Just make sure that the ImageException class is available, as I couldn't find it
        elsewhere.

        Show
        aces added a comment - Ok, Just make sure that the ImageException class is available, as I couldn't find it elsewhere.
        Hide
        mcneillk added a comment -

        Hi,

        It's a Java 3D class in package com.sun.j3d.utils.image.

        Ok to integrate.

        Show
        mcneillk added a comment - Hi, It's a Java 3D class in package com.sun.j3d.utils.image. Ok to integrate.
        Hide
        mcneillk added a comment -

        Checked in.

        Show
        mcneillk added a comment - Checked in.

          People

          • Assignee:
            java3d-issues
            Reporter:
            mcneillk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: