'nodesWithAnimationManagers' (a nil value)

when I used cocos2dx-lua and cocosbuilder to develop my project.it show this:
Cocos2d: [LUA-print] LUA ERROR: [string “CCBReaderLoad.lua”]:49: attempt to index local ‘nodesWithAnimationManagers’ (a nil value)
cocos2dx version is 2.1.4 and cocosbuilder version is 3.0.
eg:

— for CCLuaEngine traceback
function GTRACKBACK__(msg)
print(“—————————————~~")
print … “”)
print)
print
end
local function main
— avoid memory leak
collectgarbage
collectgarbage
local cclog = function
print)
end
require “CCBReaderLoad”
MainScene = MainScene or {}
ccb = MainScene —这里ccb中的参数要和ccb中根节点的JS Controller的名称相同
— run
local function HelloCCBTestMainLayer
local proxy = CCBProxy:create
local node = CCBReaderLoad
local layer = tolua.cast
return layer
end
function runCocosBuilder
cclog
local scene = CCScene:create
scene:addChild)
return scene
end
local scene = runCocosBuilder

if nil ~= scene then
CCDirector:sharedDirector:pushScene));
end
end
xpcall
bug:
Cocos2d: HelloCCBSceneTestMain
Cocos2d: Get data from file failed!
Cocos2d: —————————————~~
Cocos2d: [LUA-print] LUA ERROR: [string”CCBReaderLoad.lua“]:49: attempt to index local ‘nodesWithAnimationManagers’ (a nil value)
Cocos2d: [LUA-print] stack traceback:
…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:6: in function ‘__index’
[string”CCBReaderLoad.lua"]:49: in function ‘CCBReaderLoad’
…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:27: in function ‘HelloCCBTestMainLayer’
…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:35: in function ‘runCocosBuilder’
…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:39: in function <…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:10>
[C]: in function ‘xpcall’
…A4D145D7-315A-4583-8B90-DE9D789657CC/Guess.app/hello.lua:47: in main chunk
Cocos2d: [LUA-print] —————————————-
AudioStreamBasicDescription: 2 ch, 44100 Hz, ‘lpcm’ (0x00000029) 32-bit little-endian float, deinterleaved

Maybe the ccvi file loaded error,can you confirm the file can be found successful.

yes, you are right. thanks.
when I import res. choosed the Create folder references for any added folders.

I have add the ccbi file to my project,but this problem still there.Other solution?

Maybe you can call FileUtils::setSearchPaths function.

I think there is no need to setSearchPath.I can load the ccbi normally in c++ code.

Dose it mean that there are no mistakes?

I think so.But I’m not sure.Something must be wrong.
I want to try your solution.Could you tell me where to call this method and the param?

I have solve my problem.I did not set JS controller in cocosBuilder.