dsgz1234 / sqlitegen

Automatically exported from code.google.com/p/sqlitegen
0 stars 0 forks source link

Code generation fails on you example #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I tried you example on my own android project in eclipse (in a separate java 
file).
I got:

com.antlersoft.android.dbgen.SourceInterface$SIException: Failed to create 
class AbstractConnectionBean
    at com.antlersoft.sqlitegen.PluginSourceInterface$PluginSourceWriter.done(Unknown Source)
    at com.antlersoft.sqlitegen.PluginSourceInterface.doneWithWriter(Unknown Source)
    at com.antlersoft.android.dbgen.SourceFileGenerator.generate(Unknown Source)
    at com.antlersoft.sqlitegen.SQLiteGenBuilder.checkSQLiteAnnotations(Unknown Source)
    at com.antlersoft.sqlitegen.SQLiteGenBuilder$DeltaVisitor.visit(Unknown Source)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
    at com.antlersoft.sqlitegen.SQLiteGenBuilder.incrementalBuild(Unknown Source)
    at com.antlersoft.sqlitegen.SQLiteGenBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: Java Model Exception: Core Exception [code 368] Resource 
'/KliquePhone/gen/com/klique/db' does not exist.
    at org.eclipse.jdt.internal.core.JavaModelOperation.createFile(JavaModelOperation.java:276)
    at org.eclipse.jdt.internal.core.CreateCompilationUnitOperation.executeOperation(CreateCompilationUnitOperation.java:118)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
    at org.eclipse.jdt.internal.core.PackageFragment.createCompilationUnit(PackageFragment.java:145)
    ... 26 more

Any ideas?

Original issue reported on code.google.com by idanz...@gmail.com on 26 Jan 2011 at 2:40

GoogleCodeExporter commented 8 years ago
The problem was fixed when I manually created the package under the gen folder. 
Maybe the plugin assume the folder/package already exists?

Original comment by idanz...@gmail.com on 26 Jan 2011 at 11:55

GoogleCodeExporter commented 8 years ago
Same here! Eclipse 3.61! Manually created package under gen folder, helped! At 
least update wiki page :)

Original comment by matej.cr...@gmail.com on 27 Feb 2011 at 7:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
See http://code.google.com/p/sqlitegen/issues/detail?id=11 for a similar 
problem but with including fix.

Original comment by gandul...@gmail.com on 2 Jan 2012 at 2:36