java.lang.IllegalArgumentException: Name is not valid

Oracle Community | 3004 | 1 decade ago
  1. 0

    error setting schema

    Oracle Community | 1 decade ago | 3004
    java.lang.IllegalArgumentException: Name is not valid
  2. 0

    When calling mindc with the <definition>[:<execname>] syntax, if there is extra space in the string like in the example bellow (helloworld.HelloworldApplication :hw) we get a unclear error message. IllegalArgumentException: Name "" is not a valid name. This type of error involving extra white space can easily happen when variables are used in the makefile for example $(MINDC) $(MINDC_OPT) $(ADL_NAME):$(EXEC_NAME) mindc-0.3/bin/mindc -src-path=src -o=build helloworld.HelloworldApplication :hw [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_ctrl_impl.i [io] CPP: /tmp/mindc423304790751412651.tmp/boot/Bootstrap_impl0.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/Helloworld_ctrl_impl.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/Client_impl0.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/Server_impl0.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_HelloworldApplication_instances.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Helloworld_instances.i [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_ctrl_impl.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/boot/Bootstrap_impl0.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/Helloworld_ctrl_impl.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/Client_impl0.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/Server_impl0.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_HelloworldApplication_instances.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Helloworld_instances.mpp.c [io] GCC: build/helloworld/HelloworldApplication_ctrl_impl.o [io] GCC: build/boot/Bootstrap_impl0.o [io] CPP: /tmp/mindc423304790751412651.tmp/boot/Bootstrap_ctrl_impl.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_boot_Bootstrap_instances.i [io] GCC: build/helloworld/Helloworld_ctrl_impl.o [io] GCC: build/helloworld/Client_impl0.o [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/Client_ctrl_impl.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Client_instances.i [io] GCC: build/helloworld/Server_impl0.o [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/Server_ctrl_impl.i [io] CPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Server_instances.i [io] GCC: build/helloworld/HelloworldApplication_helloworld_HelloworldApplication_instances.o [io] GCC: build/helloworld/HelloworldApplication_helloworld_Helloworld_instances.o [io] MPP: /tmp/mindc423304790751412651.tmp/boot/Bootstrap_ctrl_impl.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_boot_Bootstrap_instances.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/Client_ctrl_impl.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Client_instances.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/Server_ctrl_impl.mpp.c [io] MPP: /tmp/mindc423304790751412651.tmp/helloworld/HelloworldApplication_helloworld_Server_instances.mpp.c [io] GCC: build/boot/Bootstrap_ctrl_impl.o [io] GCC: build/helloworld/HelloworldApplication_boot_Bootstrap_instances.o [io] GCC: build/helloworld/Client_ctrl_impl.o [io] GCC: build/helloworld/HelloworldApplication_helloworld_Client_instances.o [io] GCC: build/helloworld/Server_ctrl_impl.o [io] GCC: build/helloworld/HelloworldApplication_helloworld_Server_instances.o [io] LD : build/helloworld/HelloworldApplication Exception in thread "main" java.lang.IllegalArgumentException: Name "" is not a valid name. at org.ow2.mind.NameHelper.toValidName(NameHelper.java:100) at org.ow2.mind.PathHelper.fullyQualifiedNameToPath(PathHelper.java:265) at org.ow2.mind.PathHelper.fullyQualifiedNameToPath(PathHelper.java:248) at org.ow2.mind.adl.BasicADLLocator.getADLBinaryName(BasicADLLocator.java:74) at org.ow2.mind.adl.OutputBinaryADLLocator.findBinaryADL(OutputBinaryADLLocator.java:34) at org.ow2.mind.adl.BinaryADLLoader.load(BinaryADLLoader.java:87) at org.ow2.mind.adl.generic.TemplateInstanceLoader.load(TemplateInstanceLoader.java:39) at org.ow2.mind.adl.CacheLoader.load(CacheLoader.java:78) at org.ow2.mind.BasicADLCompiler.load(BasicADLCompiler.java:84) at org.ow2.mind.AbstractADLCompiler.compile(AbstractADLCompiler.java:77) at org.ow2.mind.Launcher.compile(Launcher.java:200) at org.ow2.mind.Launcher.main(Launcher.java:370) make: *** [helloworld] Error 1

    JIRA | 5 years ago | Bruno Lavigueur
    java.lang.IllegalArgumentException: Name "" is not a valid name.
  3. 0

    jopendocument create spreadsheet programatically and show it

    Stack Overflow | 2 years ago | ArShadow
    java.lang.IllegalArgumentException: null is not a valid StyleMasterPage name
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 13#178946522

    GitHub | 10 months ago | mgarod
    java.lang.IllegalArgumentException: Sakas is not a valid Professor's name
  6. 0

    Incompatibilities with Eclipse API Tooling tags

    eclipse-cs | 7 years ago | lgoubet
    java.lang.IllegalArgumentException: the name [noimplement] is not a valid Javadoc tag name

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Name is not valid

      at com.bea.xbean.store.Cursor.validateLocalName()
    2. com.bea.xbean
      Cursor.insertAttribute
      1. com.bea.xbean.store.Cursor.validateLocalName(Cursor.java:779)
      2. com.bea.xbean.store.Cursor.insertAttributeWithValue(Cursor.java:825)
      3. com.bea.xbean.store.Cursor.insertAttribute(Cursor.java:814)
      3 frames
    3. com.metoffice.dds
      LoadRunner.main
      1. com.metoffice.dds.dataload.sigwx.SigwxDecodedFile.getXML(SigwxDecodedFile.java:682)
      2. com.metoffice.dds.dataload.sigwx.SigwxDataLoader.processFiles(SigwxDataLoader.java:203)
      3. com.metoffice.dds.dataload.sigwx.LoadRunner.main(LoadRunner.java:42)
      3 frames