I made it past those errors I was getting with my integration tests..
apparently the integration tests will now run before the pax exam karaf
container has finished initialization.  This is why I keep having issues
with things now resolving that should be resolving.  I found out what code
was changed in the Karaf trunk itests and added the same stuff to my tests
and now the tests execute.

Thanks!
Ryan


On Sun, Dec 1, 2013 at 2:56 PM, Jean-Baptiste Onofré <[email protected]>wrote:

> I have it randomly, but it was better after the latest blueprint update.
>
> Regards
> JB
>
>
> On 12/01/2013 07:51 PM, Ryan Moquin wrote:
>
>> When I run the latest snapshot directly, I get this error (which is
>> something that I used to get, I had a workaround for it, which I don't
>> have in anymore, though I thought this had been fixed):
>>
>> 2013-12-01 13:42:03,400 | INFO  | FelixStartLevel  |
>> BlueprintContainerImpl           | 8 - org.apache.aries.blueprint.core -
>> 1.3.0 | Bundle org.apache.karaf.shell.commands is waiting for
>> dependencies [(objectClass=org.jledit.EditorFactory)]
>>
>> Thanks,
>> Ryan
>>
>>
>> On Sun, Dec 1, 2013 at 12:54 PM, Jean-Baptiste Onofré <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     Hi Ryan,
>>
>>     I guess that you are on Windows, right ?
>>
>>     It's a known issue about Windows that lock some files (system level).
>>
>>     I gonna take a look on a Windows VM.
>>
>>     Regards
>>     JB
>>
>>
>>     On 12/01/2013 06:40 PM, rkmoquin wrote:
>>
>>         I just wanted to see if anyone was having issues with the latest
>>         Karaf trunk.
>>         When I try to build it, it fails on the tests in the main
>>         subproject (the
>>         output from the tests is posted below), and when I use the
>>         latest snapshot
>>         in my other integration tests (which used to run), the
>>         RemoteBundleContextClient cannot be retrieved (it says it cannot
>>         connect to
>>         the 21414 port).  I haven't modified any of the source I'm
>>         building from,
>>         and it used to always build fine for me.  Does this sound like
>>         anything
>>         anyone has ran into before?  Thanks for any help!
>>
>>
>>         ------------------------------__-------------------------
>>
>>            T E S T S
>>         ------------------------------__-------------------------
>>         Running org.apache.karaf.main.lock.__
>> DefaultJDBCLockIntegrationTest
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
>>         0.035 sec
>>         Running org.apache.karaf.main.lock.__DefaultJDBCLockTest
>>
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         schemaExists
>>         SEVERE: Error testing for db table: java.lang.NullPointerException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         createSchema
>>         SEVERE: Could not create schema:
>>         java.lang.__IllegalStateException: missing
>>
>>         behavior definition for the preceding method call:
>>         Connection.getMetaData()
>>         Usage is: expect(a.foo()).andXXX()
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.313 sec
>>         Running org.apache.karaf.main.lock.__DerbyJDBCLockIntegrationTest
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
>>         0.004 sec
>>         Running org.apache.karaf.main.lock.__DerbyJDBCLockTest
>>
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         schemaExists
>>         SEVERE: Error testing for db table: java.lang.NullPointerException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         createSchema
>>         SEVERE: Could not create schema:
>>         java.lang.__IllegalStateException: missing
>>
>>         behavior definition for the preceding method call:
>>         Connection.getMetaData()
>>         Usage is: expect(a.foo()).andXXX()
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.08 sec
>>         Running org.apache.karaf.main.lock.__MySQLJDBCLockIntegrationTest
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
>>         0.003 sec
>>         Running org.apache.karaf.main.lock.__MySQLJDBCLockTest
>>
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         schemaExists
>>         SEVERE: Error testing for db table: java.lang.NullPointerException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         createSchema
>>         SEVERE: Could not create schema:
>>         java.lang.__IllegalStateException: missing
>>
>>         behavior definition for the preceding method call:
>>         Connection.getMetaData()
>>         Usage is: expect(a.foo()).andXXX()
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.048 sec
>>         Running org.apache.karaf.main.lock.__
>> OracleJDBCLockIntegrationTest
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
>>         0.007 sec
>>         Running org.apache.karaf.main.lock.__OracleJDBCLockTest
>>
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         aquireLock
>>         WARNING: Failed to acquire database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         aquireLock
>>         WARNING: Failed to acquire database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         aquireLock
>>         WARNING: Failed to acquire database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.032 sec
>>         Running
>>         org.apache.karaf.main.lock.__PostgreSQLJDBCLockIntegrationT__est
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
>>         0.003 sec
>>         Running org.apache.karaf.main.lock.__PostgreSQLJDBCLockTest
>>
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         schemaExists
>>         SEVERE: Error testing for db table: java.lang.NullPointerException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         createSchema
>>         SEVERE: Could not create schema:
>>         java.lang.__IllegalStateException: missing
>>
>>         behavior definition for the preceding method call:
>>         Connection.getMetaData()
>>         Usage is: expect(a.foo()).andXXX()
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock
>>
>>         updateLock
>>         WARNING: Failed to update database lock: java.sql.SQLException
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Dec 01, 2013 12:15:26 PM
>>         org.apache.karaf.main.lock.__DefaultJDBCLock isAlive
>>
>>         SEVERE: Lost lock!
>>         Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.038 sec
>>         Running org.apache.karaf.main.lock.__StatementsTest
>>
>>         Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.002 sec
>>         Running org.apache.karaf.main.__MainLockingTest
>>
>>         Dec 01, 2013 12:15:26 PM org.apache.karaf.main.Main launch
>>         INFO: Installing and starting initial bundles
>>         Dec 01, 2013 12:15:26 PM org.apache.karaf.main.Main launch
>>         INFO: All initial bundles installed and set to start
>>         Dec 01, 2013 12:15:27 PM
>>         org.apache.karaf.main.Main$__KarafLockCallback
>>
>>         lockAquired
>>         INFO: Lock acquired. Setting startlevel to 100
>>         SLF4J: Failed to load class "org.slf4j.impl.__
>> StaticLoggerBinder".
>>
>>         SLF4J: Defaulting to no-operation (NOP) logger implementation
>>         SLF4J: See http://www.slf4j.org/codes.__html#StaticLoggerBinder
>>
>>         <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further
>>         details.
>>         Starting timeout activator
>>         Dec 01, 2013 12:15:30 PM
>>         org.apache.karaf.main.Main$__KarafLockCallback
>>
>>         lockLost
>>         WARNING: Lock lost. Setting startlevel to 1
>>         Timeout activator asked to stopped
>>         Stopping timeout activator
>>         Dec 01, 2013 12:15:42 PM
>>         org.apache.karaf.main.Main$__KarafLockCallback
>>
>>         lockAquired
>>         INFO: Lock acquired. Setting startlevel to 100
>>         Starting timeout activator
>>         Timeout activator asked to stopped
>>         Stopping timeout activator
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         26.482 sec
>>         Running org.apache.karaf.main.__MainStartTest
>>
>>         Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>         0.059 sec
>>         <<< FAILURE!
>>         Running org.apache.karaf.main.util.__BootstrapLogManagerTest
>>
>>         Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.002 sec
>>         Running org.apache.karaf.main.util.__SimpleMavenResolverTest
>>
>>         Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0.001 sec
>>         Running org.apache.karaf.main.util.__StringMapTest
>>
>>         Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>         0 sec
>>
>>         Results :
>>
>>         Tests in error:
>>             testAutoStart(org.apache.__karaf.main.MainStartTest): Unable
>>         to delete file:
>>         C:\Users\Ryan\Documents\__GitHub\github\apache\karaf\__
>> main\target\test-class
>>         es\test-karaf-home\data\log\__karaf.log
>>
>>
>>         Tests run: 88, Failures: 0, Errors: 1, Skipped: 5
>>
>>         [INFO]
>>         ------------------------------__----------------------------
>> --__------------
>>         [INFO] Reactor Summary:
>>         [INFO]
>>         [INFO] Apache Karaf ..............................__........
>>
>>         SUCCESS [1.901s]
>>         [INFO] Apache Karaf :: Util ..............................
>>         SUCCESS [3.175s]
>>         [INFO] Apache Karaf :: Main ..............................
>>         FAILURE [30.836s]
>>
>>
>>
>>         --
>>         View this message in context:
>>         http://karaf.922171.n3.nabble.__com/Building-Karaf-
>> tp4030470.__html
>>
>>         <http://karaf.922171.n3.nabble.com/Building-Karaf-tp4030470.html>
>>         Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     [email protected] <mailto:[email protected]>
>>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to