[Anthill-pro] Anthill Pro remoting API
Steve Boone
sbb at urbancode.com
Thu Feb 14 15:51:43 CST 2008
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080214/7b64a5dd/attachment.htm
More information about the Anthill-pro
mailing list