org.w3c.css.sac.CSSException: @def rules must specify an identifier and one or more values


Solutions on the web

Solution icon of googlegroups
via Google Groups by Lukas Johansson, 9 months ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by Rohan Sachdeva, 3 months ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by Thomas Redman, 1 year ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by Thomas Redman, 1 year ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by silvio.troia, 1 year ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by silvio.troia, 1 year ago
@def rules must specify an identifier and one or more values

Solution icon of googlegroups
via Google Groups by Rohan Sachdeva, 3 months ago
@def rules must specify an identifier and one or more values

Stack trace

org.w3c.css.sac.CSSException: @def rules must specify an identifier and 
 one or more values
	at com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.parseDef(GenerateCssAst.java:361)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.ignorableAtRule(GenerateCssAst.java:256)
	at org.w3c.flute.parser.Parser.atRuleDeclaration(Parser.java:1178)
	at org.w3c.flute.parser.Parser.ignoreStatement(Parser.java:622)
	at org.w3c.flute.parser.Parser.parserUnit(Parser.java:452)
	at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:107)
	at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:119)
	at com.google.gwt.resources.css.GenerateCssAst.exec(GenerateCssAst.java:724)
	at com.google.gwt.resources.rg.CssResourceGenerator.prepare(CssResourceGenerator.java:521)
	at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)
	at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)
	at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)
	at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:670)
	at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
	at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
	at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:387)
	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:465)
	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:255)
	at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:244)
	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
	at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
	at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:138)
	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:134)
	at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
	at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:449)
	at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:418)
	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
	at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:940)
	at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:665)
	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:672)
	at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:34)
	at com.google.gwt.dev.Precompile.precompile(Precompile.java:271)
	at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
	at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
	at com.google.gwt.dev.Compiler.run(Compiler.java:167)
	at com.google.gwt.dev.Compiler.run(Compiler.java:132)
	at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
	at com.google.gwt.dev.Compiler.main(Compiler.java:106)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.