Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1652

ExpressionFactory: read "el.properties" throws AccessControlException: access denied on GAE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 6.5.1
    • General
    • Google App Engine

      org.zkoss.zel.ExpressionFactory tries to access "el.properties" file which throws "java.security.AccessControlException: access denied" on Google App Engine

      Stacktrace (local dev server, not actually app engine)

      java.security.AccessControlException: access denied (java.io.FilePermission /opt/sun-jdk-1.6.0.37/jre/lib/el.properties read)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
      at java.security.AccessController.checkPermission(AccessController.java:549)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:289)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
      at java.io.File.canRead(File.java:689)
      at org.zkoss.zel.ExpressionFactory.getClassNameJreDir(ExpressionFactory.java:248)
      at org.zkoss.zel.ExpressionFactory.access$100(ExpressionFactory.java:38)
      at org.zkoss.zel.ExpressionFactory$3.run(ExpressionFactory.java:128)
      at org.zkoss.zel.ExpressionFactory$3.run(ExpressionFactory.java:126)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.zkoss.zel.ExpressionFactory.newInstance(ExpressionFactory.java:125)
      at org.zkoss.zel.ExpressionFactory.newInstance(ExpressionFactory.java:105)
      at org.zkoss.zel.BeanELResolver.invoke(BeanELResolver.java:516)
      at org.zkoss.zel.CompositeELResolver.invoke(CompositeELResolver.java:161)
      at org.zkoss.xel.zel.XelELResolver.invoke(XelELResolver.java:148)
      at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:166)
      at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
      at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40)
      at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:43)
      at org.zkoss.bind.impl.BinderImpl.getConverter(BinderImpl.java:406)
      at org.zkoss.bind.impl.PropertyBindingImpl.getConverter(PropertyBindingImpl.java:89)
      at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:64)
      at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:171)
      at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:372)
      at org.zkoss.bind.impl.BinderImpl.loadComponentProperties(BinderImpl.java:1839)
      at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1816)
      at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1819)
      at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1819)
      at org.zkoss.bind.BindComposer$BinderKeeper$Loader.load(BindComposer.java:468)
      at org.zkoss.bind.BindComposer$BinderKeeper.loadComponentForAllBinders(BindComposer.java:450)
      at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:174)
      at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:530)
      ...

            Unassigned Unassigned
            bidifx bidifx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: