Home
Analytics
Parsing error: invalid attribute (profileExtension.profile
Jesse Weinstein
<div>Using BIRT 4.3.0, when I create a new Data Source, I get the following warning in the console:</div><div> </div><div>!ENTRY org.eclipse.datatools.connectivity 4 10001 2013-08-21 14:40:41.415</div><div>!MESSAGE Parsing error: invalid attribute (profileExtension.profile: org.eclipse.datatools.connectivity.db.generic.connectionProfile)</div><div> </div><div>As I wasn't able to find a mention of this warning while searching online, I thought it was worth tossing it up here, so at least people will be able to know that it occurred to someone else. If anyone has any suggestions about how to track it down, that would be certainly be appreciated.</div>
Find more posts tagged with
Comments
mwilliams
<p>What is the database type that you're connecting to with your connection profile?</p>
Jesse Weinstein
<p>I'm using a modified version of org.eclipse.birt.report.designer.ui.rcp as the application, and a get the error with whatever Data Set type I try to create. I've so far tried it with flatfile, and a custom ODA driver I wrote myself.</p><p> </p><p>The custom ODA driver uses only the standard extension points ("org.eclipse.datatools.connectivity.oda.dataSource" in the runtime driver, "org.eclipse.datatools.connectivity.connectionProfile", "org.eclipse.datatools.connectivity.ui.connectionProfileImage", "org.eclipse.ui.propertyPages", and "org.eclipse.datatools.connectivity.oda.design.ui.dataSource" in the UI plugin), and does not involve [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]org.eclipse.datatools.connectivity.db.generic.connectionProfile at all, AFAIK.[/color]</p><p> </p><p>[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Let me know if there is any other information that can help.[/color]</p>
mwilliams
<p>This is a really old bug, but you might take a look at it:</p><p> </p><p><a data-ipb='nomediaparse' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206691'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=206691</a></p>
;
Jesse Weinstein
<p>Thanks that was some help, but they didn't actually address the message I'm wondering about, instead focusing on the actual error that went along with it, which I don't see.</p><p> </p><p>Well, I decided to bite the bullet and import all the [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]org.eclipse.datatools.connectivity plugins with source, and try to find that error message. I've now done so, and it can be generated in 5 places, but two of them are Asserts, so those aren't it, leaving the other three, all of which are in o[/color]rg.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/internal/ConnectionProfileManager.java</p><p> </p><div>173: ConnectivityPlugin.getDefault().getResourceString("assert.invalid.profile", //$NON-NLS-1$ </div><div>183: ConnectivityPlugin.getDefault().getResourceString("assert.invalid.profile", //$NON-NLS-1$ </div><div>210: .getResourceString( "assert.invalid.profile", //$NON-NLS-1$ </div><div> </div><div>The third one does not explicitly contain a period, so I suspect it is one of the first two, which is confirmed by the fact that the part after the period in those ones is defined to be "profile", which it is in my errror message. Those are both in processExtensions(), one handling connectionFactory and the other profileExtension, so since my error message mentions the 2nd, I think it was produced by line 183.</div><div> </div><div>That message is triggered when mProviders.get returns null when asked for the value of [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]profileExtension.profile, which in this case is "org.eclipse.datatools.connectivity.db.generic.connectionProfile".[/color]</div><div> </div><div>Now, to figure out what is calling this code, and *why*...</div>
mwilliams
<p>Since I probably can't reproduce the error, can you attach your entire error stack?</p>
Jesse Weinstein
<p>There is no error stack. The only thing that shows up in the .log file is what I pasted above. I'll try and add a breakpoint at the code line I found above, and see if I can get a stacktrace that way.</p>
Jesse Weinstein
<p>Well, I've learned a bit more. The plugin which contains the invalid [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]profileExtension.profile is [/color]org.eclipse.datatools.connectivity.sqm.core, specifically here:</p><p> </p><div> <profileExtension</div><div> id="org.eclipse.datatools.connectivity.sqm.filterSettings"</div><div> name="%FilterProfileExtensionName"</div><div> profile="org.eclipse.datatools.connectivity.db.generic.connectionProfile"/></div><div> </div><div>I tried adding org.eclipse.datatools.connectivity.db.generic to the dependencies for my product (which is what fails), but that doesn't seem to have worked (although I may not have done it right -- I'll try and make sure I did). At the point the error is thrown, mProviders is empty.</div><div> </div><div>Here's the stack trace, for what its worth:</div><div> </div><div><div>Thread [main] (Suspended (breakpoint at line 182 in ConnectionProfileManager))<span> </span></div><div>ConnectionProfileManager.processExtensions() line: 182<span> </span></div><div>ConnectionProfileManager.getProviders() line: 92<span> </span></div><div>ConnectionProfileManager.getProvider(String) line: 97<span> </span></div><div>NewConnectionProfileWizardPage.createControl(Composite) line: 100<span> </span></div><div>NewDataSourceWizard(Wizard).createPageControls(Composite) line: 174<span> </span></div><div>NewDataSourceWizard(NewConnectionProfileWizard).createPageControls(Composite) line: 309<span> </span></div><div>WizardDialog.createPageControls() line: 736<span> </span></div><div>WizardDialog.setWizard(IWizard) line: 1182<span> </span></div><div>WizardDialog.updateForPage(IWizardPage) line: 1241<span> </span></div><div>WizardDialog.access$4(WizardDialog, IWizardPage) line: 1238<span> </span></div><div>WizardDialog$8.run() line: 1227<span> </span></div><div>BusyIndicator.showWhile(Display, Runnable) line: 70<span> </span></div><div>WizardDialog.showPage(IWizardPage) line: 1225<span> </span></div><div>WizardDialog.nextPressed() line: 915<span> </span></div><div>WizardDialog.buttonPressed(int) line: 428<span> </span></div><div>Dialog$2.widgetSelected(SelectionEvent) line: 628<span> </span></div><div>TypedListener.handleEvent(Event) line: 248<span> </span></div><div>EventTable.sendEvent(Event) line: 84<span> </span></div><div>Button(Widget).sendEvent(Event) line: 1057<span> </span></div><div>Display.runDeferredEvents() line: 4170<span> </span></div><div>Display.readAndDispatch() line: 3759<span> </span></div><div>WizardDialog(Window).runEventLoop(Shell) line: 826<span> </span></div><div>WizardDialog(Window).open() line: 802<span> </span></div><div>NewDataSourceAction.run() line: 126<span> </span></div><div>NewDataSourceAction(Action).runWithEvent(Event) line: 499<span> </span></div><div>ActionContributionItem.handleWidgetSelection(Event, boolean) line: 584<span> </span></div><div>ActionContributionItem.access$2(ActionContributionItem, Event, boolean) line: 501<span> </span></div><div>ActionContributionItem$5.handleEvent(Event) line: 411<span> </span></div><div>EventTable.sendEvent(Event) line: 84<span> </span></div><div>MenuItem(Widget).sendEvent(Event) line: 1057<span> </span></div><div>Display.runDeferredEvents() line: 4170<span> </span></div><div>Display.readAndDispatch() line: 3759<span> </span></div><div>PartRenderingEngine$9.run() line: 1113<span> </span></div><div>Realm.runWithDefault(Realm, Runnable) line: 332<span> </span></div><div>PartRenderingEngine.run(MApplicationElement, IEclipseContext) line: 997<span> </span></div><div>E4Workbench.createAndRunUI(MApplicationElement) line: 138<span> </span></div><div>Workbench$5.run() line: 610<span> </span></div><div>Realm.runWithDefault(Realm, Runnable) line: 332<span> </span></div><div>Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 567<span> </span></div><div>PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 150<span> </span></div><div>DesignerApplication.run(Object) line: 38<span> </span></div><div>NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]<span> </span></div><div>NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57<span> </span></div><div>DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43<span> </span></div><div>Method.invoke(Object, Object...) line: 601<span> </span></div><div>EclipseAppContainer.callMethodWithException(Object, String, Class[], Object[]) line: 587<span> </span></div><div>EclipseAppHandle.run(Object) line: 198<span> </span></div><div>EclipseAppLauncher.runApplication(Object) line: 110<span> </span></div><div>EclipseAppLauncher.start(Object) line: 79<span> </span></div><div>EclipseStarter.run(Object) line: 354<span> </span></div><div>EclipseStarter.run(String[], Runnable) line: 181<span> </span></div><div>NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]<span> </span></div><div>NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57<span> </span></div><div>DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43<span> </span></div><div>Method.invoke(Object, Object...) line: 601<span> </span></div><div>Main.invokeFramework(String[], URL[]) line: 636<span> </span></div><div>Main.basicRun(String[]) line: 591<span> </span></div><div>Main.run(String[]) line: 1450<span> </span></div><div>Main.main(String[]) line: 1426<span> </span></div><div> </div></div><p> </p>
Jesse Weinstein
<p>And after fussing with it a bit more, yes, including [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]org.eclipse.datatools.connectivity.db.generic does solve the problem. I think it would be good to add [/color][color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]org.eclipse.datatools.connectivity.db.generic to the list of dependencies of [/color][color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]org.eclipse.datatools.connectivity.sqm, to avoid the problem in the future. I've now opened [/color]<a data-ipb='nomediaparse' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=415912'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=415912</a>[color=rgb(40,40,40);font-family:helvetica
, arial, sans-serif;] to do that.[/color]</p>
mwilliams
<p>Great! Thanks for the update!
</p>