Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Exceptions not printed when running IntegratedProcessingUnitContainer

Dear all, I have a very boring problem. When an exception occurs in a polling or notify container, Gigaspaces enter some exception handling procedures but nothing is written on the console, and I can't understand what has happened. I had the doubt this was occurring but I was not sure, I added some code doing on purpose ClassCastException and I have verified it is the case. This is when I launch the app:

"C:\Program Files\Java\jdk1.6.0_21\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:53284,suspend=y,server=n -Xms2g -Xmx2g -Xmn300m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=60 -XX:+UseCMSInitiatingOccupancyOnly -XX:+ExplicitGCInvokesConcurrent -XX:+UseCompressedOops -Dlog4j.configuration=file:///D:/gigaspaces-xap-premium-8.0.0-ga/config/fixed_logging.properties -javaagent:C:\Users\porcu.IntelliJIdea10\system\groovyHotSwap\gragent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\Coroutine4Java.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\Java2COM.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;D:\gigaspacesprojects8\Gottware-core\processor\target\classes;D:\jfin\jFin_DateMath_R1_0_1.jar;D:\VNI\imsl\jmsl610\lib\jmslchart.jar;D:\VNI\imsl\jmsl610\lib\jmslnumerics.jar;D:\VNI\imsl\jmsl610\lib\servlet.jar;D:\VNI\imsl\jmsl610\lib\sp500hst.jar;D:\VNI\imsl\jmsl610\lib\gallery.jar;D:\VNI\imsl\jmsl610\lib\jmsl.jar;D:\gigaspacesprojects8\Gottware-core\common\target\classes;C:\Users\porcu.m2\repository\org\slf4j\slf4j-api\1.5.8\slf4j-api-1.5.8.jar;C:\Users\porcu.m2\repository\org\hibernate\hibernate-annotations\3.5.4-Final\hibernate-annotations-3.5.4-Final.jar;C:\Users\porcu.m2\repository\org\hibernate\hibernate-core\3.5.4-Final\hibernate-core-3.5.4-Final.jar;C:\Users\porcu.m2\repository\antlr\antlr\2.7.6\antlr-2.7.6.jar;C:\Users\porcu.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar;C:\Users\porcu.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\porcu.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\porcu.m2\repository\javax\transaction\jta\1.1\jta-1.1.jar;C:\Users\porcu.m2\repository\org\hibernate\hibernate-commons-annotations\3.2.0.Final\hibernate-commons-annotations-3.2.0.Final.jar;C:\Users\porcu.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.0-api\1.0.0.Final\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\Users\porcu.m2\repository\javassist\javassist\3.4.GA\javassist-3.4.GA.jar;C:\Users\porcu.m2\repository\com\google\guava\guava\r07\guava-r07.jar;C:\Users\porcu.m2\repository\org\slf4j\slf4j-log4j12\1.5.8\slf4j-log4j12-1.5.8.jar;C:\Users\porcu.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Users\porcu.m2\repository\geronimo-spec\geronimo-spec-jta\1.0.1B-rc4\geronimo-spec-jta-1.0.1B-rc4.jar;C:\Users\porcu.m2\repository\commons-dbcp\commons-dbcp\1.2.1\commons-dbcp-1.2.1.jar;C:\Users\porcu.m2\repository\commons-pool\commons-pool\1.2\commons-pool-1.2.jar;C:\Users\porcu.m2\repository\hsqldb\hsqldb\1.8.0.7\hsqldb-1.8.0.7.jar;C:\Users\porcu.m2\repository\com\gigaspaces\gs-openspaces\8.0.0\gs-openspaces-8.0.0.jar;C:\Users\porcu.m2\repository\com\gigaspaces\gs-runtime\8.0.0\gs-runtime-8.0.0.jar;C:\Users\porcu.m2\repository\org\springframework\spring-aop\3.0.5.RELEASE\spring-aop-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\porcu.m2\repository\org\springframework\spring-asm\3.0.5.RELEASE\spring-asm-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-beans\3.0.5.RELEASE\spring-beans-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-core\3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Users\porcu.m2\repository\org\springframework\spring-aspects\3.0.5.RELEASE\spring-aspects-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-context\3.0.5.RELEASE\spring-context-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-expression\3.0.5.RELEASE\spring-expression-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-context-support\3.0.5.RELEASE\spring-context-support-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-tx\3.0.5.RELEASE\spring-tx-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\mysql\mysql-connector-java\5.1.14\mysql-connector-java-5.1.14.jar;C:\Users\porcu.m2\repository\com\bloomberglp\bloombergapi\3.3.1-0\bloombergapi-3.3.1-0.jar;D:\gigaspacesprojects8\Gottware-xlsutils\target\classes;C:\Users\porcu.m2\repository\net\sourceforge\jexcelapi\jxl\2.6.10\jxl-2.6.10.jar;C:\Users\porcu.m2\repository\org\springframework\spring-orm\3.0.5.RELEASE\spring-orm-3.0.5.RELEASE.jar;C:\Users\porcu.m2\repository\org\springframework\spring-jdbc\3.0.5.RELEASE\spring-jdbc-3.0.5.RELEASE.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0.2\lib\idea_rt.jar" org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainer -cluster total_members=2,1 schema=partitioned-sync2backup Connected to the target VM, address: '127.0.0.1:53284', transport: 'socket' Log file: C:\Users\porcu.m2\repository\com\gigaspaces\logs\2011-04-21~13.36-gigaspaces-service-10.11.12.203-13936.log 2011-04-21 13:36:33 IntegratedProcessingUnitContainer [INFO] Starting processing unit(s) with [-cluster, total_members=2,1, schema=partitioned-sync2backup] 2011-04-21 13:36:33 IntegratedProcessingUnitContainer [INFO]

