Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jdev 12.1.3: JBO-25152: Calling the constructor for class oracle.jbo.server.SequenceImpl is not perm

Jose ArósteguiJul 8 2014 — edited Jul 10 2014

Hi experts,

Something really unexpected is happening. This is my first EO created after I've migrated my project from 12.1.2 to 12.1.3 and using the usual procedure to generate the table id via a db_sequence with:

(new oracle.jbo.server.SequenceImpl("NAME_SEQ", adf.object.getDBTransaction())).getSequenceNumber()

I'm getting this error when I test the AM in the AM Tester:

oracle.jbo.jbotester.app.ErrorHandler$ExceptionWrapper: startup failed:

General error during semantic analysis: JBO-25152: Calling the constructor for class oracle.jbo.server.SequenceImpl is not permitted.

oracle.jbo.ExprSecurityException: JBO-25152: Calling the constructor for class oracle.jbo.server.SequenceImpl is not permitted.

  at oracle.jbo.script.InternalSecurityPolicyEnforcer.checkConstructor(InternalSecurityPolicyEnforcer.java:304)

  at oracle.jbo.script.ExprASTScanningVisitor.visitConstructorCallExpression(ExprASTScanningVisitor.java:127)

  at org.codehaus.groovy.ast.expr.ConstructorCallExpression.visit(ConstructorCallExpression.java:44)

  at org.codehaus.groovy.ast.CodeVisitorSupport.visitListOfExpressions(CodeVisitorSupport.java:273)

  at org.codehaus.groovy.ast.CodeVisitorSupport.visitTupleExpression(CodeVisitorSupport.java:178)

  at org.codehaus.groovy.ast.expr.TupleExpression.visit(TupleExpression.java:76)

  at org.codehaus.groovy.ast.CodeVisitorSupport.visitMethodCallExpression(CodeVisitorSupport.java:131)

  at oracle.jbo.script.ExprASTScanningVisitor.visitMethodCallExpression(ExprASTScanningVisitor.java:142)

  at org.codehaus.groovy.ast.expr.MethodCallExpression.visit(MethodCallExpression.java:64)

  at org.codehaus.groovy.ast.CodeVisitorSupport.visitListOfExpressions(CodeVisitorSupport.java:273)

  at org.codehaus.groovy.ast.CodeVisitorSupport.visitTupleExpression(CodeVisitorSupport.java:178)

I'm starting to think that it's been reckless to migrate to 12.1.3 so quick :-(

Thanks in advance,
Jose.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2014
Added on Jul 8 2014
8 comments
5,418 views