Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Railo 4 Session Dump Error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Grant Copley  
View profile  
 More options Jul 6 2012, 2:48 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 11:48:47 -0700 (PDT)
Local: Fri, Jul 6 2012 2:48 pm
Subject: Railo 4 Session Dump Error

I just downloaded the Railo 4 Beta to look at all the cool new features.
Great work guys!

For some reason, I'm unable to do a cfdump or writeDump() on the session
scope. I keep getting:

java.lang.StackOverflowError
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at
railo.runtime.type.scope.storage.StorageScopeImpl.keys(StorageScopeImpl.jav a:287):287
   at
railo.runtime.type.util.CollectionUtil.keys(CollectionUtil.java:67):67
   at railo.runtime.type.scope.storage.StorageScopeImpl.keys(Sto

Any thoughts? All the other scopes I can dump fine.

I'm running Railo Express 4.0.0.013 on Windows 7 64-bit.

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Holden  
View profile  
 More options Jul 6 2012, 3:31 pm
From: Alan Holden <alhol...@akh.com>
Date: Fri, 06 Jul 2012 12:31:49 -0700
Local: Fri, Jul 6 2012 3:31 pm
Subject: Re: [railo] Railo 4 Session Dump Error
My first thought is - that your session scope must be huge.
But that just seems too easy.
Al

On 7/6/2012 11:48 AM, Grant Copley wrote:
I just downloaded the Railo 4 Beta to look at all the cool new features. Great work guys!

For some reason, I'm unable to do a cfdump or writeDump() on the session scope. I keep getting:

java.lang.StackOverflowError


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 3:34 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 12:34:54 -0700 (PDT)
Local: Fri, Jul 6 2012 3:34 pm
Subject: Re: [railo] Railo 4 Session Dump Error

@Alan - The error message would suggest that, but that seems impossible.
My application simply has two files: an Application.cfc with no methods,
and an index.cfm page where I'm playing around with the functions on my
local machine. I haven't stored anything in the session scope yet, and I've
created probably 10 session maximum.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Holden  
View profile  
 More options Jul 6 2012, 4:05 pm
From: Alan Holden <alhol...@akh.com>
Date: Fri, 06 Jul 2012 13:05:51 -0700
Local: Fri, Jul 6 2012 4:05 pm
Subject: Re: [railo] Railo 4 Session Dump Error
Yeah, I thought that was too simple ;-]

Can you do this without an error (like in a cfset or cfscript)?
createObject("java", "coldfusion.runtime.SessionTracker")



On 7/6/2012 12:34 PM, Grant Copley wrote:
@Alan - The error message would suggest that, but that seems impossible. My application simply has two files: an Application.cfc with no methods, and an index.cfm page where I'm playing around with the functions on my local machine. I haven't stored anything in the session scope yet, and I've created probably 10 session maximum. 

On Friday, July 6, 2012 2:31:49 PM UTC-5, Alan Holden wrote:
My first thought is - that your session scope must be huge.
But that just seems too easy.
Al

On 7/6/2012 11:48 AM, Grant Copley wrote:
I just downloaded the Railo 4 Beta to look at all the cool new features. Great work guys!

For some reason, I'm unable to do a cfdump or writeDump() on the session scope. I keep getting:

java.lang.StackOverflowError




 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile  
 More options Jul 6 2012, 4:18 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 13:18:45 -0700 (PDT)
Local: Fri, Jul 6 2012 4:18 pm
Subject: Re: [railo] Railo 4 Session Dump Error

Yes, I'm able to run the createObject statement without errors. I am also
able to perform a dump on this.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Penhorwood  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 4:18 pm
From: Andrew Penhorwood <and...@coldbits.com>
Date: Fri, 6 Jul 2012 13:18:51 -0700 (PDT)
Local: Fri, Jul 6 2012 4:18 pm
Subject: Re: [railo] Railo 4 Session Dump Error

I think you will need to store something in the session which will cause
Railo to create the session.  If memory serves me the scope does not exist
until if is first used.

Andy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Busche  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 4:25 pm
From: Scott Busche <swbus...@gmail.com>
Date: Fri, 6 Jul 2012 15:25:25 -0500
Local: Fri, Jul 6 2012 4:25 pm
Subject: Re: [railo] Railo 4 Session Dump Error

If it doesn't exist, wouldn't that be a null pointer exception instead of a
stack overflow?

On Fri, Jul 6, 2012 at 3:18 PM, Andrew Penhorwood <and...@coldbits.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 4:36 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 13:36:35 -0700 (PDT)
Local: Fri, Jul 6 2012 4:36 pm
Subject: Re: [railo] Railo 4 Session Dump Error

Andy,

Unfortunately this isn't the case. First, Railo should automatically create
and store the variables session.cfid, session.cftoken, or session.sessionId
when the onSessionStart event occurs. This depends on the Railo settings in
the administrator, but regardless, there should be something in the session
scope without me manually doing anything.

