java.lang.IllegalStateException: Name of rule [repository=custom-ruleset, key=AvoidSocketsApi] is empty

Stack Overflow | Suraj M | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SonarQube custom plugin, failing on startup

    Stack Overflow | 5 months ago | Suraj M
    java.lang.IllegalStateException: Name of rule [repository=custom-ruleset, key=AvoidSocketsApi] is empty
  2. 0

    Sonar server startup failed

    GitHub | 2 years ago | radhanandan
    java.lang.IllegalStateException: Name of rule [repository=cxx, key=MissingInclude] is empty
  3. 0

    Name of rule [repository=cxx, key=MissingInclude] is empty

    GitHub | 2 years ago | radhanandan
    java.lang.IllegalStateException: Name of rule [repository=cxx, key=MissingInclude] is empty
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sonar Java Plugin not working after adding a new rule

    Stack Overflow | 1 year ago | Raymundo Salazar
    java.lang.IllegalStateException: One of HTML description or Markdown description must be defined for rule [repository=connexis-rules, key=S2974]
  6. 0

    Sonar server startup failed

    GitHub | 2 years ago | radhanandan
    java.lang.IllegalStateException: Name of rule [repository=cxx, key=MissingInclude] is empty

    1 unregistered visitors
    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.IllegalStateException

      Name of rule [repository=custom-ruleset, key=AvoidSocketsApi] is empty

      at org.sonar.api.server.rule.RulesDefinition$NewRule.validate()
    2. SonarQube :: Plugin API
      RulesDefinition$NewRepositoryImpl.done
      1. org.sonar.api.server.rule.RulesDefinition$NewRule.validate(RulesDefinition.java:888)
      2. org.sonar.api.server.rule.RulesDefinition$NewRule.access$800(RulesDefinition.java:659)
      3. org.sonar.api.server.rule.RulesDefinition$RepositoryImpl.<init>(RulesDefinition.java:566)
      4. org.sonar.api.server.rule.RulesDefinition$RepositoryImpl.<init>(RulesDefinition.java:540)
      5. org.sonar.api.server.rule.RulesDefinition$Context.registerRepository(RulesDefinition.java:436)
      6. org.sonar.api.server.rule.RulesDefinition$Context.access$500(RulesDefinition.java:380)
      7. org.sonar.api.server.rule.RulesDefinition$NewRepositoryImpl.done(RulesDefinition.java:512)
      7 frames
    3. com.deloitte.sonar
      CustomRulesDefinitionTest.test
      1. com.deloitte.sonar.java.CustomRulesDefinition.define(CustomRulesDefinition.java:83)
      2. com.deloitte.sonar.java.CustomRulesDefinitionTest.test(CustomRulesDefinitionTest.java:19)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      13 frames
    6. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    7. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames