[JBossCache] - Re: JBC 2 performance
by aditsu
Thanks, I updated from CVS and the first thing I found is a NPE:
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:846)
at java.util.concurrent.ConcurrentHashMap.putAll(ConcurrentHashMap.java:888)
at org.jboss.cache.UnversionedNode.putAllDirect(UnversionedNode.java:540)
at org.jboss.cache.CacheImpl._put(CacheImpl.java:2279)
at org.jboss.cache.CacheImpl._put(CacheImpl.java:2236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[...]
Apparently ConcurrentHashMap doesn't allow null values.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068588#4068588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068588
18Â years, 8Â months
[JBoss Seam] - Re: SeamTest breaks on drools 4.0
by stu2
Thanks Shane. It works fine from within JBoss, but when I run the unit test here's what I see:
FAILED CONFIGURATION: @BeforeMethod begin
| org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
| at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:138)
| at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:114)
| at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:87)
| at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:40)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
| at org.jboss.seam.Component.newInstance(Component.java:1961)
| at org.jboss.seam.Component.getInstance(Component.java:1858)
| at org.jboss.seam.Component.getInstance(Component.java:1825)
| at org.jboss.seam.security.RuleBasedIdentity.initSecurityContext(RuleBasedIdentity.java:62)
| at org.jboss.seam.security.RuleBasedIdentity.create(RuleBasedIdentity.java:55)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
| at org.jboss.seam.Component.newInstance(Component.java:1961)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
| at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:187)
| at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
| at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:877)
| at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
| at com.fb.core.test.support.SeamDbUnitTest.begin(SeamDbUnitTest.java:59)
| Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
| at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:98)
| at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:56)
| at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:134)
| ... 56 more
| ... Removed 32 stack frames
This is what I've been seeing consistently. Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068587#4068587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068587
18Â years, 8Â months
[Remoting] - Socket client with JBoss Remoting
by riannuzzi
I'm trying to make a simple socket client using JBoss Remoting. My code is the following:
InvokerLocator locator = new InvokerLocator("socket://127.0.0.1:4322");
Client remotingClient = new Client(locator);
remotingClient.connect();
System.out.println(remotingClient.invoke("Teste Remoting"));
I have a server socket that does not use JBoss Remoting. The code is the following:
server = new ServerSocket(4322);
client = server.accept();
in = new BufferedReader(new InputStreamReader(client.getInputStream()));
out = new PrintWriter(client.getOutputStream(), true);
while(true){
String line = in.readLine();
if (line != null){
System.out.println("Server - Recebendo:" + line);
out.println("Resposta:" + line);
System.out.println("Server - Enviando:" + line);
}
}
But the following exception occurs:
Can not get connection to server. Problem establishing socket connection for InvokerLocator.
Someone can help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068582#4068582
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068582
18Â years, 8Â months