ToolbarBean Class generates Automation Exception  0x80040112 -

613
1
01-09-2013 03:48 AM
Highlighted
New Contributor
The ToolbarBean Class generates the following StackTrace when run from the provided sample within Eclipse.

java.lang.RuntimeException: AutomationException: 0x80040112 -
at com.esri.arcgis.interop.Ocx.<init>(Unknown Source)
at com.esri.arcgis.controls.ToolbarControl.<init>(Unknown Source)
at com.esri.arcgis.beans.toolbar.ToolbarBean.init(Unknown Source)
at com.esri.arcgis.beans.toolbar.ToolbarBean.<init>(Unknown Source)
at BasicViewer.getToolbarBean(BasicViewer.java:156)
at BasicViewer.getJContentPane(BasicViewer.java:115)
at BasicViewer.initialize(BasicViewer.java:88)
at BasicViewer.<init>(BasicViewer.java:77)
at BasicViewer.main(BasicViewer.java:144)
Caused by: AutomationException: 0x80040112 -

Does anybody else have this problem using the JAVA SDK or
Know of a workaround to include this control in a Java application?
Reply
0 Kudos
1 Reply
Highlighted
New Contributor
It turns out that toolbarBean class needs arcview license at minimum to operate.  At least when I enabled the Arcview license in the initializer the issue goes away.
Reply
0 Kudos