|
|
|
|
|
Re: Null Pointer Exception when accessing the properties of AbstractMySqlSqlService [message #985681 is a reply to message #985358] |
Thu, 15 November 2012 16:46 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
From what I have analysed from the stacktrace:
The problem occurs when the SDK try to compute the default value:
Quote:
at org.eclipse.scout.sdk.workspace.type.config.PropertyMethodSourceUtility.getMethodReturnValue(PropertyMethodSourceUtility.java:86)
at org.eclipse.scout.sdk.workspace.type.config.ConfigurationMethod.computeDefaultValue(ConfigurationMethod.java:88)
I think the problem is that I have no source for the com.bsiag.scout.rt.server.jdbc plugin...
I see two fix:
1) I see no reason why the source code is not provided for com.bsiag.scout.rt.server.jdbc
2) Fix the SDK: the properties view should not crash if something is null at:
org.eclipse.scout.sdk.workspace.type.config.PropertyMethodSourceUtility.getMethodReturnValue(PropertyMethodSourceUtility.java:86).
=> Should the fix in Bug 394374
[Updated on: Thu, 15 November 2012 16:47] Report message to a moderator
|
|
|
|
|
|
Re: Null Pointer Exception when accessing the properties of AbstractMySqlSqlService [message #985909 is a reply to message #985895] |
Fri, 16 November 2012 16:03 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Ken Lee wrote on Fri, 16 November 2012 16:30I provided a new build of the JDBC driver at the Eclipse Marketplace that includes the source features and bundles.
To update to the latest build, click on the menu [Help]->[Check for Update] or [Help]->[Install New Software...] and add the URL http://tools.bsiag.com/marketplace/jdbc
I installed the new version (see screenshot) and it works now with Juno-SR1. Thanks a lot.
-> That is my first point in #msg_985681
For the second point, I added a patch and a comment in bug 394374. For me getSource() can be null. Here the javadoc:
/**
* Returns the source code associated with this element.
* This extracts the substring from the source buffer containing this source
* element. This corresponds to the source range that would be returned by
* <code>getSourceRange</code>.
* <p>
* For class files, this returns the source of the entire compilation unit
* associated with the class file (if there is one).
* </p>
*
* @return the source code, or <code>null</code> if this element has no
* associated source code
* @exception JavaModelException if an exception occurs while accessing its corresponding resource
*/
String getSource() throws JavaModelException;
My 4 lines patch add the null check. (This could be fixed in Juno).
.
[Updated on: Fri, 16 November 2012 16:06] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04244 seconds