# Overrides standard ruby method_missing interceptor. # NOTE: # This is a workaround for standard method_missing # generates very high CPU usage # when a significant model is loaded in memory. def method_missing(methId,args=nil) objinfo="-" if self.kind_of?(Mrdf_Resource) objinfo= < string. **** 3) locate left member refering to this null element. **** 4) This element is the key of RSM invalid element. **** 5) Locate this element in RSM and fix it (or delete it). **** 6) Re-export your model and check for null uris. **** ********** INVALID MODEL DETECTED ********** END } end log.debug { msg="" self.methods.sort{|a,b| a<=>b}.each {|m| msg="#{msg}, #{m}" } "Available methods are: #{msg}" } #self.included_modules.each { |m| # #puts "include #{m}" # } puts "end of custom method_missing" #TODO: l'appel au stock method_missing genere des temps de traitements infinis. (cpu a 100%, conso memoire enorme) #super puts "exiting" throw NoMethodError.new("method missing '#{methId}' for object '#{self.class.name}'",methId,args) #exit end class Crdf_Resource def method_missing(methId,args=nil) super end end