Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7043838

Regression with ResourceLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jt4.4
    • jt4.4
    • tools
    • None
    • b14
    • b14
    • x86
    • linux
    • Verified

      Hi Sergey,

      (CC'ing JavaTest folks)

      After some interesting debugging, I'm happy to report that this is not a problem, caused by either ME FW or CDC TCK! 8-)

      This is a JavaTest problem. A *regression* in JavaTest 4.4.

      In rev. 2020 I18NResourceBundle has been changed to use so-called ResourceLoader.getBundle(), the change, as I understand it, is related to introduction of "jtExt" extensions feature in the latest JavaTest.

      And, in the ResourceLoader, when jtExt folder is present in the TCK, an alternative class loader is used to locate the resources. This, alternative, class loader looks only in jtExt directory.

      Hence, the problem with missing resources (they *are* present in ME FW jars, but the alt. class loader doesn't look there).

      As a workaround for the CDC TCK, we could remove jtExt directory, which will eliminate the WARNINGS, but then it will re-enadle the AgentMonitor tool, which we don't want.

      JavaTest folks, could you please take a look?

      Here's the stack when the WARNING occurs, just in case. It happens right after the JavaTest with CDC TCK is started.

      Thread [AWT-EventQueue-0] (Suspended)
          ResourceLoader.getBundle(String, Locale, ClassLoader) line: 147
          I18NResourceBundle.handleGetObject(String) line: 137
          I18NResourceBundle(ResourceBundle).getObject(String) line: 368
          I18NResourceBundle(ResourceBundle).getString(String) line: 334
          CompositeFilter.<init>(TestFilter[], I18NResourceBundle, String) line: 75
          CDCTCKInterview(MidpTckBaseInterview).getRelevantTestFilter() line: 302
          CDCTCKInterview(InterviewParameters).getFilters() line: 719
          CDCTCKInterview(MidpTckBaseInterview).getFilters() line: 233
          ParameterFilter.update(Parameters) line: 157
          ET_FilterHandler.updated(Session$Event) line: 466
          BasicSession.notifyQueue() line: 227
          BasicSession.notifyObservers(Session$Event) line: 206
          BasicSession.loadInterviewFromFile(WorkDirectory, File) line: 339
          BasicSession.restore(Map) line: 320
          BasicSessionControl.restore(Map) line: 182
          ExecTool.restore(Map) line: 303
          ExecToolManager.restoreTool(Map) line: 404
          TabDeskView(DeskView).restoreTool(Map, String) line: 623
          TabDeskView(DeskView).restoreTools(Map) line: 561
          TabDeskView.restoreDesktop(Map) line: 330
          Desktop.restore0(Properties) line: 952
          Desktop.restore(File) line: 878
          Desktop.restore() line: 865
          Main$3.run() line: 451
          InvocationEvent.dispatch() line: 199
          EventQueue.dispatchEvent(AWTEvent) line: 597
          EventDispatchThread.pumpOneEventForFilters(int) line: 269
          EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: 184
          EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: 174
          EventDispatchThread.pumpEvents(int, Conditional) line: 169
          EventDispatchThread.pumpEvents(Conditional) line: 161
          EventDispatchThread.run() line: 122


      Thanks,
        --Vladimir

      On 5/10/2011 2:22 PM, Sergey Reznick wrote:
      > Hi Vladimir,
      >
      > I see following console output during CDC TCK start up:
      >
      > WARNING: missing resource: params.rFilter.description for com.sun.tck.j2me.interview.i18n
      > WARNING: missing resource: params.rFilter.name for com.sun.tck.j2me.interview.i18n
      > WARNING: missing resource: params.rFilter.reason for com.sun.tck.j2me.interview.i18n
      >
      > It looks like CDC TCK does not require such kind interview entries.
      >
      > Grepping through FW I see following entries:
      >
      > /set/metck/j2me-framework/promotions/javame_tck_framework/2.0/latest/binaries/src/share/classes/com/sun/tck/j2me/interview/MidpTckBaseInterview.java: TestFilter rf = new CompositeFilter(filters, i18n, "params.rFilter");
      > /set/metck/j2me-framework/promotions/javame_tck_framework/2.0/latest/binaries/src/share/classes/com/sun/tck/j2me/interview/i18n.properties:params.rFilter.description = Certification Filter
      > /set/metck/j2me-framework/promotions/javame_tck_framework/2.0/latest/binaries/src/share/classes/com/sun/tck/j2me/interview/i18n.properties:params.rFilter.name = Certification Filter
      > /set/metck/j2me-framework/promotions/javame_tck_framework/2.0/latest/binaries/src/share/classes/com/sun/tck/j2me/interview/i18n.properties:params.rFilter.reason = Test is not applicable.
      >
      > What can you say on this ?
      > Is it FW issue or CDC TCK setup misses something ?
      > What is goal of "params.rFilter" after all ?
      >
      >
      > Thanks,
      > Sergey

            ersh Mikhail Ershov (Inactive)
            sreznick Sergey Reznick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: