Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtime Emulator Java error on database rules #2734

Closed
criesbeck opened this issue Oct 22, 2020 · 7 comments
Closed

Realtime Emulator Java error on database rules #2734

criesbeck opened this issue Oct 22, 2020 · 7 comments

Comments

@criesbeck
Copy link

[REQUIRED] Environment info

Firebase: 8.13.1

firebase-tools:

Realtime database emulator

Platform:

macOS Catalina 10.15.7

[REQUIRED] Test case

A database.rules.json with the following crashes the emulator rule parser on startup.

{
  "rules": {
    ".read": true,
    "tickets": {
      "$offering_id": {
        "tickets": {
            "blocks": {
              "$block_id": {
                ".validate": "newData.hasChildren(['timestamp', 'text']"
            }
          }
        }
      }
    }
  }
}

[REQUIRED] Steps to reproduce

Create an empty directory and initialize.

firebase init

Firebase CLI features: Select Realtime Database and Emulators.
Project: Create a new Firebase project or use any existing one.
Database setup: Accept defaults
Emulators setup: Select Realtime Database. Accept defaults for the rest.

Replace database.rules.json with the following:

{
  "rules": {
    ".read": true,
    "tickets": {
      "$offering_id": {
        "tickets": {
            "blocks": {
              "$block_id": {
                ".validate": "newData.hasChildren(['timestamp', 'text']"
            }
          }
        }
      }
    }
  }
}

Start emulators:

firebase emulators:start

[REQUIRED] Expected behavior

The database emulator starts and there is an empty local database.

[REQUIRED] Actual behavior

There's a Java Exception. Full stacktrace

firebase emulators:start --debug

[2020-10-22T18:47:15.343Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2020-10-22T18:47:15.344Z] > authorizing via signed-in user
i  emulators: Starting emulators: database {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: database"}}
[2020-10-22T18:47:15.359Z] [hub] writing locator at /var/folders/jq/ffnr2w494d9_b4ntg152zprw0000gp/T/hub-fb-bug-test.json
[2020-10-22T18:47:15.379Z] database rules config:  [{"instance":"fb-bug-test","rules":"/Users/riesbeck/workspace/javascript/react/fb-bug-emulator/database.rules.json"}]
[2020-10-22T18:47:15.382Z] Ignoring unsupported arg: projectId {"metadata":{"emulator":{"name":"database"},"message":"Ignoring unsupported arg: projectId"}}
[2020-10-22T18:47:15.383Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"database"},"message":"Ignoring unsupported arg: auto_download"}}
[2020-10-22T18:47:15.383Z] Ignoring unsupported arg: rules {"metadata":{"emulator":{"name":"database"},"message":"Ignoring unsupported arg: rules"}}
[2020-10-22T18:47:15.383Z] Starting Database Emulator with command {"binary":"java","args":["-Duser.language=en","-jar","/Users/riesbeck/.cache/firebase/emulators/firebase-database-emulator-v4.6.0.jar","--host","localhost","--port",9000],"optionalArgs":["port","host","functions_emulator_port","functions_emulator_host"],"joinArgs":false} {"metadata":{"emulator":{"name":"database"},"message":"Starting Database Emulator with command {\"binary\":\"java\",\"args\":[\"-Duser.language=en\",\"-jar\",\"/Users/riesbeck/.cache/firebase/emulators/firebase-database-emulator-v4.6.0.jar\",\"--host\",\"localhost\",\"--port\",9000],\"optionalArgs\":[\"port\",\"host\",\"functions_emulator_port\",\"functions_emulator_host\"],\"joinArgs\":false}"}}
i  database: Database Emulator logging to database-debug.log {"metadata":{"emulator":{"name":"database"},"message":"Database Emulator logging to \u001b[1mdatabase-debug.log\u001b[22m"}}
[2020-10-22T18:47:16.223Z] WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/Users/riesbeck/.cache/firebase/emulators/firebase-database-emulator-v4.6.0.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release {"metadata":{"emulator":{"name":"database"},"message":"WARNING: An illegal reflective access operation has occurred\nWARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/Users/riesbeck/.cache/firebase/emulators/firebase-database-emulator-v4.6.0.jar) to field sun.nio.ch.SelectorImpl.selectedKeys\nWARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil\nWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations\nWARNING: All illegal access operations will be denied in a future release"}}
[2020-10-22T18:47:16.224Z] 
 {"metadata":{"emulator":{"name":"database"},"message":"\n"}}
[2020-10-22T18:47:17.091Z] 13:47:17.088 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
 {"metadata":{"emulator":{"name":"database"},"message":"13:47:17.088 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started\n"}}
[2020-10-22T18:47:17.266Z] 13:47:17.258 [main] INFO com.firebase.server.forge.App$ - Listening at localhost:9000
 {"metadata":{"emulator":{"name":"database"},"message":"13:47:17.258 [main] INFO com.firebase.server.forge.App$ - Listening at localhost:9000\n"}}
[2020-10-22T18:47:17.450Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}}
[2020-10-22T18:47:17.450Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}}
[2020-10-22T18:47:17.450Z] Starting Emulator UI with command {"binary":"node","args":["/Users/riesbeck/.cache/firebase/emulators/ui-v1.1.1/server.bundle.js"],"optionalArgs":[],"joinArgs":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/Users/riesbeck/.cache/firebase/emulators/ui-v1.1.1/server.bundle.js\"],\"optionalArgs\":[],\"joinArgs\":false}"}}
i  ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}}
[2020-10-22T18:47:17.593Z] Web / API server started at http://localhost:4000
 {"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at http://localhost:4000\n"}}
[2020-10-22T18:47:17.748Z] >>> HTTP REQUEST PUT http://localhost:9000/.settings/rules.json?ns=fb-bug-test  
 {
  "rules": {
    ".read": true,
    "tickets": {
      "$offering_id": {
        "tickets": {
            "blocks": {
              "$block_id": {
                ".validate": "newData.hasChildren(['timestamp', 'text']"
            }
          }
        }
      }
    }
  }
}

[2020-10-22T18:47:18.181Z] 13:47:18.181 [NamespaceSystem-akka.actor.default-dispatcher-6:fb-bug-test$2069544216::fb-bug-test$1553763066:] ERROR com.firebase.core.namespace.NamespaceActor - Unexpected error caught in NamespaceActor(fb-bug-test) for AdminEnvelope(SecurityClaims(Some(GCloudToken(owner,GCloudOwner,1603396038,None)),None),UpdateRules({
  "rules": {
    ".read": true,
    "tickets": {
      "$offering_id": {
        "tickets": {
            "blocks": {
              "$block_id": {
                ".validate": "newData.hasChildren(['timestamp', 'text']"
            }
          }
        }
      }
    }
  }
}
,false))
java.lang.ExceptionInInitializerError: null
	at org.mozilla.javascript.Context.getCurrentContext(Context.java:346)
	at org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)
	at org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)
	at org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)
	at org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)
	at org.mozilla.javascript.Parser.addError(Parser.java:177)
	at org.mozilla.javascript.Parser.addError(Parser.java:166)
	at org.mozilla.javascript.Parser.reportError(Parser.java:223)
	at org.mozilla.javascript.Parser.reportError(Parser.java:217)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)
	at org.mozilla.javascript.Parser.argumentList(Parser.java:2390)
	at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)
	at org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)
	at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
	at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
	at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
	at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
	at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
	at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
	at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
	at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
	at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
	at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
	at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
	at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
	at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
	at org.mozilla.javascript.Parser.expr(Parser.java:2012)
	at org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)
	at org.mozilla.javascript.Parser.statement(Parser.java:901)
	at org.mozilla.javascript.Parser.parse(Parser.java:540)
	at org.mozilla.javascript.Parser.parse(Parser.java:478)
	at com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)
	at com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)
	at com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)
	at com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)
	at com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)
	at com.firebase.util.result.package$Result.map(package.scala:45)
	at com.firebase.util.result.package$Result.map$(package.scala:43)
	at com.firebase.util.result.package$Value.map(package.scala:163)
	at com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)
	at com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)
	at com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)
	at com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)
	at com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)
	at com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)
	at scala.collection.immutable.List.flatMap(List.scala:366)
	at com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)
	at com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)
	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
	at akka.actor.FSM.processEvent(FSM.scala:801)
	at akka.actor.FSM.processEvent$(FSM.scala:798)
	at com.firebase.core.namespace.NamespaceActor {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.181 [NamespaceSystem-akka.actor.default-dispatcher-6:fb-bug-test$2069544216::fb-bug-test$1553763066:] ERROR com.firebase.core.namespace.NamespaceActor - Unexpected error caught in NamespaceActor(fb-bug-test) for AdminEnvelope(SecurityClaims(Some(GCloudToken(owner,GCloudOwner,1603396038,None)),None),UpdateRules({\n  \"rules\": {\n    \".read\": true,\n    \"tickets\": {\n      \"$offering_id\": {\n        \"tickets\": {\n            \"blocks\": {\n              \"$block_id\": {\n                \".validate\": \"newData.hasChildren(['timestamp', 'text']\"\n            }\n          }\n        }\n      }\n    }\n  }\n}\n,false))\njava.lang.ExceptionInInitializerError: null\n\tat org.mozilla.javascript.Context.getCurrentContext(Context.java:346)\n\tat org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)\n\tat org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:177)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:166)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:223)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:217)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)\n\tat org.mozilla.javascript.Parser.argumentList(Parser.java:2390)\n\tat org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)\n\tat org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)\n\tat org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)\n\tat org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)\n\tat org.mozilla.javascript.Parser.addExpr(Parser.java:2213)\n\tat org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)\n\tat org.mozilla.javascript.Parser.relExpr(Parser.java:2169)\n\tat org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)\n\tat org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)\n\tat org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)\n\tat org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)\n\tat org.mozilla.javascript.Parser.andExpr(Parser.java:2097)\n\tat org.mozilla.javascript.Parser.orExpr(Parser.java:2086)\n\tat org.mozilla.javascript.Parser.condExpr(Parser.java:2062)\n\tat org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)\n\tat org.mozilla.javascript.Parser.expr(Parser.java:2012)\n\tat org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)\n\tat org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)\n\tat org.mozilla.javascript.Parser.statement(Parser.java:901)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:540)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:478)\n\tat com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)\n\tat com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)\n\tat com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)\n\tat com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)\n\tat com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)\n\tat com.firebase.util.result.package$Result.map(package.scala:45)\n\tat com.firebase.util.result.package$Result.map$(package.scala:43)\n\tat com.firebase.util.result.package$Value.map(package.scala:163)\n\tat com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)\n\tat com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)\n\tat com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)\n\tat com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)\n\tat com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)\n\tat com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)\n\tat scala.collection.immutable.List.flatMap(List.scala:366)\n\tat com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)\n\tat com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)\n\tat akka.actor.FSM.processEvent(FSM.scala:801)\n\tat akka.actor.FSM.processEvent$(FSM.scala:798)\n\tat com.firebase.core.namespace.NamespaceActor"}}
[2020-10-22T18:47:18.183Z] .processEvent(NamespaceActor.scala:98)
	at akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)
	at akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)
	at akka.actor.Actor.aroundReceive(Actor.scala:533)
	at akka.actor.Actor.aroundReceive$(Actor.scala:531)
	at com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)
	at akka.actor.ActorCell.invoke(ActorCell.scala:543)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)
	at akka.dispatch.Mailbox.run(Mailbox.scala:230)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:242)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance
	at org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)
	at org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)
	... 105 common frames omitted
 {"metadata":{"emulator":{"name":"database"},"message":".processEvent(NamespaceActor.scala:98)\n\tat akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)\n\tat akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)\n\tat akka.actor.Actor.aroundReceive(Actor.scala:533)\n\tat akka.actor.Actor.aroundReceive$(Actor.scala:531)\n\tat com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)\n\tat akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)\n\tat akka.actor.ActorCell.invoke(ActorCell.scala:543)\n\tat akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:230)\n\tat akka.dispatch.Mailbox.exec(Mailbox.scala:242)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\nCaused by: java.lang.IllegalStateException: Failed to create VMBridge instance\n\tat org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)\n\tat org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)\n\t... 105 common frames omitted\n"}}
