I also get the same error. I modified a plugin.xml file that seemed incorrect 
and now I have this one:

java.lang.ClassCastException: 
org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory cannot be cast 
to org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory
        at 
org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory$Utility.sqlGeneratorFactory(IEOSQLGeneratorFactory.java:29)
        at 
org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
        at 
org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
        at java.lang.Thread.run(Thread.java:745)

I do not understand how it is possible; EOFSQLGeneratorFactory implements 
IEOSQLGeneratorFactory !

public class EOFSQLGeneratorFactory implements IEOSQLGeneratorFactory {
...
}

Ângelo Andrade Cirino posted this on April 29, I think there is something here, 
some sort or dependency or class path missing during the plugin execution.


> Some more light on the issue. This is the first time I debug WOLips and I 
> have never attempted to change the code. That said, when debugging Entity 
> Modeler I was able to locate this exception thrown just before the exception 
> I originally reported was thrown:
> 
> org.eclipse.core.runtime.CoreException: Plug-in 
> org.objectstyle.wolips.eomodeler.eclipse was unable to load class 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.
> 
> !ENTRY        at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
>       at 
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>       at 
> org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory$Utility.sqlGeneratorFactory(IEOSQLGeneratorFactory.java:29)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassNotFoundException: 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory cannot be 
> found by org.objectstyle.wolips.eomodeler.eclipse_1.0.6
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
>       at 
> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at 
> org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
>       ... 7 more
>  org.objectstyle.wolips.eomodeler.core.ActivatorResources 4 4 2015-04-29 
> 21:13:07.546
> !MESSAGE Could not create SQL generator factory from configuration element: 
> org.eclipse.core.internal.registry.ConfigurationElementHandle@7b77
> !STACK 1
> org.eclipse.core.runtime.CoreException: Plug-in 
> org.objectstyle.wolips.eomodeler.eclipse was unable to load class 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
>       at 
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>       at 
> org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory$Utility.sqlGeneratorFactory(IEOSQLGeneratorFactory.java:29)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassNotFoundException: 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory cannot be 
> found by org.objectstyle.wolips.eomodeler.eclipse_1.0.6
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
>       at 
> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at 
> org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
>       ... 7 more
> !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2015-04-29 21:13:07.546
> !MESSAGE Plug-in org.objectstyle.wolips.eomodeler.eclipse was unable to load 
> class org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.
> !STACK 0
> java.lang.ClassNotFoundException: 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory cannot be 
> found by org.objectstyle.wolips.eomodeler.eclipse_1.0.6
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
>       at 
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
>       at 
> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at 
> org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
>       at 
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
>       at 
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>       at 
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>       at 
> org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory$Utility.sqlGeneratorFactory(IEOSQLGeneratorFactory.java:29)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
>       at java.lang.Thread.run(Thread.java:745)
> 
> The problem is that the 
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory class isn’t 
> loaded.
> 


The patch I applied:

+++ b/wolips/core/plugins/org.objectstyle.wolips.eomodeler.eclipse/plugin.xml
@@ -16,10 +16,13 @@
          name="Eclipse EOClassLoader Factory"
          point="org.objectstyle.wolips.eomodeler.eoclassLoaderFactory">
       <eoclassLoaderFactory
-            
class="org.objectstyle.wolips.eomodeler.eclipse.EclipseEOModelGroupFactory"
-            id="org.objectstyle.wolips.eomodeler.eclipse.eoclassLoaderFactory"
-            name="Eclipse EOClassLoader Factory">
-      </eoclassLoaderFactory>
+            
class="org.objectstyle.wolips.eomodeler.factories.SimpleManifestEOClassLoaderFactory"
+            id="entitymodeler.SimpleManifestEOClassLoaderFactory"
+            name="Simple Manifest EOClassLoader Factory"/>
+      <eoclassLoaderFactory
+            
class="org.objectstyle.wolips.eomodeler.factories.IDEAProjectEOClassLoaderFactory"
+            id="entitymodeler.IDEAProjectEOClassLoaderFactory"
+            name="IDEA Project EOClassLoader Factory"/>
    </extension>
    <extension
          point="org.eclipse.ui.startup">


Samuel


> Le 2015-05-05 à 12:05, Ângelo Andrade Cirino <[email protected]> a écrit :
> 
> This is the exception I got when debugging WOLips 4.4
> 
> java.lang.ClassCastException: 
> org.objectstyle.wolips.eomodeler.eclipse.EclipseEOModelGroupFactory cannot be 
> cast to org.objectstyle.wolips.eomodeler.core.model.IEOClassLoaderFactory
>       at 
> org.objectstyle.wolips.eomodeler.core.model.IEOClassLoaderFactory$Utility.createClassLoader(IEOClassLoaderFactory.java:39)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.getEOModelClassLoader(GenerateSQLDialog.java:257)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
>       at 
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
>       at java.lang.Thread.run(Thread.java:745)
> 
> This issue is beyond my little knowledge of WOLips.
> 
> Angelo
> 
> ________________
> Ângelo Andrade Cirino
> [email protected] <mailto:[email protected]>
> 
> "O homem sensato se adapta ao mundo. O insensato insiste em tentar adaptar o 
> mundo a ele. Todo o progresso depende, portanto, do homem insensato"
> Sir George Benard Shaw
> 
> "The reasonable man adapts himself to the world: the unreasonable one 
> persists in trying to adapt the world to himself. Therefore all progress 
> depends on the unreasonable man."
> Sir George Benard Shaw
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to