Just to check, I tried adding something to the session scope and I'm still
getting the same error.

I'm starting to think this might be a bug. Anyone else experiencing this
issue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile  
 More options Jul 6 2012, 4:40 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 13:40:11 -0700 (PDT)
Local: Fri, Jul 6 2012 4:40 pm
Subject: Re: Railo 4 Session Dump Error

Ok guys, this is odd. If I go into the Railo Administrator and I change my
Session type from CFML to J2EE, I'm able to dump the session variables
fine. If I switch it back to CFML, I get the error again.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Holden  
View profile  
 More options Jul 6 2012, 4:44 pm
From: Alan Holden <alhol...@akh.com>
Date: Fri, 06 Jul 2012 13:44:45 -0700
Local: Fri, Jul 6 2012 4:44 pm
Subject: Re: [railo] Railo 4 Session Dump Error
I agree with your theory, although I can't say whether or not the bug is new to Railo 4 or just your own environment.
Seems like your system has developed some nasty loop or racing issue with regard to sessions.
As a matter or trivia, is your J2EE container using Java sessions as well?
Your Application.cfc is empty? Have you tried removing it?

I should also note that - while I'm CFML proficient, I'm only 8 months or so into Railo. Plus I'm quite often an idiot.

Al

On 7/6/2012 1:36 PM, Grant Copley wrote:
Andy,

Unfortunately this isn't the case. First, Railo should automatically create and store the variables session.cfid, session.cftoken, or session.sessionId when the onSessionStart event occurs. This depends on the Railo settings in the administrator, but regardless, there should be something in the session scope without me manually doing anything.

Just to check, I tried adding something to the session scope and I'm still getting the same error.

I'm starting to think this might be a bug. Anyone else experiencing this issue?

On Friday, July 6, 2012 3:18:51 PM UTC-5, Andrew Penhorwood wrote:
I think you will need to store something in the session which will cause Railo to create the session.  If memory serves me the scope does not exist until if is first used.

Andy

On Friday, July 6, 2012 3:34:54 PM UTC-4, Grant Copley wrote:
@Alan - The error message would suggest that, but that seems impossible. My application simply has two files: an Application.cfc with no methods, and an index.cfm page where I'm playing around with the functions on my local machine. I haven't stored anything in the session scope yet, and I've created probably 10 session maximum. 

On Friday, July 6, 2012 2:31:49 PM UTC-5, Alan Holden wrote:
My first thought is - that your session scope must be huge.
But that just seems too easy.
Al

On 7/6/2012 11:48 AM, Grant Copley wrote:
I just downloaded the Railo 4 Beta to look at all the cool new features. Great work guys!

For some reason, I'm unable to do a cfdump or writeDump() on the session scope. I keep getting:

java.lang.StackOverflowError




 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile  
 More options Jul 6 2012, 4:52 pm
From: Grant Copley <gcop...@gmail.com>
Date: Fri, 6 Jul 2012 13:52:00 -0700 (PDT)
Subject: Re: [railo] Railo 4 Session Dump Error

Al,

LOL we are in the same boat.

I did try removing my Application.cfc altogether, and I've also tried
resetting the application using the applicationStop() method.

I'm not sure on the J2EE container sessions. How can I check?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Igal  
View profile  
 More options Jul 6 2012, 5:36 pm
From: Igal <d...@21solutions.net>
Date: Fri, 6 Jul 2012 14:36:13 -0700 (PDT)
Local: Fri, Jul 6 2012 5:36 pm
Subject: Re: Railo 4 Session Dump Error

I didn't look at the code but this looks like a recursive call that doesn't
have an exit point so it keeps on calling itself.

the Stack keeps references to the calling code point, so each method call
in that recursive call adds a new Frame to the stack.  at some point the
stack reaches its limit in size and you get the Stack Overflow error.

this is consistent with the stack trace where you can see  
CollectionUtil.java:67 and StorageScopeImpl.java:287 over and over again.

another option is that you have object1 referencing object2 that then
references object1 again (maybe even via other references).  if the
writeDump() doesn't keep track of which objects were already dumped then
you will also run out of Stack space at some point.  that would explain why
you can dump other objects/scopes but not a particular one.

looks like a bug to me, but again -- I didn't look deep into it.  if you
can easily switch to Railo 3.3 and dump the Session scope there then this
is definitely Railo-4 related.

if you suspect it to be a bug you should open a ticket in the JIRA
https://issues.jboss.org/browse/RAILO and try to include some code that
reproduces the error when run independently of your system.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Igal  
View profile  
 More options Jul 6 2012, 6:10 pm
From: Igal <d...@21solutions.net>
Date: Fri, 6 Jul 2012 15:10:05 -0700 (PDT)
Local: Fri, Jul 6 2012 6:10 pm
Subject: Re: Railo 4 Session Dump Error

you can try running this script:

the following script will "dump" only the keys and types.  passing a
maxLevels arg will stop the recursion at the maxLevels value.

