Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1266

Error when adding plugin that has previously been deleted (Oracle 12C database)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.4.x, 1.4.0.Final
    • 1.3.0.Final
    • Management API
    • None

    Description

      There seems be be an issue when adding a plugin that has previously been deleted (Oracle 12C database). There is no Boolean type in Oracle 12C but there is an explicit cast in the code at JpaStorage.java:637
      see stack trace below:

      2017-05-22 11:24:24,719 ERROR [io.apiman.manager.api.jpa.JpaStorage] (default task-44) java.math.BigDecimal cannot be cast to java.lang.Boolean: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Boolean
      at io.apiman.manager.api.jpa.JpaStorage.getPlugin(JpaStorage.java:637)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            astrobrad bradley slater (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: