beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Song (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Created: (BEEHIVE-124) control extension:context on Entensible is NULL
Date Mon, 06 Dec 2004 02:16:20 GMT
control extension:context on Entensible is NULL
-----------------------------------------------

         Key: BEEHIVE-124
         URL: http://nagoya.apache.org/jira/browse/BEEHIVE-124
     Project: Beehive
        Type: Bug
  Components: Controls  
    Versions: V1Beta    
    Reporter: James Song
 Assigned to: Kyle Marvin 
     Fix For: V1Beta


Problem: I have a detailed test that tries to get property via a method declared on the Extensible
control, the test failed because the context on the Extensible is NULL.

Is this an usage error?

Repro: run ant detailed.tests from controls/test dir
in controls/test/tch.html there is an aborted test:

SubControlTest-testGetReconfiguredPropertyByContext2.testGetReconfiguredPropertyByContext2

Testcase name  SubControlTest.testGetReconfiguredPropertyByContext2 
Test path  D:\beehive\controls\test\mantis-cases\org-apache-beehive-controls-test-java-extension.xml:83

execution output  
********************************

Context is NULL

********************************

java.lang.NullPointerException
	at org.apache.beehive.controls.test.controls.extension.ExtensibleControlImpl.getLayerByContext(ExtensibleControlImpl.java:34)
	at org.apache.beehive.controls.test.controls.extension.ExtensibleControlBean.getLayerByContext(ExtensibleControlBean.java:107)
	at org.apache.beehive.controls.test.driver.extension.DriveSubControl.doGetReconfiguredPropertyByContext(DriveSubControl.java:189)
	at org.apache.beehive.controls.test.java.extension.SubControlTest.testGetReconfiguredPropertyByContext2(SubControlTest.java:266)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message