Nullpointer Exception JmeToMax in update of Basic Game?

I try to load a Max model via JmeToMax in the update cycle of a Basic game

   maxToJme.convert(is, byteArrayOutputStream);

both is and byteArrayOuputStream are != null

and get

        at com.jmex.model.converters.maxutils.MaterialBlock.initializeVariables(
        at com.jmex.model.converters.maxutils.MaterialBlock.<init>(
        at com.jmex.model.converters.maxutils.EditableObjectChunk.processChildChunk(
        at com.jmex.model.converters.maxutils.ChunkerClass.chunk(
        at com.jmex.model.converters.maxutils.EditableObjectChunk.<init>(
        at com.jmex.model.converters.maxutils.TDSFile.processChildChunk(
        at com.jmex.model.converters.maxutils.ChunkerClass.chunk(
        at com.jmex.model.converters.maxutils.TDSFile.chunk(
        at com.jmex.model.converters.maxutils.TDSFile.<init>(
        at com.jmex.model.converters.MaxToJme.convert(

it looks like if

protected void initializeVariables(){

is null.
loading in initSystem or initGame works fine

Can someone point me in the right direction

You have any luck with this one?

I'm guessing that you're running jME 2, right?  You can reproduce this problem if you simple run the main() of the MaxToJme class in jME 2.  I'm having an identical problem with a command line model baker i have for my resources.  I haven't found a solution yet.

Check this out:

many thanks for info!

I have not been able to solve the problem until now :slight_smile:

Great work!!