if you want to test a Stack Overflow, just enable the circular reference
and don't pass a maxLevels arg:

<!--- cfml script begin --->

<cffunction name="shallowDump" output="true">

<cfargument name="key">
<cfargument name="val" default="[EVAL]">
<cfargument name="maxLevels" default="0">
<cfargument name="level" default="0">
 <cfset var Local = {}>
 <cfif IsSimpleValue( val ) && val EQ '[EVAL]'>
 <cfset val = Evaluate( key )>
</cfif>
 <cfif IsStruct( val )>
 <p style="text-indent:#level * 4#em;">#key#</p>

<cfif ( maxLevels GT 0 ) && ( level LT maxLevels )>
 <cfloop array="#StructKeyArray( val )#" index="Local.ai">

<cfset shallowDump( Local.ai, val[ Local.ai ], maxLevels, level + 1 )>
</cfloop>
<cfelse>
 <p>-- ommited --</p>
</cfif>
<cfelse>
 <p style="text-indent:#level * 4#em;">#key#:
[#val.getClass().getName()#]</p>
</cfif>
</cffunction>

<cfif false>
<!--- enabling this will cause Stack Overflow if there is no limit on the
max levels --->
<cfset session._circularReference = session>
</cfif>

<cfset shallowDump( "Session", "[EVAL]", 4 )>

<!--- cfml script end --->

HTH,

Igal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Igal  
View profile  
 More options Jul 6 2012, 6:24 pm
From: Igal <d...@21solutions.net>
Date: Fri, 6 Jul 2012 15:24:44 -0700 (PDT)
Local: Fri, Jul 6 2012 6:24 pm
Subject: Re: [railo] Railo 4 Session Dump Error

if the session identifier cookie sent to your browser is CFID then you are
using Railo's sessions, if it is jSessionId then you are using the J2EE
Sessions.

also, if this is due to a circular reference (which is the most likely
scenario) then you will get a Stack Overflow with ACF as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grant Copley  
View profile   Translate to Translated (View Original)
 More options Jul 7 2012, 12:34 pm
From: Grant Copley <gcop...@gmail.com>
Date: Sat, 7 Jul 2012 09:34:36 -0700 (PDT)
Local: Sat, Jul 7 2012 12:34 pm
Subject: Re: [railo] Railo 4 Session Dump Error

OK guys, this most definitely is a bug in Railo 4.

I did the exact same thing on a different machine with 32-bit Windows 7
instead of 64-bit.

Again, I'm just download Railo 4, starting up Railo, creating a single .cfm
page in the webroot, and trying to dump the session scope. I still get the
same error.

I'm going to enter this as a bug.

@lgal - I tried running your script. It simple outputs the word "Session"
to the browser and then I see the same error again.

Thanks for the help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Igal  
View profile  
 More options Jul 7 2012, 1:48 pm
From: Igal <d...@21solutions.net>
Date: Sat, 7 Jul 2012 10:48:54 -0700 (PDT)
Local: Sat, Jul 7 2012 1:48 pm
Subject: Re: [railo] Railo 4 Session Dump Error

@Grant -- I installed Railo4 beta to test this and I can confirm that I
also get a Stack Overflow when dumping the Session scope.

I saw that you opened the ticket in the JIRA so I'm sure that it will be
fixed soon.

Igal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Chappell  
View profile   Translate to Translated (View Original)
 More options Jul 9 2012, 12:03 pm
From: Richard Chappell <rmchapp...@gmail.com>
Date: Mon, 9 Jul 2012 09:03:00 -0700 (PDT)
Subject: Re: Railo 4 Session Dump Error

I also get the same issue when trying to dump out the client scope.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CF_Ray  
View profile  
 More options Oct 29 2012, 1:01 pm
From: CF_Ray <rayvar...@gmail.com>
Date: Mon, 29 Oct 2012 10:01:26 -0700 (PDT)
Local: Mon, Oct 29 2012 1:01 pm
Subject: Re: Railo 4 Session Dump Error

I'm getting the same results when dumping the session scope with 'session
type' set to CFML in the server administrator. When I change the value to
J2EE, I have no problem.

I'm using a fairly clean install of Tomcat 7.0.32 and Railo 4.0.0.013 beta
on Win7 64bit. (JDK 1.7.0_09) By default the session type is set to CFML in
the server admin.

If it helps, I was able to get some output using:
writeDump(serialize(session));

-RV


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Offner  
View profile  
 More options Oct 29 2012, 2:41 pm
From: Michael Offner <mich...@getrailo.com>
Date: Mon, 29 Oct 2012 19:41:28 +0100
Local: Mon, Oct 29 2012 2:41 pm
Subject: Re: [railo] Re: Railo 4 Session Dump Error

update to the latest version, this will solve the problem.

/micha

2012/10/29 CF_Ray <rayvar...@gmail.com>

--
/micha

Michael Offner CTO Railo Technologies GmbH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »