Exception in post process

View: New views
6 Messages — Rating Filter:   Alert me  

Exception in post process

by Shigemoto FUJIKURA :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

i'm using terracotta to make a framework clustered.
i encountered an unexpected exception during (probably, i guess)
injected post process.

the exception says:
Attempt to access a shared object outside the scope of a shared lock.
All access to shared objects must be within the scope of one or more
shared locks defined in your Terracotta configuration.
Please alter the locks section of your Terracotta configuration so that
this access is auto-locked or protected by a named lock.

    Caused by Thread: connector.scheduler.1  in  VM(18)

******************************************************************************

  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:256)
  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:241)
  at
com.tc.object.tx.ClientTransactionManagerImpl.commit(ClientTransactionManagerImpl.java:292)
  at com.tc.object.bytecode.ManagerImpl.monitorExit(ManagerImpl.java:470)
  at com.tc.object.bytecode.ManagerUtil.monitorExit(ManagerUtil.java:214)
  at org.a.framework.file.FileProcessor.processFile(FileProcessor.java)
  ...

when i try to debug by eclipse, i can see FileProcessor.__tc_processFile
method finished without any exception. after that, i guess something is
done by injected code and the exception occurs.

what is happening inside?



Regards,
--
Shigemoto FUJIKURA
fujikura@...
_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

Re: Exception in post process

by Alex Miller-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Could you post your tc-config file and version information?

Thanks,
Alex

----- Original Message -----
From: "Shigemoto FUJIKURA" <fujikura@...>
To: tc-users@...
Sent: Wednesday, February 6, 2008 6:48:28 PM (GMT-0600) America/Chicago
Subject: [tc-users] Exception in post process

hi,

i'm using terracotta to make a framework clustered.
i encountered an unexpected exception during (probably, i guess)
injected post process.

the exception says:
Attempt to access a shared object outside the scope of a shared lock.
All access to shared objects must be within the scope of one or more
shared locks defined in your Terracotta configuration.
Please alter the locks section of your Terracotta configuration so that
this access is auto-locked or protected by a named lock.

    Caused by Thread: connector.scheduler.1  in  VM(18)

******************************************************************************

  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:256)
  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:241)
  at
com.tc.object.tx.ClientTransactionManagerImpl.commit(ClientTransactionManagerImpl.java:292)
  at com.tc.object.bytecode.ManagerImpl.monitorExit(ManagerImpl.java:470)
  at com.tc.object.bytecode.ManagerUtil.monitorExit(ManagerUtil.java:214)
  at org.a.framework.file.FileProcessor.processFile(FileProcessor.java)
  ...

when i try to debug by eclipse, i can see FileProcessor.__tc_processFile
method finished without any exception. after that, i guess something is
done by injected code and the exception occurs.

what is happening inside?



Regards,
--
Shigemoto FUJIKURA
fujikura@...
_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

Re: Exception in post process

by Juris Galang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

can you send me the full transcript of the exception and your tc-config?

On Feb 6, 2008, at 4:48 PM, Shigemoto FUJIKURA wrote:

> hi,
>
> i'm using terracotta to make a framework clustered.
> i encountered an unexpected exception during (probably, i guess)
> injected post process.
>
> the exception says:
> Attempt to access a shared object outside the scope of a shared lock.
> All access to shared objects must be within the scope of one or more
> shared locks defined in your Terracotta configuration.
> Please alter the locks section of your Terracotta configuration so  
> that
> this access is auto-locked or protected by a named lock.
>
>    Caused by Thread: connector.scheduler.1  in  VM(18)
>
> ******************************************************************************
>
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .getTransaction(ClientTransactionManagerImpl.java:256)
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .getTransaction(ClientTransactionManagerImpl.java:241)
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .commit(ClientTransactionManagerImpl.java:292)
>  at com.tc.object.bytecode.ManagerImpl.monitorExit(ManagerImpl.java:
> 470)
>  at com.tc.object.bytecode.ManagerUtil.monitorExit(ManagerUtil.java:
> 214)
>  at org.a.framework.file.FileProcessor.processFile(FileProcessor.java)
>  ...
>
> when i try to debug by eclipse, i can see  
> FileProcessor.__tc_processFile
> method finished without any exception. after that, i guess something  
> is
> done by injected code and the exception occurs.
>
> what is happening inside?
>
>
>
> Regards,
> --
> Shigemoto FUJIKURA
> fujikura@...
> _______________________________________________
> tc-users mailing list
> tc-users@...
> http://lists.terracotta.org/mailman/listinfo/tc-users