[2020-10-22T18:47:18.196Z] 13:47:18.196 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.NamespaceActor - Stopping namespace actor for fb-bug-test
 {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.196 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.NamespaceActor - Stopping namespace actor for fb-bug-test\n"}}
[2020-10-22T18:47:18.198Z] 13:47:18.197 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.NamespaceActor - Gauges removed for fb-bug-test
 {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.197 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.NamespaceActor - Gauges removed for fb-bug-test\n"}}
[2020-10-22T18:47:18.199Z] 13:47:18.197 [NamespaceSystem-akka.actor.default-dispatcher-6] ERROR akka.actor.OneForOneStrategy - Actor restart triggered
com.firebase.core.namespace.package$ActorRestart: Actor restart triggered
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)
	at com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)
	at scala.collection.immutable.List.flatMap(List.scala:366)
	at com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)
	at com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)
	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
	at akka.actor.FSM.processEvent(FSM.scala:801)
	at akka.actor.FSM.processEvent$(FSM.scala:798)
	at com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)
	at akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)
	at akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)
	at akka.actor.Actor.aroundReceive(Actor.scala:533)
	at akka.actor.Actor.aroundReceive$(Actor.scala:531)
	at com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)
	at akka.actor.ActorCell.invoke(ActorCell.scala:543)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)
	at akka.dispatch.Mailbox.run(Mailbox.scala:230)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:242)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.ExceptionInInitializerError: null
	at org.mozilla.javascript.Context.getCurrentContext(Context.java:346)
	at org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)
	at org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)
	at org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)
	at org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)
	at org.mozilla.javascript.Parser.addError(Parser.java:177)
	at org.mozilla.javascript.Parser.addError(Parser.java:166)
	at org.mozilla.javascript.Parser.reportError(Parser.java:223)
	at org.mozilla.javascript.Parser.reportError(Parser.java:217)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)
	at org.mozilla.javascript.Parser.argumentList(Parser.java:2390)
	at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)
	at org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)
	at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
	at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
	at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
	at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
	at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
	at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
	at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
	at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
	at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
	at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
	at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
	at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
	at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
	at org.mozilla.javascript.Parser.expr(Parser.java:2012)
	at org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)
	at org.mozilla.javascript.Parser.statement(Parser.java:901)
	at org.mozilla.javascript.Parser.parse(Parser.java:540)
	at org.mozilla.javascript.Parser.parse(Parser.java:478)
	at com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)
	at com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)
	at com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)
	at com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)
	at com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)
	at com.firebase.util.result.package$Result.map(package.scala:45)
	at com.firebase.util.result.package$Result.map$(package.scala:43)
	at com.firebase.util.result.package$Value.map(package.scala:163)
	at com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)
	at com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)
	at com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(Na {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.197 [NamespaceSystem-akka.actor.default-dispatcher-6] ERROR akka.actor.OneForOneStrategy - Actor restart triggered\ncom.firebase.core.namespace.package$ActorRestart: Actor restart triggered\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)\n\tat com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)\n\tat scala.collection.immutable.List.flatMap(List.scala:366)\n\tat com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)\n\tat com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)\n\tat akka.actor.FSM.processEvent(FSM.scala:801)\n\tat akka.actor.FSM.processEvent$(FSM.scala:798)\n\tat com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)\n\tat akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)\n\tat akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)\n\tat akka.actor.Actor.aroundReceive(Actor.scala:533)\n\tat akka.actor.Actor.aroundReceive$(Actor.scala:531)\n\tat com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)\n\tat akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)\n\tat akka.actor.ActorCell.invoke(ActorCell.scala:543)\n\tat akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:230)\n\tat akka.dispatch.Mailbox.exec(Mailbox.scala:242)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\nCaused by: java.lang.ExceptionInInitializerError: null\n\tat org.mozilla.javascript.Context.getCurrentContext(Context.java:346)\n\tat org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)\n\tat org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:177)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:166)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:223)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:217)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)\n\tat org.mozilla.javascript.Parser.argumentList(Parser.java:2390)\n\tat org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)\n\tat org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)\n\tat org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)\n\tat org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)\n\tat org.mozilla.javascript.Parser.addExpr(Parser.java:2213)\n\tat org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)\n\tat org.mozilla.javascript.Parser.relExpr(Parser.java:2169)\n\tat org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)\n\tat org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)\n\tat org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)\n\tat org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)\n\tat org.mozilla.javascript.Parser.andExpr(Parser.java:2097)\n\tat org.mozilla.javascript.Parser.orExpr(Parser.java:2086)\n\tat org.mozilla.javascript.Parser.condExpr(Parser.java:2062)\n\tat org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)\n\tat org.mozilla.javascript.Parser.expr(Parser.java:2012)\n\tat org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)\n\tat org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)\n\tat org.mozilla.javascript.Parser.statement(Parser.java:901)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:540)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:478)\n\tat com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)\n\tat com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)\n\tat com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)\n\tat com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)\n\tat com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)\n\tat com.firebase.util.result.package$Result.map(package.scala:45)\n\tat com.firebase.util.result.package$Result.map$(package.scala:43)\n\tat com.firebase.util.result.package$Value.map(package.scala:163)\n\tat com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)\n\tat com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)\n\tat com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(Na"}}
[2020-10-22T18:47:18.201Z] mespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)
	at com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)
	at com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)
	... 37 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance
	at org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)
	at org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)
	... 105 common frames omitted
 {"metadata":{"emulator":{"name":"database"},"message":"mespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)\n\tat com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)\n\tat com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)\n\t... 37 common frames omitted\nCaused by: java.lang.IllegalStateException: Failed to create VMBridge instance\n\tat org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)\n\tat org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)\n\t... 105 common frames omitted\n"}}
