Derby
  1. Derby
  2. DERBY-159

When Derby runs in Network Server mode, client does not receive warnings generated by Derby - should get documented

    Details

    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      A simple code below will demonstrate that warnings generated by Derby running in Server mode do not make their way to client. The client code below is trying to create the database db1drda which already exsits. Server generates a warning for that but the client cde below does not print it.

      con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true;", "app", "app");
      SQLWarning warnings1 = con.getWarnings();
      System.out.println("database exists, should get warning");
      while (warnings1 != null)

      { System.out.println("warnings on connection = " + warnings1); warnings1 = warnings1.getNextWarning(); }
      1. d159.java
        3 kB
        Myrna van Lunteren

        Issue Links

          Activity

          Mamta A. Satoor created issue -
          Jeremy Boynes made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-307 [ DERBY-307 ]
          Mike Matrigali made changes -
          Environment
          Component/s Network Server [ 11410 ]
          Description A simple code below will demonstrate that warnings generated by Derby running in Server mode do not make their way to client. The client code below is trying to create the database db1drda which already exsits. Server generates a warning for that but the client cde below does not print it.

          con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true;", "app", "app");
          SQLWarning warnings1 = con.getWarnings();
          System.out.println("database exists, should get warning");
          while (warnings1 != null)
          {
          System.out.println("warnings on connection = " + warnings1);
          warnings1 = warnings1.getNextWarning();
          }

          A simple code below will demonstrate that warnings generated by Derby running in Server mode do not make their way to client. The client code below is trying to create the database db1drda which already exsits. Server generates a warning for that but the client cde below does not print it.

          con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true;", "app", "app");
          SQLWarning warnings1 = con.getWarnings();
          System.out.println("database exists, should get warning");
          while (warnings1 != null)
          {
          System.out.println("warnings on connection = " + warnings1);
          warnings1 = warnings1.getNextWarning();
          }

          Mamta A. Satoor made changes -
          Affects Version/s 10.0.2.0 [ 10920 ]
          Affects Version/s 10.1.1.0 [ 10993 ]
          Affects Version/s 10.1.2.1 [ 12310615 ]
          Affects Version/s 10.0.2.1 [ 10991 ]
          Affects Version/s 10.1.3.1 [ 12311953 ]
          Affects Version/s 10.1.3.0 [ 12310616 ]
          Myrna van Lunteren made changes -
          Summary When Derby runs in Network Server mode, client does not receive warnings generated by Derby When Derby runs in Network Server mode, client does not receive warnings generated by Derby - should get documented
          Bug behavior facts [Embedded/Client difference]
          Urgency Normal
          Issue & fix info [Repro attached]
          Component/s Documentation [ 11406 ]
          Myrna van Lunteren made changes -
          Attachment d159.java [ 12413446 ]
          Kim Haase made changes -
          Assignee Kim Haase [ chaase3 ]
          Jira made changes -
          Attachment screen_nps.png [ 12443496 ]
          Jira made changes -
          Attachment screen_nps.png [ 12443496 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-4636 [ DERBY-4636 ]
          Kathey Marsden made changes -
          Labels derby_triage10_5_2
          Kim Haase made changes -
          Link This issue relates to DERBY-5191 [ DERBY-5191 ]
          Kim Haase made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.8.1.3 [ 12316378 ]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Fix Version/s 10.8.1.4 [ 12316500 ]
          Fix Version/s 10.8.1.3 [ 12316378 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.8.1.5 [ 12316676 ]
          Fix Version/s 10.8.1.4 [ 12316500 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.2 [ 12317968 ]
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Kim Haase made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Bug behavior facts Embedded/Client difference [ 10363 ]
          Dag H. Wanvik made changes -
          Link This issue relates to DERBY-5907 [ DERBY-5907 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Labels derby_triage10_5_2 derby_backport_reject_10_5
          Kathey Marsden made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 40608 ] Default workflow, editable Closed status [ 12801810 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Kim Haase
              Reporter:
              Mamta A. Satoor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development