Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Error: Syntax error in source

Status
Not open for further replies.

wanglh

Programmer
Mar 24, 2003
1
CN
Hello all.
I got the problem when I deploy a Entity Bean ( Bean-managed Persistence ).
In this Entity bean, I use a defined exception RDBWException and this exception has no relationship with CreateException,RemoteException or FinderException, but get the following message:

Fatal Error: Syntax error in source
Auto-unpacking E:\jdev9i_902\j2ee\home\applications\ejb1.ear... done.
Auto-deploying ejb1 (Assembly had been updated)...
Ientity1Home_EntityHomeWrapper3.java:212: Exception jp.co.toshiba_it.albatross.sc.rdbw.runtime.exception.RDBWException must be caught, or it must be declared in the throws clause of this method.
entity1_EntityBeanWrapper2 instance = (entity1_EntityBeanWrapper2)this.findByPrimaryKey(((test.entity1.entity1PK)primaryKey));
^
Ientity1Home_EntityHomeWrapper3.java:301: Exception jp.co.toshiba_it.albatross.sc.rdbw.runtime.exception.RDBWException must be caught, or it must be declared in the throws clause of this method.
return (EJBObject)findByPrimaryKey(((test.entity1.entity1PK)key));
^
2 errors
com.evermind.compiler.CompilationException: Syntax error in source
at com.evermind.compiler.FileLinkedCompilation.run(FileLinkedCompilation.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at com.evermind.compiler.FileLinkedCompiler.compile(FileLinkedCompiler.java:19)
at com.evermind.compiler.Javac.compile(Javac.java:37)
at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:338)
at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:259)
at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:473)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

May someone help me? Very urgent. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top