[2020-10-22T18:47:18.204Z] 13:47:18.203 [NamespaceSystem-akka.actor.default-dispatcher-5] ERROR com.firebase.core.namespace.NamespaceActor - Post restart for actor Actor[akka://NamespaceSystem/user/fb-bug-test#-349907809]
com.firebase.core.namespace.package$ActorRestart: Actor restart triggered
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)
	at com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)
	at scala.collection.immutable.List.flatMap(List.scala:366)
	at com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)
	at com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)
	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
	at akka.actor.FSM.processEvent(FSM.scala:801)
	at akka.actor.FSM.processEvent$(FSM.scala:798)
	at com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)
	at akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)
	at akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)
	at akka.actor.Actor.aroundReceive(Actor.scala:533)
	at akka.actor.Actor.aroundReceive$(Actor.scala:531)
	at com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)
	at akka.actor.ActorCell.invoke(ActorCell.scala:543)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)
	at akka.dispatch.Mailbox.run(Mailbox.scala:230)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:242)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.ExceptionInInitializerError: null
	at org.mozilla.javascript.Context.getCurrentContext(Context.java:346)
	at org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)
	at org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)
	at org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)
	at org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)
	at org.mozilla.javascript.Parser.addError(Parser.java:177)
	at org.mozilla.javascript.Parser.addError(Parser.java:166)
	at org.mozilla.javascript.Parser.reportError(Parser.java:223)
	at org.mozilla.javascript.Parser.reportError(Parser.java:217)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)
	at org.mozilla.javascript.Parser.argumentList(Parser.java:2390)
	at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)
	at org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)
	at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
	at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
	at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
	at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
	at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
	at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
	at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
	at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
	at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
	at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
	at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
	at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
	at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
	at org.mozilla.javascript.Parser.expr(Parser.java:2012)
	at org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)
	at org.mozilla.javascript.Parser.statement(Parser.java:901)
	at org.mozilla.javascript.Parser.parse(Parser.java:540)
	at org.mozilla.javascript.Parser.parse(Parser.java:478)
	at com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)
	at com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)
	at com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)
	at com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)
	at com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)
	at com.firebase.util.result.package$Result.map(package.scala:45)
	at com.firebase.util.result.package$Result.map$(package.scala:43)
	at com.firebase.util.result.package$Value.map(package.scala:163)
	at com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)
	at com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)
	at com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)
	at  {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.203 [NamespaceSystem-akka.actor.default-dispatcher-5] ERROR com.firebase.core.namespace.NamespaceActor - Post restart for actor Actor[akka://NamespaceSystem/user/fb-bug-test#-349907809]\ncom.firebase.core.namespace.package$ActorRestart: Actor restart triggered\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)\n\tat com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)\n\tat scala.collection.immutable.List.flatMap(List.scala:366)\n\tat com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)\n\tat com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)\n\tat akka.actor.FSM.processEvent(FSM.scala:801)\n\tat akka.actor.FSM.processEvent$(FSM.scala:798)\n\tat com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)\n\tat akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)\n\tat akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)\n\tat akka.actor.Actor.aroundReceive(Actor.scala:533)\n\tat akka.actor.Actor.aroundReceive$(Actor.scala:531)\n\tat com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)\n\tat akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)\n\tat akka.actor.ActorCell.invoke(ActorCell.scala:543)\n\tat akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:230)\n\tat akka.dispatch.Mailbox.exec(Mailbox.scala:242)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\nCaused by: java.lang.ExceptionInInitializerError: null\n\tat org.mozilla.javascript.Context.getCurrentContext(Context.java:346)\n\tat org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)\n\tat org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:177)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:166)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:223)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:217)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)\n\tat org.mozilla.javascript.Parser.argumentList(Parser.java:2390)\n\tat org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)\n\tat org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)\n\tat org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)\n\tat org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)\n\tat org.mozilla.javascript.Parser.addExpr(Parser.java:2213)\n\tat org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)\n\tat org.mozilla.javascript.Parser.relExpr(Parser.java:2169)\n\tat org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)\n\tat org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)\n\tat org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)\n\tat org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)\n\tat org.mozilla.javascript.Parser.andExpr(Parser.java:2097)\n\tat org.mozilla.javascript.Parser.orExpr(Parser.java:2086)\n\tat org.mozilla.javascript.Parser.condExpr(Parser.java:2062)\n\tat org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)\n\tat org.mozilla.javascript.Parser.expr(Parser.java:2012)\n\tat org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)\n\tat org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)\n\tat org.mozilla.javascript.Parser.statement(Parser.java:901)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:540)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:478)\n\tat com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)\n\tat com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)\n\tat com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)\n\tat com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)\n\tat com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)\n\tat com.firebase.util.result.package$Result.map(package.scala:45)\n\tat com.firebase.util.result.package$Result.map$(package.scala:43)\n\tat com.firebase.util.result.package$Value.map(package.scala:163)\n\tat com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)\n\tat com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)\n\tat com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag.scala:41)\n\tat "}}
[2020-10-22T18:47:18.206Z] com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)
	at com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)
	at com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)
	... 37 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance
	at org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)
	at org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)
	... 105 common frames omitted
 {"metadata":{"emulator":{"name":"database"},"message":"com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)\n\tat com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)\n\tat com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)\n\t... 37 common frames omitted\nCaused by: java.lang.IllegalStateException: Failed to create VMBridge instance\n\tat org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)\n\tat org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)\n\t... 105 common frames omitted\n"}}
