VBConsole Fails to Start
VBConsole reports "An illegal reflective access operation has occurred".
VBConnsole reports "Illegal reflective access by org.dom4j.io.SAXContentHandler".
VBConsole reports "javax.imageio.IIOException: Can't create cache file!".
Environment
VisiBroker 8.5 Service Pack 6
All Supported Platforms
Question/Problem Description
VisiBroker's VBConsole utility fails to launch. Running the VBConsole with the "-debug" switch provides the stack trace below.
Error Message
> vbconsole
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/opt/microfocus/visibroker/lib/dom4j.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
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
javax.imageio.IIOException: Can't create cache file!
at java.desktop/javax.imageio.ImageIO.createImageInputStream(ImageIO.java:361)
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1409)
at com.borland.jafa.util.IconUtil.loadImpl(IconUtil.java:117)
at com.borland.jafa.util.IconUtil.load(IconUtil.java:184)
at com.borland.jafa.extension.ExtensionHelper.loadFeature(ExtensionHelper.java:241)
at com.borland.jafa.extension.ExtensionHelper.loadFeatures(ExtensionHelper.java:272)
at com.borland.jafa.extension.Extension.main(Extension.java:198)
Caused by: java.nio.file.NoSuchFileException: /opt/microfocus/visibroker/bin/../tmp/vbconsole/imageio5164312099279937136.tmp
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:215)
at java.base/java.nio.file.Files.newByteChannel(Files.java:370)
at java.base/java.nio.file.Files.createFile(Files.java:647)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:137)
at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:160)
at java.base/java.nio.file.Files.createTempFile(Files.java:912)
at java.desktop/javax.imageio.stream.FileCacheImageInputStream.(FileCacheImageInputStream.java:102)
at java.desktop/com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69)
at java.desktop/javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
... 6 more
Exception in thread "main" com.borland.enterprise.util.FwException: Unable to load icon /opt/microfocus/visibroker/etc/ext/features/vbconsole/IconVB16.gif
at com.borland.jafa.util.IconUtil.loadImpl(IconUtil.java:133)
at com.borland.jafa.util.IconUtil.load(IconUtil.java:184)
at com.borland.jafa.extension.ExtensionHelper.loadFeature(ExtensionHelper.java:241)
at com.borland.jafa.extension.ExtensionHelper.loadFeatures(ExtensionHelper.java:272)
at com.borland.jafa.extension.Extension.main(Extension.java:198)
Defect/Enhancement Number
RPI #1116791
Cause
This is a known issue with the VisiBroker VBConsole utility and is scheduled or a fix in a future release.
Workaround
To avoid this issue, please create the directory directories "tmp/vbconsole" off the VisiBroker installation directory.
On Linux:
> mkdir -p $VBROKERDIR/tmp/vbconsole
On Windows:
> mkdir %VBROKERDIR%\\tmp\\vbconsole
#VisiBroker
#Security
#vbconsole