java.lang.ArithmeticException: BigInteger: modulus not positive

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via YouTrack by Unknown author, 1 year ago
via YouTrack by Unknown author, 1 year ago
via Stack Overflow by Sparrow
, 2 years ago
BigInteger: modulus not positive
via Stack Overflow by CoolEulerProject
, 1 year ago
BigInteger: modulus no t positive
java.lang.ArithmeticException: BigInteger: modulus not positive
at java.math.BigInteger.mod(BigInteger.java:2458)
at com.jetbrains.cidr.lang.util.OCNumber.mod(OCNumber.java:159)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator$ValueEvaluator.evalBinary(OCExpressionEvaluator.java:609)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator$EvaluationVisitor.visitBinaryExpression(OCExpressionEvaluator.java:321)
at com.jetbrains.cidr.lang.psi.impl.OCBinaryExpressionImpl.accept(OCBinaryExpressionImpl.java:106)
at com.jetbrains.cidr.lang.psi.impl.OCElementBase.accept(OCElementBase.java:75)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.evaluate(OCExpressionEvaluator.java:176)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator$EvaluationVisitor.visitBinaryExpression(OCExpressionEvaluator.java:321)
at com.jetbrains.cidr.lang.psi.impl.OCBinaryExpressionImpl.accept(OCBinaryExpressionImpl.java:106)
at com.jetbrains.cidr.lang.psi.impl.OCElementBase.accept(OCElementBase.java:75)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.evaluate(OCExpressionEvaluator.java:176)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.evaluate(OCExpressionEvaluator.java:135)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer.b(OCPreprocessingLexer.java:634)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer.access$000(OCPreprocessingLexer.java:50)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer$1.fun(OCPreprocessingLexer.java:431)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer$1.fun(OCPreprocessingLexer.java:429)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer.a(OCPreprocessingLexer.java:455)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer.a(OCPreprocessingLexer.java:480)
at com.jetbrains.cidr.lang.preprocessor.OCPreprocessingLexer.lookAhead(OCPreprocessingLexer.java:183)
at com.intellij.lexer.LookAheadLexer.doLookAhead(LookAheadLexer.java:73)
at com.intellij.lexer.LookAheadLexer.advance(LookAheadLexer.java:65)
at com.intellij.lang.impl.PsiBuilderImpl.a(PsiBuilderImpl.java:301)
at com.intellij.lang.impl.PsiBuilderImpl.(PsiBuilderImpl.java:194)
at com.intellij.lang.impl.PsiBuilderImpl.(PsiBuilderImpl.java:161)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTableProvider.calcTable(OCSymbolTableProvider.java:63)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTableProvider.calcTable(OCSymbolTableProvider.java:29)
at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTablesCache.forFile(FileSymbolTablesCache.java:415)
at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTable.forFile(FileSymbolTable.java:171)
at com.jetbrains.cidr.lang.preprocessor.OCInclusionContext.preprocessInclude(OCInclusionContext.java:801)
at com.jetbrains.cidr.lang.preprocessor.OCInclusionContext.preprocessInclude(OCInclusionContext.java:788)
at com.jetbrains.cidr.lang.preprocessor.OCImportGraph.getAllRootHeaders(OCImportGraph.java:128)
at com.jetbrains.cidr.lang.preprocessor.OCImportGraph.buildSymbolAndRootHeaderCache(OCImportGraph.java:85)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$OCSymbolTableBuilder$5$1.consume(OCSymbolTablesBuildingActivity.java:677)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$OCSymbolTableBuilder$5$1.consume(OCSymbolTablesBuildingActivity.java:674)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$14$2.run(OCSymbolTablesBuildingActivity.java:781)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$9.value(OCSymbolTablesBuildingActivity.java:420)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.a(OCSymbolTablesBuildingActivity.java:457)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.b(OCSymbolTablesBuildingActivity.java:417)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.access$1400(OCSymbolTablesBuildingActivity.java:49)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$14.run(OCSymbolTablesBuildingActivity.java:773)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.a(OCSymbolTablesBuildingActivity.java:741)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.access$500(OCSymbolTablesBuildingActivity.java:49)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$12.run(OCSymbolTablesBuildingActivity.java:714)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.