Hi Javier,

On 7/11/07, javier <[EMAIL PROTECTED]> wrote:
>
>   1) Error:
> test_simple_engine_started(SimpleWorkflowTest):
> SystemStackError: stack level too deep
>     /usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open'
>     /usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open'
>     /usr/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-
> uri.rb:37:in `open'
>     /usr/lib/ruby/1.8/logger.rb:518:in `open_logfile'
>     /usr/lib/ruby/1.8/logger.rb:487:in `initialize'
>     /usr/lib/ruby/1.8/logger.rb:263:in `new'
>     /usr/lib/ruby/1.8/logger.rb:263:in `initialize'
>     /usr/lib/ruby/gems/1.8/gems/openwferu-0.9.12/lib/openwfe/engine/
> engine.rb:91:in `new'
>     /usr/lib/ruby/gems/1.8/gems/openwferu-0.9.12/lib/openwfe/engine/
> engine.rb:91:in `initialize'
>     /work/workspace/prototype/config/../lib/wfe/simple_engine.rb:12:in
> `new'
>     /work/workspace/prototype/config/../lib/wfe/simple_engine.rb:12:in
> `initialize'
>     ./test/unit/simple_workflow_test.rb:9:in `new'
>     ./test/unit/simple_workflow_test.rb:9:in `setup'
>
>   2) Error:
> test_simple_engine_started(SimpleWorkflowTest):
> NoMethodError: You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.stop
>     ./test/unit/simple_workflow_test.rb:13:in `teardown'
>
> 17 tests, 43 assertions, 0 failures, 2 errors

The error occurs in that piece of code :

---8<---
        def initialize (application_context={})

            super(S_ENGINE, application_context)

            $OWFE_LOG = application_context[:logger]

            unless $OWFE_LOG
                #puts "Creating logs in " + FileUtils.pwd
                FileUtils.mkdir("logs") unless File.exist?("logs")
                $OWFE_LOG = Logger.new("logs/openwferu.log", 10, 1024000)
                $OWFE_LOG.level = Logger::INFO
            end
--->8---

The exact place is

                $OWFE_LOG = Logger.new("logs/openwferu.log", 10, 1024000)

The "stack level too deep" problem appears in the "open-uri" library.
Strange, should google for that.

An immediate workaround would be to pass the Rails logger when
initting the OpenWFEru engine :

        @engine = OpenWFE::Engine.new(:logger => RAILS_DEFAULT_LOGGER)


Or pass your own Logger.


Hope this helps, best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to