java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted class. Please see the Google App Engine developer's guide for more details.

Stack Overflow | sleeveroller | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NoClassDefFoundError when adding new font in iText on AppEngine

    Stack Overflow | 3 years ago | sleeveroller
    java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted class. Please see the Google App Engine developer's guide for more details.
  2. 0

    iTextPDF and XMLWorker - App Engine blacklisted class MappedByteBuffer during font loading

    Stack Overflow | 11 months ago | Deviling Master
    java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted class. Please see the Google App Engine developer's guide for more details.

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      java.nio.MappedByteBuffer is a restricted class. Please see the Google App Engine developer's guide for more details.

      at com.google.apphosting.runtime.security.shared.stub.java.nio.channels.FileChannel_.map()
    2. com.google.apphosting
      FileChannel_.map
      1. com.google.apphosting.runtime.security.shared.stub.java.nio.channels.FileChannel_.map(FileChannel.java)
      1 frame
    3. iText, a Free Java-PDF library
      BaseFont.createFont
      1. com.itextpdf.text.io.MappedChannelRandomAccessSource.open(MappedChannelRandomAccessSource.java:104)
      2. com.itextpdf.text.io.FileChannelRandomAccessSource.<init>(FileChannelRandomAccessSource.java:71)
      3. com.itextpdf.text.io.RandomAccessSourceFactory.createBestSource(RandomAccessSourceFactory.java:212)
      4. com.itextpdf.text.io.RandomAccessSourceFactory.createBestSource(RandomAccessSourceFactory.java:193)
      5. com.itextpdf.text.pdf.RandomAccessFileOrArray.<init>(RandomAccessFileOrArray.java:147)
      6. com.itextpdf.text.pdf.TrueTypeFont.process(TrueTypeFont.java:625)
      7. com.itextpdf.text.pdf.TrueTypeFont.<init>(TrueTypeFont.java:369)
      8. com.itextpdf.text.pdf.BaseFont.createFont(BaseFont.java:705)
      9. com.itextpdf.text.pdf.BaseFont.createFont(BaseFont.java:621)
      10. com.itextpdf.text.pdf.BaseFont.createFont(BaseFont.java:456)
      10 frames
    4. ccfb.server.servlets
      PaypalCheckoutServlet.doPost
      1. ccfb.server.servlets.PaypalCheckoutServlet.doPost(PaypalCheckoutServlet.java:156)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    6. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    7. Google AppEngine
      ParseBlobUploadFilter.doFilter
      1. com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
      1 frame
    8. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    9. com.google.apphosting
      SaveSessionFilter.doFilter
      1. com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
      1 frame
    10. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    11. Google AppEngine
      JdbcMySqlConnectionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
      1 frame
    12. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    13. Google AppEngine
      TransactionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
      1 frame
    14. Jetty Server
      WebAppContext.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      6 frames
    15. com.google.apphosting
      AppVersionHandlerMap.handle
      1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)
      1 frame
    16. Jetty Server
      HttpConnection$RequestHandler.headerComplete
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      2. org.mortbay.jetty.Server.handle(Server.java:326)
      3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      4 frames
    17. com.google.apphosting
      RpcRequestParser.parseAvailable
      1. com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
      1 frame
    18. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      1 frame
    19. com.google.apphosting
      JettyServletEngineAdapter.serviceRequest
      1. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)
      1 frame
    20. appengine-managed-runtime
      JavaRuntime$RequestRunnable.run
      1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:446)
      1 frame
    21. Google tracing
      TraceContext$TraceContextRunnable.run
      1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:435)
      2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:442)
      3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:186)
      4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:306)
      5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:298)
      6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:439)
      6 frames
    22. appengine-managed-runtime
      ThreadGroupPool$PoolEntry.run
      1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
      1 frame
    23. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)
      1 frame