I'm sorry, there's not enough information for me to figure out what's
causing the problem. The only thing I can think of is to check your
project into source control, check it out on another machine and try
it there.
Matt
On 7/20/07, chinofish <[EMAIL PROTECTED]> wrote:
i tried it again, the situation is the same.
when i run appfuse:gen, there is no error.
but when i run appfuse:install, there is error:
[INFO] [appfuse:install]
[INFO] [AppFuse] Installing generated files (pattern: **/*.java)...
[INFO] [AppFuse] Installing sample data for DbUnit...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.IndexOutOfBoundsException
at java.io.BufferedReader.read(BufferedReader.java:256)
at
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.doReplace(ReplaceRegExp.java:404)
at
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.execute(ReplaceRegExp.java:491)
at
org.appfuse.mojo.installer.InstallArtifactsMojo.parseXMLFile(InstallArtifactsMojo.java:412)
at
org.appfuse.mojo.installer.InstallArtifactsMojo.installSampleData(InstallArtifactsMojo.java:217)
at
org.appfuse.mojo.installer.InstallArtifactsMojo.execute(InstallArtifactsMojo.java:104)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
Thanks
chino
________________________________
发件人: Matt Raible
发送时间: 2007-07-20 15:35:20
收件人: [email protected]
抄送:
主题: Re: Re: [appfuse-user] appfuse:install error
Is there an error if you run "appfuse:gen"? If not, do
you get the
same error if you run "appfuse:install"
after it?
Thanks,
Matt
On 7/20/07, chinofish <[EMAIL PROTECTED] > wrote:
>
>
> my pojo is very very simple as
follows:
> and i am sure there is no problem about
it ;-)
>
>
> @Entity
> public class Teacher {
> private Long id;
> private String name;
> @Id @GeneratedValue(strategy =
GenerationType.AUTO)
> public Long getId() {
> return id;
> }
> public void setId(Long id) {
> this.id = id;
> }
>
>
@Column(name="name",length=50)
> public String getName() {
> return name;
> }
> public void setName(String name)
{
> this.name = name;
> }
>
> }
>
>
>
>
>
>
________________________________
>
> 发件人: Matt Raible
> 发送时间: 2007-07-20 14:57:25
> 收件人: [email protected]
> 抄送:
> 主题: Re: [appfuse-user] appfuse:install
error
>
>
>
> If appfuse:gen and install worked for
you a couple
> of days ago - I'd
> make sure your source is checked
into
> source control and then try
> running it on the classes that it
worked
> for last time. That will tell
> you if AMP is messed up or if it's
unable
> to handle your POJO. I
> suspect the later.
>
> Matt
>
> On 7/19/07, chinofish <[EMAIL PROTECTED] > wrote:
> >
> >
> > I changed PK from String to
> Long,
> > there is another error !
> >
> > [INFO] [appfuse:install]
> > [INFO] [AppFuse] Installing
generated
> files (pattern: **/*.java)...
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO]
> >
>
D:\study\java\da_test\target\appfuse\generated-sources
> not
> > found.
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] Trace
> >
>
D:\study\java\da_test\target\appfuse\generated-sources
> not
> > found.
> > at
> >
>
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:349)
> > at
> >
>
org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:404)
> > at
> >
>
org.appfuse.mojo.installer.InstallArtifactsMojo.copyGeneratedObjects(InstallArtifactsMojo.java:195)
> > at
> >
>
org.appfuse.mojo.installer.InstallArtifactsMojo.execute(InstallArtifactsMojo.java:101)
> > at
> >
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > at
> >
>
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > at
> >
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at
> >
>
org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> >
>
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > at
> >
>
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at
> >
>
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > at
> >
>
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] Total time: 6 seconds
> >
> >
> >
> >
> >
> > But several days ago, appfuse:gen
&
> appfuse:install works fine for me
;-)
> >
> >
> > Thanks for help !!
> >
> >
> >
> >
>
________________________________
> >
> > chinofish
> > 2007-07-20
> >
>
________________________________
> >
> > 发件人: chinofish
> > 发送时间: 2007-07-20 12:29:27
> > 收件人: appfuse-user
> > 抄送:
> > 主题: [appfuse-user]
appfuse:install
> error
> >
> >
> >
> >
> > hi,
> >
> > when i execute :
> >
> > mvn appfuse:install
> -Dentity=entityName
> >
> > there is an error.
> >
> > i use 32-bit String to be my PK,
but
> Long.
> >
> > maybe it's the reason ?
> >
> > the error log is as follows:
> >
> > [INFO] [appfuse:install]
> > [INFO] [AppFuse] Installing
generated
> files (pattern: **/*.java)...
> > [INFO] [AppFuse] Installing sample
data
> for DbUnit...
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] null
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] Trace
> >
>
java.lang.IndexOutOfBoundsException
> > at java.io.BufferedReader.read(BufferedReader.java:256)
> > at
> >
>
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.doReplace(ReplaceRegExp.java:404)
> > at
> >
>
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.execute(ReplaceRegExp.java:491)
> > at
> >
>
org.appfuse.mojo.installer.InstallArtifactsMojo.parseXMLFile(InstallArtifactsMojo.java:412)
> > at
> >
>
org.appfuse.mojo.installer.InstallArtifactsMojo.installSampleData(InstallArtifactsMojo.java:217)
> > at
> >
>
org.appfuse.mojo.installer.InstallArtifactsMojo.execute(InstallArtifactsMojo.java:104)
> > at
> >
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > at
> >
>
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > at
> >
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at
> >
>
org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> >
>
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > at
> >
>
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at
> >
>
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > at
> >
>
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] Total time: 6 seconds
> >
> >
> >
> > Any suggestion will be
greatly
> appreciated !!!
> >
> >
> >
>
________________________________
> >
> > chinofish
> > 2007-07-20
>
>
> --
> http://raibledesigns.com
--
http://raibledesigns.com
--
http://raibledesigns.com