[Anthill-pro] Anthill Pro remoting API
Anderson, Eric
Eric.Anderson at agedwards.com
Thu Feb 14 16:30:43 CST 2008
Steve,
Actually, I used your example to reproduce this exception, but I
originally encountered from my own custom code. My custom code creates
a project, including all properties, workflows, etc. The same code will
work within an evaluate script step, but fails with the given exception
when run through the remoting API.
Right now, I was just building this code into a Java-based console
application, but the long term goal was to write an advanced web
interface for the creation and maintenance of projects and eventually to
tie it into a workflow engine like Websphere Workflow. Of course, this
issue kind of has that at a standstill.
The second reason for using the remoting API is so that we can develop,
debug, and test code we would ultimately put into an evaluate script
step more easily through Eclipse.
I can send you the custom code, if you think that would be helpful, but
I reproduced the problem with the createProject.bsh example just to
remove my code from the equation.
Thanks,
Eric P. Anderson
Development Frameworks Team
A.G. Edwards & Sons, Inc. a division of Wachovia Securities, LLC.
Member SIPC
314-955-0060
________________________________
From: anthill-pro-bounces at caladin.urbancode.com
[mailto:anthill-pro-bounces at caladin.urbancode.com] On Behalf Of Steve
Boone
Sent: Thursday, February 14, 2008 3:52 PM
To: AnthillPro user and support list.
Subject: Re: [Anthill-pro] Anthill Pro remoting API
Eric,
Our examples are out of date, and we are working to update them now.
What are you specifically trying to accomplish in remote scripting?
With some detail we can lead you down the correct path.
Regards,
Steve Boone
On 2/4/08, Anderson, Eric <Eric.Anderson at agedwards.com> wrote:
Is the remoting API still supported? I have encountered these
issues in
both 3.4.3 and 3.4.7.
I started out with the anthill3-remoting.zip as provided from
the
server's tools page, but I had to modify ah3client.cmd to add
some
additional JARs to the classpath that were evidently missing.
Once I did that, I'm getting null pointer exceptions related to
permissions/resources whenever I try to run a script that
creates new
objects. Scripts that read and don't create anything new, like
the
example getProjectList.bsh, work fine.
Here is an example from running the Urbancode-included
"createProject.bsh". I have taken similar code and run it as a
beanshell step within the server, and it has executed with no
issues.
This problem appears to be specific to the remoting API; the
RESOURCE_ID
FOR SEC_PERMISSION is null.
2008-02-04 15:58:25,625 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.persistence
.UnitOfWorkDefault - ActionScope.commit() generator:
com.urbancode.anthill3.doma
in.persistent.HiLoIdentityGenerator at ef1df6
2008-02-04 15:58:25,625 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.domain.pers
istent.HiLoIdentityGenerator -
HiLoIdentityGenerator.assignIdentity()
lo: 2, hi:
280, grabSize: 10
2008-02-04 15:58:25,625 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.persistence
.UnitOfWorkDefault - commit0() identities assigned
/* conn id 0 */ rollback;
/* conn id 0 */ SET autocommit=1;
/* conn id 0 */ SET autocommit=1;
2008-02-04 15:58:25,627 DEBUG /0.0.0.0:4567-1
com.urbancode.anthill3.persistence
.UnitOfWorkDefault -
java.lang.NullPointerException
at
com.urbancode.anthill3.domain.security.PermissionDaoSql.insert(Permis
sionDaoSql.java:210)
at
com.urbancode.anthill3.persistence.UnitOfWorkDefault.commit0(UnitOfWo
rkDefault.java:136)
at
com.urbancode.anthill3.persistence.UnitOfWork.commit(UnitOfWork.java:
700)
at
com.urbancode.anthill3.persistence.remoting.devilfish.dvlf.RemoteUnit
OfWorkServiceHandler.doCommit(RemoteUnitOfWorkServiceHandler.java:139)
at
com.urbancode.anthill3.persistence.remoting.devilfish.dvlf.RemoteUnit
OfWorkServiceHandler.handleConnection(RemoteUnitOfWorkServiceHandler.jav
a:70)
at
com.urbancode.devilfish.server.dvlf.DelegatingConnectionHandler.handl
eConnection(DelegatingConnectionHandler.java:69)
at
com.urbancode.commons.net.ConnectionHandlerBase.run(ConnectionHandler
Base.java:52)
at
com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.jav
a:208)
2008-02-04 15:58:25,627 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.domain.pers
istent.AbstractPersistent - setUnitOfWork() class:
com.urbancode.anthill3.domain
.security.Resource, uow: null
2008-02-04 15:58:25,627 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.domain.pers
istent.AbstractPersistent - setUnitOfWork() class:
com.urbancode.anthill3.domain
.security.ResourceType, uow: null
2008-02-04 15:58:25,627 TRACE /0.0.0.0:4567-1
com.urbancode.anthill3.persistence
.UnitOfWork - 12556818 unbindThread() /0.0.0.0:4567-1,
threadCount: 0
java.lang.NullPointerException
at
com.urbancode.anthill3.domain.security.PermissionDaoSql.insert(Permis
sionDaoSql.java:210)
at
com.urbancode.anthill3.persistence.UnitOfWorkDefault.commit0(UnitOfWo
rkDefault.java:136)
at
com.urbancode.anthill3.persistence.UnitOfWork.commit(UnitOfWork.java:
700)
at
com.urbancode.anthill3.persistence.remoting.devilfish.dvlf.RemoteUnit
OfWorkServiceHandler.doCommit(RemoteUnitOfWorkServiceHandler.java:139)
at
com.urbancode.anthill3.persistence.remoting.devilfish.dvlf.RemoteUnit
OfWorkServiceHandler.handleConnection(RemoteUnitOfWorkServiceHandler.jav
a:70)
at
com.urbancode.devilfish.server.dvlf.DelegatingConnectionHandler.handl
eConnection(DelegatingConnectionHandler.java:69)
at
com.urbancode.commons.net.ConnectionHandlerBase.run(ConnectionHandler
Base.java:52)
at
com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.jav
a:208)
2008-02-04 15:58:25,631 DEBUG /0.0.0.0:4567-1
com.urbancode.commons.util.ThreadP
ool - /0.0.0.0:4567-1 checking itself in
2008-02-04 15:58:25,631 DEBUG /0.0.0.0:4567-1
com.urbancode.commons.util.ThreadP
ool - Runnable is null, WorkerThread /0.0.0.0:4567-1 is waiting.
2008-02-04 15:58:25,648 DEBUG *:0
com.urbancode.commons.net.ThreadedServer - Acc
epted connection from /10.55.43.131
2008-02-04 15:58:25,648 DEBUG *:0
com.urbancode.commons.util.ObjectPool
- Object
Pool: [ObjectPool: isInitialized=true, isShutdown=false,
minObjCount=1,
maxObjec
tCount=-1, objectCount=2, checkedOutCount=0, checkedInCount=2,
objectCount=2, ex
pirationTime=300, cleanUpInterval=300]
2008-02-04 15:58:25,648 DEBUG *:0
com.urbancode.commons.net.ConnectionHandlerBas
e - Socket set on
handler.Socket[addr=/10.55.43.131,port=3295,localport=4567]
2008-02-04 15:58:25,649 DEBUG *:0
com.urbancode.commons.util.ThreadPool
- Thread
Pool requested to run runnable:
com.urbancode.devilfish.server.dvlf.DelegatingCo
nnectionHandler at 15718f2
2008-02-04 15:58:25,649 DEBUG *:0
com.urbancode.commons.util.ObjectPool
- Object
Pool: [ObjectPool: isInitialized=true, isShutdown=false,
minObjCount=2,
maxObjec
tCount=-1, objectCount=2, checkedOutCount=0, checkedInCount=2,
objectCount=2, ex
pirationTime=300, cleanUpInterval=300]
2008-02-04 15:58:25,649 DEBUG *:0
com.urbancode.commons.util.ThreadPool
- Worker
Thread /0.0.0.0:4567-0 requested to run runnable:
com.urbancode.devilfish.server
.dvlf.DelegatingConnectionHandler at 15718f2
2008-02-04 15:58:25,649 DEBUG /0.0.0.0:4567-0
com.urbancode.commons.util.ThreadP
ool - WorkerThread /0.0.0.0:4567-0 got runnable:
com.urbancode.devilfish.server.
dvlf.DelegatingConnectionHandler at 15718f2
2008-02-04 15:58:25,649 DEBUG /0.0.0.0:4567-0
com.urbancode.commons.net.Connecti
onHandlerBase - ConnectionHandler being run.
2008-02-04 15:58:25,651 DEBUG /0.0.0.0:4567-0
com.urbancode.commons.util.ThreadP
ool - /0.0.0.0:4567-0 checking itself in
2008-02-04 15:58:25,651 DEBUG /0.0.0.0:4567-0
com.urbancode.commons.util.ThreadP
ool - Runnable is null, WorkerThread /0.0.0.0:4567-0 is waiting.
2008-02-04 15:58:26,902 DEBUG *:0
com.urbancode.commons.net.ThreadedServer - Acc
epted connection from /172.20.241.40
2008-02-04 15:58:26,902 DEBUG *:0
com.urbancode.commons.util.ObjectPool
- Object
Pool: [ObjectPool: isInitialized=true, isShutdown=false,
minObjCount=1,
maxObjec
tCount=-1, objectCount=2, checkedOutCount=0, checkedInCount=2,
objectCount=2, ex
pirationTime=300, cleanUpInterval=300]
2008-02-04 15:58:26,902 DEBUG *:0
com.urbancode.commons.net.ConnectionHandlerBas
e - Socket set on
handler.Socket[addr=/172.20.241.40,port=3429,localport=4567]
2008-02-04 15:58:26,902 DEBUG *:0
com.urbancode.commons.util.ThreadPool
- Thread
Pool requested to run runnable:
com.urbancode.devilfish.server.dvlf.DelegatingCo
Thanks,
Eric P. Anderson
Development Frameworks Team
A.G. Edwards & Sons, Inc. a division of Wachovia Securities,
LLC.
Member SIPC
314-955-0060
A.G. Edwards outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone
other
than the recipient.
A.G. Edwards is a division of Wachovia Securities, LLC.
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
A.G. Edwards outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.
A.G. Edwards is a division of Wachovia Securities, LLC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080214/e59dd41b/attachment-0001.htm
More information about the Anthill-pro
mailing list