java.lang.StackOverflowError

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.StackOverflowError

Raitis
Hello!

When running Orbeon forms 3.8.0.201005141856 CE I regularly catch exception:

2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no location data
java.lang.StackOverflowError
    at java.util.ArrayList.get(Unknown Source)
    at java.util.AbstractList$Itr.next(Unknown Source)
    at org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
    at org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
    ...........

I get it when orbeon have default configuration, if I change:
  • oxf.xforms.state-handling...
  • oxf.xforms.cache...
options, I still receive exception, but I can run application about 3x times longer.

Using Orbeon 3.7.1, problems didn't existed.

Is there any resolution how to solve this problem?

Raitis




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.StackOverflowError

Raitis
Maybe the problem is in - MemoryCacheImpl.java, in funcion lowerOrEqual, because there is too deep rrecursion?

And that rise StackOverflowError exception?

Raitis

On Thu, Sep 16, 2010 at 1:57 PM, Raitis <[hidden email]> wrote:
Hello!

When running Orbeon forms 3.8.0.201005141856 CE I regularly catch exception:

2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no location data
java.lang.StackOverflowError
    at java.util.ArrayList.get(Unknown Source)
    at java.util.AbstractList$Itr.next(Unknown Source)
    at org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
    at org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
    ...........

I get it when orbeon have default configuration, if I change:
  • oxf.xforms.state-handling...
  • oxf.xforms.cache...
options, I still receive exception, but I can run application about 3x times longer.

Using Orbeon 3.7.1, problems didn't existed.

Is there any resolution how to solve this problem?

Raitis





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: java.lang.StackOverflowError

Erik Bruchez
Administrator
Hi,

I don't think we have seen this exception.

There could be a lot of recursion in that method, but it should end at
some point, as it should be about proportional to number of outputs
considered in the pipeline.

-Erik

On Fri, Sep 17, 2010 at 1:36 AM, Raitis <[hidden email]> wrote:

> Maybe the problem is in - MemoryCacheImpl.java, in funcion lowerOrEqual,
> because there is too deep rrecursion?
>
> And that rise StackOverflowError exception?
>
> Raitis
>
> On Thu, Sep 16, 2010 at 1:57 PM, Raitis <[hidden email]> wrote:
>>
>> Hello!
>>
>> When running Orbeon forms 3.8.0.201005141856 CE I regularly catch
>> exception:
>>
>> 2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no
>> location data
>>>
>>> java.lang.StackOverflowError
>>>     at java.util.ArrayList.get(Unknown Source)
>>>     at java.util.AbstractList$Itr.next(Unknown Source)
>>>     at
>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
>>>     at
>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
>>>
>>>     ...........
>>
>> I get it when orbeon have default configuration, if I change:
>>
>> oxf.xforms.state-handling...
>> oxf.xforms.cache...
>>
>> options, I still receive exception, but I can run application about 3x
>> times longer.
>>
>> Using Orbeon 3.7.1, problems didn't existed.
>>
>> Is there any resolution how to solve this problem?
>>
>> Raitis
>>
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: java.lang.StackOverflowError

Raitis
Hi, Eric!

Yes, it should, but I still receive exception.
If I have some process and it always raise exception at the same number.

For example, if I in one process create hundreds of PDF documents, then it raise exception, for example, at id 657, then after tomcat restart next time the error will be raised at the same number of created files. The same happening if there is another input data.

I have noticed that the exception is trowed when I use page views, after some number of page view processing I get the same exception.

I have tried those process on more computers, with different os version, tomcat version and configuration.
Every time exception is raised, at the same number of processed documents.

In our application there is parts that aren't changed from 3.7 orbeon version, and now after some time of usage exception is raised.

Raitis


On Sat, Sep 18, 2010 at 2:44 AM, Erik Bruchez <[hidden email]> wrote:
Hi,

I don't think we have seen this exception.

There could be a lot of recursion in that method, but it should end at
some point, as it should be about proportional to number of outputs
considered in the pipeline.

-Erik

On Fri, Sep 17, 2010 at 1:36 AM, Raitis <[hidden email]> wrote:
> Maybe the problem is in - MemoryCacheImpl.java, in funcion lowerOrEqual,
> because there is too deep rrecursion?
>
> And that rise StackOverflowError exception?
>
> Raitis
>
> On Thu, Sep 16, 2010 at 1:57 PM, Raitis <[hidden email]> wrote:
>>
>> Hello!
>>
>> When running Orbeon forms 3.8.0.201005141856 CE I regularly catch
>> exception:
>>
>> 2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no
>> location data
>>>
>>> java.lang.StackOverflowError
>>>     at java.util.ArrayList.get(Unknown Source)
>>>     at java.util.AbstractList$Itr.next(Unknown Source)
>>>     at
>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
>>>     at
>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
>>>
>>>     ...........
>>
>> I get it when orbeon have default configuration, if I change:
>>
>> oxf.xforms.state-handling...
>> oxf.xforms.cache...
>>
>> options, I still receive exception, but I can run application about 3x
>> times longer.
>>
>> Using Orbeon 3.7.1, problems didn't existed.
>>
>> Is there any resolution how to solve this problem?
>>
>> Raitis
>>
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: java.lang.StackOverflowError

