[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: narendra  XML
Profile for narendra -> Messages posted by narendra [6]
Author Message
i am using 2.4 version.

Regards
-Narendra
Hi,

i am using apache-tomcat-5.5.23 server.
my application is build upon springmcv,spring,hibernate.

it is not a swingbased application.

i increase the heap size aslo.

still it is giving me the error.

in below method it is throwing error at this statement
request.getSession().setAttribute("oscDemoQuestionSet", oscMagazineInfo.getOscDemoQuestionses());

Regards
-narendra
==============================================


protected void initinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {

super.initBinder(request, binder);
ArrayList list = (ArrayList)getServletContext().getAttribute("catOscCybersourceMerchants");
if(list!=null){
request.setAttribute("cybersourceMerchantsList", list);
}

ArrayList fullFillmentList =(ArrayList)getServletContext().getAttribute("catOscFulfillmentHouse");
if(fullFillmentList !=null){
request.setAttribute("fullfillmenthouse", fullFillmentList);
}

ArrayList storeCategoryList =(ArrayList)getServletContext().getAttribute("catOscStoreCategories");

if(storeCategoryList !=null){
request.setAttribute("storeCategoryList", storeCategoryList);
}

ArrayList activeCsOptionList=(ArrayList)getServletContext().getAttribute("catOscActiveCsOptions");
if(activeCsOptionList !=null){
request.setAttribute("activeCsOptionList",activeCsOptionList);
}

if(oscMagazineInfo.getOscMagazineTermses()!=null){
request.setAttribute("termList", oscMagazineInfo.getOscMagazineTermses());

}else{
request.setAttribute("termList", (ArrayList)getUniOfferTerms());
}


ArrayList payList=(ArrayList)getServletContext().getAttribute("catOscPaymentTypes");
if(payList!=null && payList.size()>0){
request.setAttribute("oscPayTypeList",payList);
}



request.setAttribute("demoQuestionList", oscMagazineInfo.getOscDemoQuestionses());


request.setAttribute("setActiveCsOption",(ArrayList)MagazineUtil.createActiveCsOptionsList(oscMagazineInfo));


List acceptPayementTypeList= MagazineUtil.createAcceptedPaymentsTypesList(oscMagazineInfo);
if(acceptPayementTypeList!=null){
request.setAttribute("accepted",acceptPayementTypeList);
}

//Putting Demoquestion in session
request.getSession().setAttribute("oscDemoQuestionSet", oscMagazineInfo.getOscDemoQuestionses());
//Putting Magazine terms set in session
request.getSession().setAttribute("oscMagazineTermsSet",oscMagazineInfo.getOscMagazineTermses());

binder.registerCustomEditor(Integer.class, new CustomNumberEditor(Integer.class, true));

}
hi,

i am clustering my application httpsession using session cofigurator.
when i click edit on somepage, below exception is thrown.
plz help me.

regards
-narendra



java.lang.StackOverflowError
at com.tc.util.Util.printLogAndMaybeRethrowError(Util.java:51)
at com.tc.util.Util.printLogAndRethrowError(Util.java:42)
at com.tc.object.bytecode.ManagerImpl.lookupExistingOrNull(ManagerImpl.java:603)
at com.tc.object.bytecode.ManagerUtil.lookupExistingOrNull(ManagerUtil.java:130)
at java.util.concurrent.ConcurrentHashMap.__tc_isDsoHashRequired(ConcurrentHashMap.java:639)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:255)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1035)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at javax.swing.tree.DefaultMutableTreeNode.writeObject(DefaultMutableTreeNode.java:1272)
hi,

thanks for you are reply.

i installed terracotta+tomcat+java+myapplication
i followed the below link to connect tomact with terracotta.

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F

still there is no Session clustering.

plz help me.

regards
-Narendra
Hi,

i want to test httpsession clustering for two tomcats using terracotta.

i install
terracotta2.0.4 ,java 1.5,tomacat 5.5, deployed myapplication on my localhost.

in anotherhost i installed java1.5 and tomcat5.5 and deployed myapplication .

now where to put tc-config.xml and what to specify inthat?
how to connect two tomcats to terracotta server with port numbers?.

i do not want to use sessionconfigurator test the httpsession clustering

plz let me know the complete process?

plz help me .i am little bit confusing.

regards
-narendra

Hi,

In our project we are using spring+hibernate.
i want to test Httpclustering in my application on two tomcat servers.

but for i am using terracotta 2.0.4 session configurator bundled tomcats

Q1.how do i configure different tomcats with terracotta for HttpSession clustering

Q2. when i am using session configurator to cluster myapp it is giving below error

regards
-narendra












exception in thread "TCComm Selector Thread 1" java.lang.OutOfMemoryError: Java heap space
at java.nio.CharBuffer.wrap(CharBuffer.java:350)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:378)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
at java.io.Writer.write(Writer.java:126)
at org.apache.log4j.helpers.CountingQuietWriter.write(CountingQuietWriter.java:36)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:299)
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at com.tc.logging.DelegatingAppender.doAppend(DelegatingAppender.java:47)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:194)
at org.apache.log4j.Category.forcedLog(Category.java:379)
at org.apache.log4j.Category.error(Category.java:310)
at com.tc.logging.TCLoggerImpl.error(TCLoggerImpl.java:51)
at com.tc.net.core.TCCommJDK14$TCCommThread.run(TCCommJDK14.java:655)
Exception in thread "http-9082-Processor11" java.lang.OutOfMemoryError: Java heap space
Exception in thread "JMX server connection timeout Thread-9" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
com.tc.exception.TCNonPortableObjectError:
*******************************************************************************
Attempt to share an instance of a non-portable class referenced by a portable class. This
unshareable class has not been included for sharing in the configuration. Please add this
class to the <includes> section of the configuration file.

Referring class : com.primedia.model.OscMagazineInfo
Referring field : com.primedia.model.OscMagazineInfo.oscStoreCategories
Thread : http-9082-Processor4
JVM ID : VM(1)
Non-included class: com.primedia.model.OscStoreCategories$$EnhancerByCGLIB$$2d517ad7

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

 
Profile for narendra -> Messages posted by narendra [6]
Go to:   
Powered by JForum 2.1.7 © JForum Team