_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

Re: Exception in post process

by Juris Galang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

btw, what this error means is that a method call must have been made  
and attempted to read or write a field that you've shared.

if you have the source for the framework you are clustering, look and  
see what fields it is accessing - it might not need to be shared in  
which case you can make it transient, or if it needs to be, then  
configure locks for that method.

hope this helps you going in the right direction.

On Feb 6, 2008, at 4:48 PM, Shigemoto FUJIKURA wrote:

> hi,
>
> i'm using terracotta to make a framework clustered.
> i encountered an unexpected exception during (probably, i guess)
> injected post process.
>
> the exception says:
> Attempt to access a shared object outside the scope of a shared lock.
> All access to shared objects must be within the scope of one or more
> shared locks defined in your Terracotta configuration.
> Please alter the locks section of your Terracotta configuration so  
> that
> this access is auto-locked or protected by a named lock.
>
>    Caused by Thread: connector.scheduler.1  in  VM(18)
>
> ******************************************************************************
>
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .getTransaction(ClientTransactionManagerImpl.java:256)
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .getTransaction(ClientTransactionManagerImpl.java:241)
>  at
> com
> .tc
> .object
> .tx
> .ClientTransactionManagerImpl
> .commit(ClientTransactionManagerImpl.java:292)
>  at com.tc.object.bytecode.ManagerImpl.monitorExit(ManagerImpl.java:
> 470)
>  at com.tc.object.bytecode.ManagerUtil.monitorExit(ManagerUtil.java:
> 214)
>  at org.a.framework.file.FileProcessor.processFile(FileProcessor.java)
>  ...
>
> when i try to debug by eclipse, i can see  
> FileProcessor.__tc_processFile
> method finished without any exception. after that, i guess something  
> is
> done by injected code and the exception occurs.
>
> what is happening inside?
>
>
>
> Regards,
> --
> Shigemoto FUJIKURA
> fujikura@...
> _______________________________________________
> tc-users mailing list
> tc-users@...
> http://lists.terracotta.org/mailman/listinfo/tc-users

_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

Re: Exception in post process

by Orion Letizi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

May I ask which framework?

--Orion

Shigemoto FUJIKURA wrote:
hi,

i'm using terracotta to make a framework clustered.
i encountered an unexpected exception during (probably, i guess)
injected post process.

the exception says:
Attempt to access a shared object outside the scope of a shared lock.
All access to shared objects must be within the scope of one or more
shared locks defined in your Terracotta configuration.
Please alter the locks section of your Terracotta configuration so that
this access is auto-locked or protected by a named lock.

    Caused by Thread: connector.scheduler.1  in  VM(18)

******************************************************************************

  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:256)
  at
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:241)
  at
com.tc.object.tx.ClientTransactionManagerImpl.commit(ClientTransactionManagerImpl.java:292)
  at com.tc.object.bytecode.ManagerImpl.monitorExit(ManagerImpl.java:470)
  at com.tc.object.bytecode.ManagerUtil.monitorExit(ManagerUtil.java:214)
  at org.a.framework.file.FileProcessor.processFile(FileProcessor.java)
  ...

when i try to debug by eclipse, i can see FileProcessor.__tc_processFile
method finished without any exception. after that, i guess something is
done by injected code and the exception occurs.

what is happening inside?



Regards,
--
Shigemoto FUJIKURA
fujikura@ogis-international.com
_______________________________________________
tc-users mailing list
tc-users@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-users

Re: Exception in post process

by Shigemoto FUJIKURA :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alex and Orion,

i was using terracotta 2.4.2 and upgraded to 2.4.8.
then my problem solved!

sorry for bothering you guys.


Regards,
--
Shigemoto FUJIKURA
fujikura@...

> May I ask which framework?
>
> --Orion
>
>
> Shigemoto FUJIKURA wrote:
>> hi,
>>
>> i'm using terracotta to make a framework clustered.
>> i encountered an unexpected exception during (probably, i guess)
>> injected post process.
>>
>> the exception says:
>> Attempt to access a shared object outside the scope of a shared lock.
>> All access to shared objects must be within the scope of one or more
>> shared locks defined in your Terracotta configuration.
>> Please alter the locks section of your Terracotta configuration so that
>> this access is auto-locked or protected by a named lock.
_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users