Raitis
In reply to this post by Erik Bruchez
Ok, finally I resolved this exception.

There was problem in modified epilogue.xpl file. In epilogue we are
modifying xhtml:head/xf:model in #data instance.

For example, we are using transformation to add some javascript and
modal dialogs to every page. But because in pipes we were using
oxf:subbmision processor, it after some time raised java overflow
exception.

Now I added condition to check /request/content-type, but why for
text/html content it is returned blank (<content-type />)?

Raitis

On 9/18/10, Erik Bruchez <[hidden email]> wrote:

> Hi,
>
> I don't think we have seen this exception.
>
> There could be a lot of recursion in that method, but it should end at
> some point, as it should be about proportional to number of outputs
> considered in the pipeline.
>
> -Erik
>
> On Fri, Sep 17, 2010 at 1:36 AM, Raitis <[hidden email]> wrote:
>> Maybe the problem is in - MemoryCacheImpl.java, in funcion lowerOrEqual,
>> because there is too deep rrecursion?
>>
>> And that rise StackOverflowError exception?
>>
>> Raitis
>>
>> On Thu, Sep 16, 2010 at 1:57 PM, Raitis <[hidden email]> wrote:
>>>
>>> Hello!
>>>
>>> When running Orbeon forms 3.8.0.201005141856 CE I regularly catch
>>> exception:
>>>
>>> 2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no
>>> location data
>>>>
>>>> java.lang.StackOverflowError
>>>>     at java.util.ArrayList.get(Unknown Source)
>>>>     at java.util.AbstractList$Itr.next(Unknown Source)
>>>>     at
>>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
>>>>     at
>>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
>>>>
>>>>     ...........
>>>
>>> I get it when orbeon have default configuration, if I change:
>>>
>>> oxf.xforms.state-handling...
>>> oxf.xforms.cache...
>>>
>>> options, I still receive exception, but I can run application about 3x
>>> times longer.
>>>
>>> Using Orbeon 3.7.1, problems didn't existed.
>>>
>>> Is there any resolution how to solve this problem?
>>>
>>> Raitis
>>>
>>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: java.lang.StackOverflowError

Erik Bruchez
Administrator
Raitis,

Glad that it's resolved.

The request content-type, if I understand your question, returns
whatever header is placed in the POST or PUT. So if it's blank, maybe
it means the caller doesn't set that header?

-Erik

On Fri, Oct 1, 2010 at 1:00 AM, Raitis <[hidden email]> wrote:

> Ok, finally I resolved this exception.
>
> There was problem in modified epilogue.xpl file. In epilogue we are
> modifying xhtml:head/xf:model in #data instance.
>
> For example, we are using transformation to add some javascript and
> modal dialogs to every page. But because in pipes we were using
> oxf:subbmision processor, it after some time raised java overflow
> exception.
>
> Now I added condition to check /request/content-type, but why for
> text/html content it is returned blank (<content-type />)?
>
> Raitis
>
> On 9/18/10, Erik Bruchez <[hidden email]> wrote:
>> Hi,
>>
>> I don't think we have seen this exception.
>>
>> There could be a lot of recursion in that method, but it should end at
>> some point, as it should be about proportional to number of outputs
>> considered in the pipeline.
>>
>> -Erik
>>
>> On Fri, Sep 17, 2010 at 1:36 AM, Raitis <[hidden email]> wrote:
>>> Maybe the problem is in - MemoryCacheImpl.java, in funcion lowerOrEqual,
>>> because there is too deep rrecursion?
>>>
>>> And that rise StackOverflowError exception?
>>>
>>> Raitis
>>>
>>> On Thu, Sep 16, 2010 at 1:57 PM, Raitis <[hidden email]> wrote:
>>>>
>>>> Hello!
>>>>
>>>> When running Orbeon forms 3.8.0.201005141856 CE I regularly catch
>>>> exception:
>>>>
>>>> 2010-09-16 12:11:57,046 ERROR ProcessorService  - Exception with no
>>>> location data
>>>>>
>>>>> java.lang.StackOverflowError
>>>>>     at java.util.ArrayList.get(Unknown Source)
>>>>>     at java.util.AbstractList$Itr.next(Unknown Source)
>>>>>     at
>>>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:212)
>>>>>     at
>>>>> org.orbeon.oxf.cache.MemoryCacheImpl.lowerOrEqual(MemoryCacheImpl.java:214)
>>>>>
>>>>>     ...........
>>>>
>>>> I get it when orbeon have default configuration, if I change:
>>>>
>>>> oxf.xforms.state-handling...
>>>> oxf.xforms.cache...
>>>>
>>>> options, I still receive exception, but I can run application about 3x
>>>> times longer.
>>>>
>>>> Using Orbeon 3.7.1, problems didn't existed.
>>>>
>>>> Is there any resolution how to solve this problem?
>>>>
>>>> Raitis
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws