java.lang.ArithmeticException: BigInteger: modulus not positive

YouTrack | 1 year ago
  1. 0

    Internal compiler error: java.lang.ArithmeticException: BigInteger: modulus not positive

    YouTrack | 1 year ago
    java.lang.ArithmeticException: BigInteger: modulus not positive
  2. 0

    BigInteger modulus not positive exception

    Stack Overflow | 3 years ago | Sparrow
    java.lang.ArithmeticException: BigInteger: modulus not positive
  3. 0

    java.lang.ArithmeticException: BigInteger: modulus not positive

    YouTrack | 3 months ago
    java.lang.ArithmeticException: BigInteger: modulus not positive
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Modulus not positive :BigInteger

    Stack Overflow | 5 years ago | CoolEulerProject
    java.lang.ArithmeticException: BigInteger: modulus no t positive
  6. 0

    strange exception by using BigInteger

    Oracle Community | 1 decade ago | 807549
    java.lang.ArithmeticException: BigInteger divide by zero

    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.ArithmeticException

      BigInteger: modulus not positive

      at java.math.BigInteger.mod()
    2. Java RT
      BigInteger.mod
      1. java.math.BigInteger.mod(BigInteger.java:2415)
      1 frame
    3. org.jetbrains.kotlin
      JetElementImpl.accept
      1. org.jetbrains.kotlin.resolve.constants.evaluate.EvaluatePackage$OperationsMapGenerated$d01c9442$binaryOperations$231.invoke(OperationsMapGenerated.kt:308)
      2. org.jetbrains.kotlin.resolve.constants.evaluate.EvaluatePackage$OperationsMapGenerated$d01c9442$binaryOperations$231.invoke(OperationsMapGenerated.kt)
      3. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.evaluateBinaryAndCheck(ConstantExpressionEvaluator.kt:300)
      4. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.evaluateCall(ConstantExpressionEvaluator.kt:234)
      5. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.visitBinaryExpression(ConstantExpressionEvaluator.kt:196)
      6. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.visitBinaryExpression(ConstantExpressionEvaluator.kt:42)
      7. org.jetbrains.kotlin.psi.JetBinaryExpression.accept(JetBinaryExpression.java:33)
      8. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.evaluate(ConstantExpressionEvaluator.kt:79)
      9. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.access$evaluate$1(ConstantExpressionEvaluator.kt:42)
      10. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator$Companion.evaluate(ConstantExpressionEvaluator.kt:47)
      11. org.jetbrains.kotlin.resolve.constants.evaluate.ConstantExpressionEvaluator.evaluate(ConstantExpressionEvaluator.kt)
      12. org.jetbrains.kotlin.resolve.CompileTimeConstantUtils.canBeReducedToBooleanConstant(CompileTimeConstantUtils.java:133)
      13. org.jetbrains.kotlin.idea.intentions.SimplifyBooleanWithConstantsIntention.canBeReducedToBooleanConstant(SimplifyBooleanWithConstantsIntention.kt:129)
      14. org.jetbrains.kotlin.idea.intentions.SimplifyBooleanWithConstantsIntention.areThereExpressionsToBeSimplified(SimplifyBooleanWithConstantsIntention.kt:52)
      15. org.jetbrains.kotlin.idea.intentions.SimplifyBooleanWithConstantsIntention.isApplicableTo(SimplifyBooleanWithConstantsIntention.kt:37)
      16. org.jetbrains.kotlin.idea.intentions.SimplifyBooleanWithConstantsIntention.isApplicableTo(SimplifyBooleanWithConstantsIntention.kt:33)
      17. org.jetbrains.kotlin.idea.intentions.JetSelfTargetingOffsetIndependentIntention.applicabilityRange(JetSelfTargetingIntention.kt:116)
      18. org.jetbrains.kotlin.idea.inspections.IntentionBasedInspection$buildVisitor$1.visitElement(IntentionBasedInspection.kt:59)
      19. org.jetbrains.kotlin.psi.JetElementImpl.accept(JetElementImpl.java:52)
      19 frames
    4. IDEA
      ApplierCompleter.compute
      1. com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:80)
      2. com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
      3. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:293)
      4. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:76)
      5. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:262)
      6. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:259)
      7. com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:122)
      8. com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
      9. com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
      10. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1143)
      11. com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
      12. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:434)
      13. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:431)
      14. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:383)
      15. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      16. com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:106)
      17. com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
      17 frames
    5. Quasar
      ForkJoinWorkerThread.run
      1. jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
      2. jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
      3. jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
      4. jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
      5. jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
      6. jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
      6 frames