System Environment: System: OS ... (more)

asked 2011-04-21 07:07:24 -0500

edmondo1984 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Edmondo,

Are you sure there is nothing within the :
C:\Users\porcu\.m2\repository\com\gigaspaces\logs\2011-04-21~13.36-gigaspaces-service-10.11.12.203-13936.log

Are you sure the following file exists:
-Dlog4j.configuration=file:///D:/gigaspaces-xap-premium-8.0.0-ga/config/fixed_logging.properties

Are you sure you need both of these?:
log4j-1.2.14.jar and slf4j-log4j12-1.2.1.jar

I suggest you not to install JDK at C:\Program Files\Java\jdk1.6.021 but at c:\Java\jdk1.6.021.
JDK and Java applications should not be installed on folders with space.

Shay

answered 2011-04-21 09:53:49 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Dear Shay, I have added manually a log4jproperties file and I added manually appenders for that loggers and forced my JVM to read this file

-Dlog4j.configuration=file:///D:/gigaspaces-xap-premium-8.0.0-ga/config/fixed_logging.properties

this is because I had 0 loggers and I can't see anything.

log4j.appender.simpleConsoleAppender=org.apache.log4j.ConsoleAppender log4j.appender.simpleConsoleAppender.layout=org.apache.log4j.PatternLayout log4j.appender.simpleConsoleAppender.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n log4j.logger.org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainer=INFO,simpleConsoleAppender log4j.logger.org.openspaces.pu.container.support.ResourceApplicationContext=INFO,simpleConsoleAppender log4j.logger.org.springframework.beans.factory.xml.XmlBeanDefinitionReader=INFO,simpleConsoleAppender

This is the line I had to add.

Still, exceptions are not printed, and I can just detect them by doing debug. I see I enter into some internal exception handling procedure , but I don't see any output on the console.

I need both Jar because they are used by hibernate 3.5 , which I am using for persistance.

Concerning JDK path, ok will do it :)

edmondo1984 gravatar imageedmondo1984 ( 2011-04-26 03:17:40 -0500 )edit

To go a little bit further, I have noticed that when I create a GigaSpace project using Maven archetype it works fine, even if it is a basic-persistency, which already includes Hibernate.

However, adding some other jars (common collections, richfaces, and so on) breaks the logging.

Do you have any suggestion?

edmondo1984 gravatar imageedmondo1984 ( 2011-04-26 03:29:32 -0500 )edit

You need to make sure all the libraries you use support log4j. If not, make sure all are using the java logging since this is what we use by default. Shay

shay hassidim gravatar imageshay hassidim ( 2011-04-26 17:37:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-04-21 07:07:24 -0500

Seen: 101 times

Last updated: Apr 21 '11