This discussion is archived
1 Reply Latest reply: Jun 6, 2013 7:24 PM by Michael OBrien RSS

Trying to Deploy an application on Cloud with openrdf-sesame-2.2.4.jar

ola123 Newbie
Currently Being Moderated
Hi,
I am trying to deploy an application which has dependency on openrdf-sesame-2.2.4.jar (which I can't remove from the app). I am getting the following white list validation errors:
ERROR : There are 4,495 error(s) found for D:\Oracle\temp\RemoteAgent\resources\openrdf-sesame-2.2.4.jar
ERROR : Path:D:\Oracle\temp\RemoteAgent\resources\openrdf-sesame-2.2.4.jar (365 Errors)
ERROR : Path:D:\Oracle\temp\RemoteAgent\resources\openrdf-sesame-2.2.4.jar (365 Errors)
ERROR : Class:info.aduna.concurrent.ConfigurableThreadFactory (2 Errors)
ERROR : 1:Type "java.lang.SecurityManager" not allowed.
ERROR : (Line No:26 Method Name:java.lang.SecurityManager->getThreadGroup())
ERROR : 2:Type "java.lang.SecurityManager" not allowed.
ERROR : (Line No:25 Variable Name:java.lang.SecurityManager s ->OnClassSignature:java.lang.SecurityManager)
ERROR : Class:info.aduna.io.ResourceUtil.CallerResolver (3 Errors)
ERROR : 1:Type "java.lang.SecurityManager" not allowed.
ERROR : (OnClassSignature:info.aduna.io.ResourceUtil.CallerResolver ->Base type)
ERROR : 2:Type "java.lang.SecurityManager" not allowed.
ERROR : (Line No:266 Constructor:java.lang.SecurityManager() ->Class Extension?..)
ERROR : 3:Type "java.lang.SecurityManager" not allowed.
ERROR : (Line No:280 Method Name:java.lang.SecurityManager->getClassContext())
ERROR : Class:info.aduna.platform.ProcessLauncher (29 Errors)
ERROR : 1:Type "java.lang.Process" not allowed.
ERROR : (Signature for field:subProcess ->OnClassSignature:java.lang.Process)
ERROR : 2:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:193 Method Name:java.lang.Runtime->getRuntime())
ERROR : 3:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:193 Method Name:java.lang.Runtime->exec(java.lang.String[], java.lang.String[], java.io.File))
ERROR : 4:Type "java.lang.Process" not allowed.
ERROR : (Line No:193 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 5:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:196 Method Name:java.lang.Runtime->getRuntime())
ERROR : 6:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:196 Method Name:java.lang.Runtime->exec(java.lang.String, java.lang.String[], java.io.File))
ERROR : 7:Type "java.lang.Process" not allowed.
ERROR : (Line No:196 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 8:Type "java.lang.Process" not allowed.
ERROR : (Line No:198 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 9:Type "java.lang.Process" not allowed.
ERROR : (Line No:198 Method Name:java.lang.Process->getInputStream())
ERROR : 10:Type "java.lang.Process" not allowed.
ERROR : (Line No:199 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 11:Type "java.lang.Process" not allowed.
ERROR : (Line No:199 Method Name:java.lang.Process->getErrorStream())
ERROR : 12:Type "java.lang.Process" not allowed.
ERROR : (Line No:203 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 13:Type "java.lang.Process" not allowed.
ERROR : (Line No:203 Method Name:java.lang.Process->waitFor())
ERROR : 14:Type "java.lang.Process" not allowed.
ERROR : (Line No:219 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 15:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 16:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Method Name:java.lang.Process->destroy())
ERROR : 17:Type "java.lang.Process" not allowed.
ERROR : (Line No:221 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 18:Type "java.lang.Process" not allowed.
ERROR : (Line No:219 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 19:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 20:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Method Name:java.lang.Process->destroy())
ERROR : 21:Type "java.lang.Process" not allowed.
ERROR : (Line No:221 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 22:Type "java.lang.Process" not allowed.
ERROR : (Line No:219 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 23:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 24:Type "java.lang.Process" not allowed.
ERROR : (Line No:220 Method Name:java.lang.Process->destroy())
ERROR : 25:Type "java.lang.Process" not allowed.
ERROR : (Line No:221 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 26:Type "java.lang.Process" not allowed.
ERROR : (Line No:238 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 27:Type "java.lang.Process" not allowed.
ERROR : (Line No:239 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : 28:Type "java.lang.Process" not allowed.
ERROR : (Line No:239 Method Name:java.lang.Process->destroy())
ERROR : 29:Type "java.lang.Process" not allowed.
ERROR : (Line No:240 Field Name:info.aduna.platform.ProcessLauncher->subProcess ->OnClassSignature:java.lang.Process)
ERROR : Class:info.aduna.webapp.util.FilePart (1 Error)
ERROR : 1:Type "javax.activation.DataSource" not allowed.
ERROR : (OnClassSignature:info.aduna.webapp.util.FilePart ->Base type)
ERROR : Class:org.openrdf.console.Console (5 Errors)
ERROR : 1:Method "exit" not allowed from "java.lang.System".
ERROR : (Line No:202 Method Name:java.lang.System->exit(int))
ERROR : 2:Method "exit" not allowed from "java.lang.System".
ERROR : (Line No:207 Method Name:java.lang.System->exit(int))
ERROR : 3:Method "exit" not allowed from "java.lang.System".
ERROR : (Line No:216 Method Name:java.lang.System->exit(int))
ERROR : 4:Method "exit" not allowed from "java.lang.System".
ERROR : (Line No:231 Method Name:java.lang.System->exit(int))
ERROR : 5:Method "exit" not allowed from "java.lang.System".
ERROR : (Line No:240 Method Name:java.lang.System->exit(int))
ERROR : Class:org.openrdf.query.resultio.binary.BinaryQueryResultParser (5 Errors)
ERROR : 1:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:325 Method Name:java.nio.ByteBuffer->wrap(byte[]))
ERROR : 2:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:326 Method Name:java.nio.charset.CharsetDecoder->decode(java.nio.ByteBuffer))
ERROR : 3:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:328 Method Name:java.nio.CharBuffer->toString())
ERROR : 4:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:325 Variable Name:java.nio.ByteBuffer byteBuf ->OnClassSignature:java.nio.ByteBuffer)
ERROR : 5:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:326 Variable Name:java.nio.CharBuffer charBuf ->OnClassSignature:java.nio.CharBuffer)
ERROR : Class:org.openrdf.query.resultio.binary.BinaryQueryResultWriter (6 Errors)
ERROR : 1:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:279 Method Name:java.nio.CharBuffer->wrap(java.lang.CharSequence))
ERROR : 2:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:279 Method Name:java.nio.charset.CharsetEncoder->encode(java.nio.CharBuffer))
ERROR : 3:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:280 Method Name:java.nio.ByteBuffer->remaining())
ERROR : 4:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:281 Method Name:java.nio.ByteBuffer->array())
ERROR : 5:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:281 Method Name:java.nio.ByteBuffer->remaining())
ERROR : 6:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:279 Variable Name:java.nio.ByteBuffer byteBuf ->OnClassSignature:java.nio.ByteBuffer)
ERROR : Class:org.openrdf.sail.helpers.DirectoryLockManager.1 (9 Errors)
ERROR : 1:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Signature for field:val$fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 2:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Argument signature at index (starting with 0):1 for method:<init> ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 3:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:206 Field Name:org.openrdf.sail.helpers.DirectoryLockManager.1->val$fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 4:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:217 Method Name:java.lang.Runtime->getRuntime())
ERROR : 5:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:217 Method Name:java.lang.Runtime->addShutdownHook(java.lang.Thread))
ERROR : 6:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:226 Method Name:java.lang.Runtime->getRuntime())
ERROR : 7:Type "java.lang.Runtime" not allowed.
ERROR : (Line No:226 Method Name:java.lang.Runtime->removeShutdownHook(java.lang.Thread))
ERROR : 8:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:232 Field Name:org.openrdf.sail.helpers.DirectoryLockManager.1->val$fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 9:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:232 Method Name:java.nio.channels.FileLock->release())
ERROR : Class:org.openrdf.sail.helpers.DirectoryLockManager (10 Errors)
ERROR : 1:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:89 Method Name:java.nio.channels.FileChannel->lock())
ERROR : 2:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:90 Method Name:org.openrdf.sail.helpers.DirectoryLockManager->createLock(java.io.RandomAccessFile, java.nio.channels.FileLock))
ERROR : 3:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:89 Variable Name:java.nio.channels.FileLock fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 4:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:163 Method Name:java.nio.channels.FileChannel->tryLock())
ERROR : 5:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:167 Method Name:java.nio.channels.FileLock->release())
ERROR : 6:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:163 Variable Name:java.nio.channels.FileLock fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 7:Type "java.nio.channels.OverlappingFileLockException" not allowed.
ERROR : (Line No:171 Variable Name:java.nio.channels.OverlappingFileLockException exc ->OnClassSignature:java.nio.channels.OverlappingFileLockException)
ERROR : 8:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Argument signature at index (starting with 0):1 for method:createLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : 9:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:206 Constructor:org.openrdf.sail.helpers.DirectoryLockManager.1(org.openrdf.sail.helpers.DirectoryLockManager, java.nio.channels.FileLock, java.io.RandomAccessFile))
ERROR : 10:Type "java.nio.channels.FileLock" not allowed.
ERROR : (Line No:206 Variable Name:java.nio.channels.FileLock fileLock ->OnClassSignature:java.nio.channels.FileLock)
ERROR : Class:org.openrdf.sail.memory.FileIO (11 Errors)
ERROR : 1:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:358 Method Name:java.nio.CharBuffer->wrap(java.lang.CharSequence))
ERROR : 2:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:358 Method Name:java.nio.charset.CharsetEncoder->encode(java.nio.CharBuffer))
ERROR : 3:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:359 Method Name:java.nio.ByteBuffer->remaining())
ERROR : 4:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:360 Method Name:java.nio.ByteBuffer->array())
ERROR : 5:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:360 Method Name:java.nio.ByteBuffer->remaining())
ERROR : 6:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:358 Variable Name:java.nio.ByteBuffer byteBuf ->OnClassSignature:java.nio.ByteBuffer)
ERROR : 7:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:400 Method Name:java.nio.ByteBuffer->wrap(byte[]))
ERROR : 8:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:401 Method Name:java.nio.charset.CharsetDecoder->decode(java.nio.ByteBuffer))
ERROR : 9:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:403 Method Name:java.nio.CharBuffer->toString())
ERROR : 10:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:400 Variable Name:java.nio.ByteBuffer byteBuf ->OnClassSignature:java.nio.ByteBuffer)
ERROR : 11:Type "java.nio.CharBuffer" not allowed.
ERROR : (Line No:401 Variable Name:java.nio.CharBuffer charBuf ->OnClassSignature:java.nio.CharBuffer)
ERROR : Class:org.openrdf.sail.nativerdf.SequentialRecordCache.RecordCacheIterator (11 Errors)
ERROR : 1:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:99 Field Name:org.openrdf.sail.nativerdf.SequentialRecordCache->fileChannel ->OnClassSignature:java.nio.channels.FileChannel)
ERROR : 2:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:99 Method Name:java.nio.channels.FileChannel->size())
ERROR : 3:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:101 Method Name:java.nio.ByteBuffer->wrap(byte[]))
ERROR : 4:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:103 Field Name:org.openrdf.sail.nativerdf.SequentialRecordCache->fileChannel ->OnClassSignature:java.nio.channels.FileChannel)
ERROR : 5:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:103 Method Name:java.nio.channels.FileChannel->read(java.nio.ByteBuffer, long))
ERROR : 6:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:101 Variable Name:java.nio.ByteBuffer buf ->OnClassSignature:java.nio.ByteBuffer)
ERROR : 7:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:120 Field Name:org.openrdf.sail.nativerdf.SequentialRecordCache->fileChannel ->OnClassSignature:java.nio.channels.FileChannel)
ERROR : 8:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:120 Method Name:java.nio.channels.FileChannel->size())
ERROR : 9:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:121 Field Name:org.openrdf.sail.nativerdf.SequentialRecordCache->fileChannel ->OnClassSignature:java.nio.channels.FileChannel)
ERROR : 10:Type "java.nio.ByteBuffer" not allowed.
ERROR : (Line No:121 Method Name:java.nio.ByteBuffer->wrap(byte[]))
ERROR : 11:Type "java.nio.channels.FileChannel" not allowed.
ERROR : (Line No:121 Method Name:java.nio.channels.FileChannel->write(java.nio.ByteBuffer, long))
ERROR : Class:org.openrdf.sail.nativerdf.SequentialRecordCache (9 Errors)
  • 1. Re: Trying to Deploy an application on Cloud with openrdf-sesame-2.2.4.jar
    Michael OBrien Newbie
    Currently Being Moderated
    opola,
    Hi. it looks like you have run into at least the limitations on HD/IO access, security restrictions and running/viewing native processes - see the whitelist exclusion in the following link.

    Understanding Java Cloud Service Whitelist Criteria
    http://docs.oracle.com/cloud/CSJSU/dev_app.htm#CSJSU7121

    ERROR : 1:Type "java.lang.SecurityManager" not allowed.
    Overriding Java Security Manager

    ERROR : 17:Type "java.lang.Process" not allowed.
    Executing a new Process

    ERROR : 8:Type "java.nio.channels.FileLock" not allowed
    Java non-blocking IO


    Also see the unsupported API list
    http://docs.oracle.com/cloud/CSJSU/dev_app.htm#CEGEADDC

    thank you
    /Michael
    https://forums.oracle.com/forums/profile.jspa?userID=609861
    https://forums.oracle.com/forums/profile.jspa?userID=849227

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points