[2020-10-22T18:47:18.208Z] 13:47:18.208 [NamespaceSystem-akka.actor.default-dispatcher-5:fb-bug-test$518222576:] ERROR com.firebase.core.namespace.NamespaceActor - Unknown message: InternalError(An internal error occurred) from Actor[akka://NamespaceSystem/user/fb-bug-test#-349907809]
 {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.208 [NamespaceSystem-akka.actor.default-dispatcher-5:fb-bug-test$518222576:] ERROR com.firebase.core.namespace.NamespaceActor - Unknown message: InternalError(An internal error occurred) from Actor[akka://NamespaceSystem/user/fb-bug-test#-349907809]\n"}}
[2020-10-22T18:47:18.210Z] 13:47:18.208 [NamespaceSystem-akka.actor.default-dispatcher-6] ERROR com.firebase.core.namespace.view.BroadcastActor - Post restart for actor Actor[akka://NamespaceSystem/user/fb-bug-test/broadcast#840789770]
com.firebase.core.namespace.package$ActorRestart: Actor restart triggered
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)
	at com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)
	at com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)
	at com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)
	at scala.collection.immutable.List.flatMap(List.scala:366)
	at com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)
	at com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)
	at com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)
	at com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)
	at com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)
	at com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)
	at com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)
	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
	at akka.actor.FSM.processEvent(FSM.scala:801)
	at akka.actor.FSM.processEvent$(FSM.scala:798)
	at com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)
	at akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)
	at akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)
	at akka.actor.Actor.aroundReceive(Actor.scala:533)
	at akka.actor.Actor.aroundReceive$(Actor.scala:531)
	at com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)
	at akka.actor.ActorCell.invoke(ActorCell.scala:543)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)
	at akka.dispatch.Mailbox.run(Mailbox.scala:230)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:242)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.ExceptionInInitializerError: null
	at org.mozilla.javascript.Context.getCurrentContext(Context.java:346)
	at org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)
	at org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)
	at org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)
	at org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)
	at org.mozilla.javascript.Parser.addError(Parser.java:177)
	at org.mozilla.javascript.Parser.addError(Parser.java:166)
	at org.mozilla.javascript.Parser.reportError(Parser.java:223)
	at org.mozilla.javascript.Parser.reportError(Parser.java:217)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)
	at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)
	at org.mozilla.javascript.Parser.argumentList(Parser.java:2390)
	at org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)
	at org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)
	at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
	at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
	at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
	at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
	at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
	at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
	at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
	at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
	at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
	at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
	at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
	at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
	at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
	at org.mozilla.javascript.Parser.expr(Parser.java:2012)
	at org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)
	at org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)
	at org.mozilla.javascript.Parser.statement(Parser.java:901)
	at org.mozilla.javascript.Parser.parse(Parser.java:540)
	at org.mozilla.javascript.Parser.parse(Parser.java:478)
	at com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)
	at com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)
	at com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)
	at com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)
	at com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)
	at com.firebase.util.result.package$Result.map(package.scala:45)
	at com.firebase.util.result.package$Result.map$(package.scala:43)
	at com.firebase.util.result.package$Value.map(package.scala:163)
	at com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)
	at com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)
	at com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag. {"metadata":{"emulator":{"name":"database"},"message":"13:47:18.208 [NamespaceSystem-akka.actor.default-dispatcher-6] ERROR com.firebase.core.namespace.view.BroadcastActor - Post restart for actor Actor[akka://NamespaceSystem/user/fb-bug-test/broadcast#840789770]\ncom.firebase.core.namespace.package$ActorRestart: Actor restart triggered\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:509)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$7(NamespaceActor.scala:459)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$6(NamespaceActor.scala:457)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$2(Dispatcher.scala:28)\n\tat com.firebase.core.stats.NamespaceStats.timeNamespaceActorMessage(NamespaceStats.scala:1645)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:67)\n\tat com.firebase.core.namespace.NamespaceDispatcher$NamespaceDispatcherStats.onAtom(NamespaceDispatcher.scala:54)\n\tat com.firebase.util.concurrent.Dispatcher.$anonfun$dispatch$1(Dispatcher.scala:28)\n\tat scala.collection.immutable.List.flatMap(List.scala:366)\n\tat com.firebase.util.concurrent.Dispatcher.dispatch(Dispatcher.scala:22)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleBatchOfMessages$1(NamespaceActor.scala:452)\n\tat com.firebase.util.logging.Logging.withRenamedThread(Logging.scala:90)\n\tat com.firebase.util.logging.Logging.withRenamedThread$(Logging.scala:85)\n\tat com.firebase.core.namespace.NamespaceActor.withRenamedThread(NamespaceActor.scala:98)\n\tat com.firebase.core.namespace.NamespaceActor.handleBatchOfMessages(NamespaceActor.scala:433)\n\tat com.firebase.core.namespace.BatchingThrottler.com$firebase$core$namespace$BatchingThrottler$$sendBatch(BatchingThrottler.scala:137)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:219)\n\tat com.firebase.core.namespace.BatchingThrottler$$anonfun$startThrottling$2.applyOrElse(BatchingThrottler.scala:216)\n\tat scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)\n\tat akka.actor.FSM.processEvent(FSM.scala:801)\n\tat akka.actor.FSM.processEvent$(FSM.scala:798)\n\tat com.firebase.core.namespace.NamespaceActor.processEvent(NamespaceActor.scala:98)\n\tat akka.actor.FSM.akka$actor$FSM$$processMsg(FSM.scala:795)\n\tat akka.actor.FSM$$anonfun$receive$1.applyOrElse(FSM.scala:790)\n\tat akka.actor.Actor.aroundReceive(Actor.scala:533)\n\tat akka.actor.Actor.aroundReceive$(Actor.scala:531)\n\tat com.firebase.core.namespace.NamespaceActor.aroundReceive(NamespaceActor.scala:98)\n\tat akka.actor.ActorCell.receiveMessage(ActorCell.scala:573)\n\tat akka.actor.ActorCell.invoke(ActorCell.scala:543)\n\tat akka.dispatch.Mailbox.processMailbox(Mailbox.scala:269)\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:230)\n\tat akka.dispatch.Mailbox.exec(Mailbox.scala:242)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\nCaused by: java.lang.ExceptionInInitializerError: null\n\tat org.mozilla.javascript.Context.getCurrentContext(Context.java:346)\n\tat org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3637)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage(ScriptRuntime.java:3625)\n\tat org.mozilla.javascript.ScriptRuntime.getMessage0(ScriptRuntime.java:3573)\n\tat org.mozilla.javascript.Parser.lookupMessage(Parser.java:197)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:177)\n\tat org.mozilla.javascript.Parser.addError(Parser.java:166)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:223)\n\tat org.mozilla.javascript.Parser.reportError(Parser.java:217)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)\n\tat org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)\n\tat org.mozilla.javascript.Parser.argumentList(Parser.java:2390)\n\tat org.mozilla.javascript.Parser.memberExprTail(Parser.java:2523)\n\tat org.mozilla.javascript.Parser.memberExpr(Parser.java:2442)\n\tat org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)\n\tat org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)\n\tat org.mozilla.javascript.Parser.addExpr(Parser.java:2213)\n\tat org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)\n\tat org.mozilla.javascript.Parser.relExpr(Parser.java:2169)\n\tat org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)\n\tat org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)\n\tat org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)\n\tat org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)\n\tat org.mozilla.javascript.Parser.andExpr(Parser.java:2097)\n\tat org.mozilla.javascript.Parser.orExpr(Parser.java:2086)\n\tat org.mozilla.javascript.Parser.condExpr(Parser.java:2062)\n\tat org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)\n\tat org.mozilla.javascript.Parser.expr(Parser.java:2012)\n\tat org.mozilla.javascript.Parser.nameOrLabel(Parser.java:1765)\n\tat org.mozilla.javascript.Parser.statementHelper(Parser.java:1032)\n\tat org.mozilla.javascript.Parser.statement(Parser.java:901)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:540)\n\tat org.mozilla.javascript.Parser.parse(Parser.java:478)\n\tat com.firebase.core.namespace.rules.expressionparser.RuleExpressionParser$.parse(RuleExpressionParser.scala:28)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleExpression(RuleNodeParser.scala:159)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:105)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parseRuleNode(RuleNodeParser.scala:115)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$RuleNodeParser.parse(RuleNodeParser.scala:58)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.$anonfun$parse$1(RuleNodeParser.scala:31)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.namespace.rules.tree.RuleNodeParser$.parse(RuleNodeParser.scala:27)\n\tat com.firebase.core.namespace.NamespaceManager.parseUntrustedRules(NamespaceManager.scala:389)\n\tat com.firebase.core.namespace.NamespaceManager.updateRules(NamespaceManager.scala:432)\n\tat com.firebase.core.namespace.NamespaceActor.handleNewRules(NamespaceActor.scala:1529)\n\tat com.firebase.core.namespace.NamespaceActor.handleAllowedAdminMessage(NamespaceActor.scala:600)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleAdminMessage$1(NamespaceActor.scala:590)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$withCredential$1(NamespaceActor.scala:542)\n\tat com.firebase.util.result.package$Result.map(package.scala:45)\n\tat com.firebase.util.result.package$Result.map$(package.scala:43)\n\tat com.firebase.util.result.package$Value.map(package.scala:163)\n\tat com.firebase.core.namespace.NamespaceActor.withCredential(NamespaceActor.scala:539)\n\tat com.firebase.core.namespace.NamespaceActor.handleAdminMessage(NamespaceActor.scala:583)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$3(NamespaceActor.scala:530)\n\tat com.firebase.core.namespace.NamespaceActor.checkActive(NamespaceActor.scala:238)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$2(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.util.misc.DynamicShutdownFlag$.using(ShutdownFlag."}}
[2020-10-22T18:47:18.211Z] scala:41)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)
	at com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)
	at com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)
	at com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)
	at com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)
	... 37 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance
	at org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)
	at org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)
	... 105 common frames omitted
 {"metadata":{"emulator":{"name":"database"},"message":"scala:41)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleEnvelope$1(NamespaceActor.scala:518)\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)\n\tat com.firebase.core.util.CurrentOperationInfo$.set(CurrentOperationInfo.scala:20)\n\tat com.firebase.core.namespace.NamespaceActor.handleEnvelope(NamespaceActor.scala:517)\n\tat com.firebase.core.namespace.NamespaceActor.$anonfun$handleSingleMessage$1(NamespaceActor.scala:498)\n\tat com.firebase.core.stats.NamespaceStats.measureNamespaceHandleMessageBytesAllocated(NamespaceStats.scala:1201)\n\tat com.firebase.core.namespace.NamespaceActor.handleSingleMessage(NamespaceActor.scala:498)\n\t... 37 common frames omitted\nCaused by: java.lang.IllegalStateException: Failed to create VMBridge instance\n\tat org.mozilla.javascript.VMBridge.makeInstance(VMBridge.java:38)\n\tat org.mozilla.javascript.VMBridge.<clinit>(VMBridge.java:18)\n\t... 105 common frames omitted\n"}}
@samtstern
Copy link
Contributor

@criesbeck this definitely shouldn't be crashing the emulator but it does look like you have a typo:

// Missing a ) to close hasChildren()
".validate": "newData.hasChildren(['timestamp', 'text']"

Should be:

".validate": "newData.hasChildren(['timestamp', 'text'])"

Does adding the closing ) fix the issue?

@criesbeck
Copy link
Author

It does! D'oh.

I had checked the JSON with JSONLint, but I didn't run a JavaScript checker on the validate rules.

Thanks!

@samtstern
Copy link
Contributor

samtstern commented Oct 23, 2020

@IanWyszynski can you look into why such a small error caused such a massive explosion from the RTDB emulator?

@criesbeck
Copy link
Author

The minimal rule set for causing the parse error seems to be this. Is it having a JavaScript syntax error inside a variable block?

{
  "rules": {
      "$offering_id": {
          ".validate": "newData.hasChildren(['timestamp', 'text']"
      }
  }
}

@jmwski
Copy link
Contributor

jmwski commented Oct 29, 2020

I reproduced this issue locally. To clarify, this is just a nasty log statement. The rules update doesn't crash the emulator process. There may be some changes we can make locally to clean up this big stack trace. I will update this issue when I figure those out.

There does actually seem to be a deeper issue here. When I run the emulator from the firebase-server using sbt 'emulator/run' I get an appropriate error message for this rules update:

1:213: missing ) after argument list

But when I execute the jar for v4.6.0, the same update causes the curl client issuing an update request to hang and results in an error similar to the one shown:

https://gist.github.com/IanWyszynski/97dfe99395b013f4816b2a6e41e95a0b

This does seem to be specific to the emulator, I tested updating rules for one of my prod namespaces with the offending ruleset and got:

wyszynski@wyszynski ~/IdeaProjects/firebase-server/tools (master)$ curl -X PUT https://fir-multi-shards.firebaseio.com/.settings/rules.json?auth=psQL0Noyc24gfEpa7GvREYZTqW5w1QHcy8OmuJs4 -d @database.rules.json
{
  "error" : "1:102: missing ) after argument list\n"
}

@criesbeck
Copy link
Author

criesbeck commented Oct 29, 2020 via email

@jmwski
Copy link
Contributor

jmwski commented Feb 26, 2021

I believe this issue should be resolved with the linked release.

@jmwski jmwski removed their assignment Oct 2, 2023
@joehan joehan closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy