Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-21025: hibernate querying nor content assist is broken #83

Merged
merged 1 commit into from
Dec 8, 2015

Conversation

koentsje
Copy link
Member

No description provided.

}
}

} catch (Throwable t) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check if DB is correctly configured to avoid that NPE instead of catching Throwable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe i'm wrong but i suppose it is possible to do something like a "Test Connection" button in a org.eclipse.datatools.connectivity.ui.wizards.ConnectionProfileDetailsPage. I mean get connectionProfile by some of the ProfileManager.getInstance().getProfileBy methods of the datatools project. And then run org.eclipse.datatools.connectivity.ui.PingJob and join it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created one more PR with pinging the database.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is never okey to catch Throwable - you will by that catch fatal errors like outofmemory or worse.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but as I already explained to Alexey, this has been there since ages and it is not the cause of this particular problem. Removing the Throwable has a lot more implications and needs to be done with care as it might affect other pieces of the Eclipse Hibernate Tools project. It's something that shouldn't be done in this branch IMO.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okey - did not notice it was old code. then yes, seperate issue/PR for it

@koentsje koentsje merged commit 7a9e0f4 into jbosstools:jbosstools-4.3.x Dec 8, 2015
@koentsje koentsje deleted the JBIDE-21025 branch December 12, 2016 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants