java.lang.IllegalArgumentException: Invalid string literal : >"org.springsource.restbucks"<

SpringSource Issue Tracker | Martin Lippert | 4 years 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

    There are a lot of exceptions being thrown by the content assist for package names for annotation arguments. They appear when I type characters in and delete them again while the content assist is open and active. {noformat} java.lang.IllegalArgumentException: Invalid string literal : >"org.springsource.restbucks"< at org.eclipse.jdt.core.dom.StringLiteral.setEscapedValue(StringLiteral.java:183) at org.eclipse.jdt.core.dom.StringLiteral.setLiteralValue(StringLiteral.java:326) at org.springframework.ide.eclipse.quickfix.jdt.proposals.PackageNameCompletionProposal.getRewrite(PackageNameCompletionProposal.java:109) at org.eclipse.jdt.ui.text.java.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:234) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244) at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:372) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:254) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:141) at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat} {noformat} java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.rewrite.ASTRewrite.replace(ASTRewrite.java:409) at org.springframework.ide.eclipse.quickfix.jdt.proposals.PackageNameCompletionProposal.getRewrite(PackageNameCompletionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:234) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244) at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:372) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:254) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:141) at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 4 years ago | Martin Lippert (c)
    java.lang.IllegalArgumentException: Invalid string literal : >"org.springsource.restbucks"<
  2. 0

    There are a lot of exceptions being thrown by the content assist for package names for annotation arguments. They appear when I type characters in and delete them again while the content assist is open and active. {noformat} java.lang.IllegalArgumentException: Invalid string literal : >"org.springsource.restbucks"< at org.eclipse.jdt.core.dom.StringLiteral.setEscapedValue(StringLiteral.java:183) at org.eclipse.jdt.core.dom.StringLiteral.setLiteralValue(StringLiteral.java:326) at org.springframework.ide.eclipse.quickfix.jdt.proposals.PackageNameCompletionProposal.getRewrite(PackageNameCompletionProposal.java:109) at org.eclipse.jdt.ui.text.java.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:234) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244) at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:372) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:254) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:141) at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat} {noformat} java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.rewrite.ASTRewrite.replace(ASTRewrite.java:409) at org.springframework.ide.eclipse.quickfix.jdt.proposals.PackageNameCompletionProposal.getRewrite(PackageNameCompletionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:113) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:234) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244) at org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:372) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:254) at org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:141) at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 4 years ago | Martin Lippert
    java.lang.IllegalArgumentException: Invalid string literal : >"org.springsource.restbucks"<

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid string literal : >"org.springsource.restbucks"<

      at org.eclipse.jdt.core.dom.StringLiteral.setEscapedValue()
    2. JDT Core
      StringLiteral.setLiteralValue
      1. org.eclipse.jdt.core.dom.StringLiteral.setEscapedValue(StringLiteral.java:183)
      2. org.eclipse.jdt.core.dom.StringLiteral.setLiteralValue(StringLiteral.java:326)
      2 frames
    3. org.springframework.ide
      PackageNameCompletionProposal.getRewrite
      1. org.springframework.ide.eclipse.quickfix.jdt.proposals.PackageNameCompletionProposal.getRewrite(PackageNameCompletionProposal.java:109)
      1 frame
    4. org.eclipse.jdt
      CUCorrectionProposal.getAdditionalProposalInfo
      1. org.eclipse.jdt.ui.text.java.correction.ASTRewriteCorrectionProposal.addEdits(ASTRewriteCorrectionProposal.java:113)
      2. org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createTextChange(CUCorrectionProposal.java:234)
      3. org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:244)
      4. org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:372)
      5. org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:254)
      6. org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:141)
      6 frames
    5. JFace Text
      AdditionalInfoController$3.run
      1. org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
      1 frame
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame