java corba error

Niclas Eklund Niclas.Eklund@REDACTED
Tue Aug 6 09:44:22 CEST 2002


Hello!

When compiling your IDL-file (using IC), modules are generated for some
datatypes (e.g. struct). The modules exports the following functions:

 * tc/0 - returns the type code.

 * id/0 - returns the IFR identity. 

 * name/0 - returns the scoped name.

The error message {undef,{subrack,tc,[]}} indicates that subrack.beam
doesn't exist (never compiled or not in the path).

/Nick


> Hi,
> 
> I built a java program to get data from mnesia erlang database. I can get this information:
>
> However when I try to get information on some particular table, the following error appear:
> 
> Error: reason.value: {undef,{subrack,tc,[]}}
> 
> 
> This is the sentence used to get data from "subrack" table:
> 
> 	if(mnesia.Status.ok == mcsRef.dirty_match_all("subrack", result, reason))
> 
> After a trace on server code, error is generated on "mnesia_session_impl" file, exactly on:
> 
> %% Corba records remapping!
> remap_anytype([]) -> [];
> remap_anytype([L |Lrest]) ->
>     RecName = element(1, L),
>     Type = RecName:tc(),			[Here...]
>     [#any{typecode = Type, value = Obj} || Obj <- [L |Lrest]].
> 
> any suggestion are welcome. Thanks
> 
> Best regards,
> 
> Roberto






More information about the erlang-questions mailing list