java.lang.ArithmeticException

BigInteger: modulus not positive

Solutions on the web19

  • BigInteger: modulus not positive
  • via Google Groups by Robert Sueggel, 1 year ago
    BigInteger: modulus not positive
  • BigInteger: modulus not positive
  • Stack trace

    • 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.<init>(PsiBuilderImpl.java:194) at com.intellij.lang.impl.PsiBuilderImpl.<init>(PsiBuilderImpl.java:161) at com.intellij.lang.impl.PsiBuilderFactoryImpl.createBuilder(PsiBuilderFactoryImpl.java:78) 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.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1026) 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.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155) 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 com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:307) 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)

    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.