Sun beans tutorial "error" II
Forgot to mention the DOS messages:
D:\DOWNLOAD\Java\beans\beanbox>set CLASSPATH=classes;..\lib\methodtracer.jar;..\
infobus.jar
D:\DOWNLOAD\Java\beans\beanbox>java sun.beanbox.BeanBoxFrame
D:\DOWNLOAD\Java\beans\jars\buttons.jar: jar load failed: java.lang.Error: java.
beans.IntrospectionException: Method "actionPerformed" should have argument "Act
ionPerformedEvent"
java.lang.Error: java.beans.IntrospectionException: Method "actionPerformed" sho
uld have argument "ActionPerformedEvent"
at sunw.demo.buttons.ExplicitButtonBeanInfo.getEventSetDescriptors(Expli
citButtonBeanInfo.java:60)
at java.beans.Introspector.getTargetEventInfo(Unknown Source)
at java.beans.Introspector.getBeanInfo(Unknown Source)
at java.beans.Introspector.getBeanInfo(Unknown Source)
at sun.beanbox.JarInfo.<init>(JarInfo.java:66)
at sun.beanbox.JarLoader.createJarInfo(JarLoader.java:292)
at sun.beanbox.JarLoader.loadJar(JarLoader.java:197)
at sun.beanbox.JarLoader.loadJarDoOnBean(JarLoader.java:207)
at sun.beanbox.ToolBoxPanel.addBeansInJar(ToolBox.java:175)
at sun.beanbox.ToolBoxPanel.<init>(ToolBox.java:105)
at sun.beanbox.ToolBoxScrollPane.<init>(ToolBox.java:69)
at sun.beanbox.ToolBox.<init>(ToolBox.java:28)
at sun.beanbox.BeanBoxFrame.<init>(BeanBoxFrame.java:124)
at sun.beanbox.BeanBoxFrame.main(BeanBoxFrame.java:91)
Regards
Pierre R
If you are using jdk 1.4, try to use an older version.
Similar Messages
-
D_CS_OLAP Metadata / BI Beans Tutorial
Hi,
I am trying to run the BI Beans tutorial based on the common schema. However, there seems to be a problem with the meta-data from D_CS_OLAP (see below). There is no such user being installed from the common schema zip file.
Any suggestions?
Thanks!
Jan
Error
Thu Mar 24 12:22:51 CET 2005 In BuilderWizardValidateAdapter::wizardValidatePage
BIB-9509 Oracle OLAP hat keinen Cursor erstellt.
Invalid Metadata Objects:
Invalid Object "Mtm.49": "Fehler beim Validieren von Objekt."
Invalid Object "D_CS_OLAP.SHAWT_TIME.CALENDAR": "Fehler beim Validieren von Objekt."
Invalid Object "Mtm.45": "Fehler beim Validieren von Objekt."
Invalid Object "D_CS_OLAP.SHAWT_TIME": "Fehler beim Validieren von Objekt."
Invalid Object "Mtm.42": "Fehler beim Validieren von Objekt."
Invalid Object "Mtm.41": "Fehler beim Validieren von Objekt."
Invalid Object "D_CS_OLAP.SHAWCHANNELS": "Fehler beim Validieren von Objekt."
And here the BI Beans Diagnostics
BI Beans Diagnostics(v1.0.2.0) 17.02.05
===============================================================================
JDEV_ORACLE_HOME .......................... = D:\Programme\Development\JDevelpe
1012
JAVA_HOME ................................. = D:\Programme\Development\JDevelpe
1012\jdk\bin
JDeveloper version ........................ = 10.1.2.0.0.1811
BI Beans release description .............. = BI Beans 10.1.2 Production Releas
BI Beans component number ................. = 10.1.2.52.0
BI Beans internal version ................. = 3.2.1.0.13
Connect to database ....................... = Successful
JDBC driver version ....................... = 10.1.0.3.0
JDBC JAR file location .................... = D:\Programme\Development\JDevelpe
1012\jdbc\lib
Database version .......................... = 10.1.0.3.0
OLAP Catalog version ...................... = 10.1.0.3.0
OLAP AW Engine version .................... = 10.1.0.3.0
OLAP API Server version ................... = 10.1.0.3.0
BI Beans Catalog version .................. = N/A; not installed in cs_olap
OLAP API JAR file version ................. = "10.1.0.3.0"
OLAP API JAR file location ................ = D:\Programme\Development\JDevelpe
1012\jdev\lib\ext
Load OLAP API metadata .................... = Successful
Number of metadata folders ................ = 4
Number of metadata measures ............... = 24
Number of metadata dimensions ............. = 5
Metadata output location .................. = D:\Programme\Development\JDevelpe
1012\bibeans\bi_checkconfig\bi_metadata.txtD_CS_OLAP.xxx are the unique identifiers for dimensions and measures. D_CS_OLAP does not map to a user/schema.
1) Perhaps the user logging in does not have access to these objects?
2) There may be a patch set problem. It may be useful to get access to the file - D:\Programme\Development\JDevelper1012\bibeans\bi_checkconfig\bi_metadata.txt
By the way, the BI Beans are the owners of this collateral. Their forum on OTN would be much more appropriate than the OLAP. -
Help with SUN JNDI tutorial example
HI guys there's an example of how to bound an object along with its codebase in the sun jndi tutorial
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
* Demonstrates how to bind a Serializable object to a directory
* with a codebase.
* (Use Unbind to remove binding.)
* usage: java SerObjWithCodebase <codebase URL>
class SerObjWithCodebase {
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("usage: java SerObjWithCodebase <codebase URL>");
System.exit(-1);
String codebase = args[0];
// Set up environment for creating initial context
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial");
try {
// Create the initial context
DirContext ctx = new InitialDirContext(env);
// Create object to be bound
Flower f = new Flower("rose", "pink");
// Perform bind and specify codebase
ctx.bind("cn=Flower", f, new BasicAttributes("javaCodebase", codebase));
// Check that it is bound
Flower f2 = (Flower)ctx.lookup("cn=Flower");
System.out.println(f2);
// Close the context when we're done
ctx.close();
} catch (NamingException e) {
System.out.println("Operation failed: " + e);
So in therory you should be able to retrieve an object in through doing a look up, and then cast it... but in this approach the client that performs the look up shouldn't need to include the class definition of the object that is being retrieved, because it's being included in the code base of the context, but then how do you avoid compilation errors such:
SerObjWithCodebase.java:73: cannot resolve symbol
symbol : class Flower
location: class SerObjWithCodebase
Flower f2 = (Flower)ctx.lookup("cn=Flower");
in the client code that is attepting to perform the look up?... is there a work-around for this problem? please let me know, thanks in advance.As far as I am aware, there is no possible way to compile or execute code without the client knowing it's definition.
The client will always need the class definition if it want's to use it.
If you don't want this coupling, then you could look at using an EJB container (which still requires the client to have skeleton code) or using something like web services -
Run client execution problem when running Sun J2EE tutorial example
Hi,
I'm trying to run the Sun J2EE tutorial example, CartApp.
When come to run the client application I got the following error:
The command:
E:\Dev\src\J2EE_J2EE_tutorial\examples\ears>runclient -client CarApp.ear -name CartClient -textauth
The error:
Application threw an exception:java.io.IOException: CarApp.ear does not exist
The deployment complete without error.
I tried to the the APPCPATH to :
set APPCPATH=E:\Dev\src\J2EE_J2EE_tutorial\examples\ears\CartAppClient.jar
set APPCPATH=CartAppClient.jar
On both set, it gave the same error above.
Did someone known the problem I have ?
Thnakshi ,
I think u have given other disply name to your J2EE client ,
Anyway check disply name of J2EE client through deploytool.
u have to use that display name to access the j2ee client .
suppose ur j2ee client displyname is testclient, u can use:
runclient -client ConverterApp.ear -name testclient
hope this will help u,
babu. -
Error deploying Sun j2ee tutorial
I want to see some JSF examples and tried to deploy simple WAR files from SUN. These are downloadable via http://java.sun.com/j2ee/1.4/download.html#tutorial
An example war file I tried is guesNumber.war.
If I deploy this in Oracle Application Server 10g Release 2 (10.1.2.0.2) it doesn't work - computer says no. Error : Unknown assembly root-tag attribute: xmlnsTry changing this line in your web.xml <br>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><br>
to
<br>
<web-app><br>
Remove the xmlns bits in the tag
regards
Vasu -
"Running Oracle Spatial Web Services" tutorial error
Hi,
I am currently working on setting up the WFS service with OC4J. I completed the initial tutorial to set it up and everything went well. I am now trying to run the WFS demos from WSCLIENT and using this tutorial: http://www.oracle.com/technology/obe/11gr1_db/datamgmt/spatialws/spatialws.htm.
I just focused on the WFS Relational features and did the following:
Ran @wfsrelmd.sql and users/tables/grants were all successful.
Ran compileAndRunClient.bat runwfsct and the feature was created successfully.
Ran compileAndRunClient.bat runwfsrel and received the following error in the OC4J server shell:
"Starting OC4J from C:\oc4j\j2ee\home ...
Jan 4, 2010 12:40:02 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
2010-01-04 12:40:03.445 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
2010-01-04 12:40:03.446 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
10/01/04 12:40:05 Oracle Containers for J2EE 10g (10.1.3.5.0) initialized
10/01/04 12:40:43 Oracle Spatial WS Server could not set up configuration parameters: java.lang.NullPointerException
10/01/04 12:40:43 java.lang.NullPointerException
10/01/04 12:40:43 at sun.misc.MetaIndex.mayContain(MetaIndex.java:225)
10/01/04 12:40:43 at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:744)
10/01/04 12:40:43 at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
10/01/04 12:40:43 at sun.misc.URLClassPath.getResource(URLClassPath.java:220)
10/01/04 12:40:43 at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1126)
10/01/04 12:40:43 at java.lang.ClassLoader.getResource(ClassLoader.java:975)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.findJREResource(PolicyClassLoader.java:1233)
10/01/04 12:40:43 at oracle.classloader.JVMSearchPolicy.findResource(JVMSearchPolicy.java:36)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:43 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:43 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:43 at oracle.classloader.PolicyClassLoader.getResource(PolicyClassLoader.java:1763)
10/01/04 12:40:43 at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168)
10/01/04 12:40:43 at oracle.spatial.ws.WSProperties.load(WSProperties.java:101)
10/01/04 12:40:43 at oracle.spatial.ws.WSProperties.getProperty(WSProperties.java:294)
10/01/04 12:40:43 at oracle.spatial.ws.WSProperties.setLogProperties(WSProperties.java:546)
10/01/04 12:40:43 at oracle.spatial.ws.svrproxy.SdoWsService.init(SdoWsService.java:119)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JAXRPCProcessor.callInitIfImplementsServiceLifecycle(JAXRPCProcessor.java:602)
10/01/04 12:40:43 at oracle.j2ee.ws.server.J2EEImplementor.<init>(J2EEImplementor.java:82)
10/01/04 12:40:43 at oracle.j2ee.ws.server.J2EEJavaImplementor.<init>(J2EEJavaImplementor.java:54)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JavaImplementorFactory.createImplementor(JavaImplementorFactory.java:26)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JAXRPCProcessor.createImplementor(JAXRPCProcessor.java:586)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JAXRPCProcessor.getImplementor(JAXRPCProcessor.java:550)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JAXRPCServlet.createSOAPMessage(JAXRPCServlet.java:878)
10/01/04 12:40:43 at oracle.j2ee.ws.server.WebServiceServlet.initProcessorContext(WebServiceServlet.java:314)
10/01/04 12:40:43 at oracle.j2ee.ws.server.JAXRPCServlet.initProcessorContext(JAXRPCServlet.java:324)
10/01/04 12:40:43 at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:198)
10/01/04 12:40:43 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
10/01/04 12:40:43 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
10/01/04 12:40:43 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
10/01/04 12:40:43 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
10/01/04 12:40:43 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
10/01/04 12:40:43 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
10/01/04 12:40:43 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
10/01/04 12:40:43 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
10/01/04 12:40:43 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
10/01/04 12:40:43 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
10/01/04 12:40:43 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
10/01/04 12:40:43 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
10/01/04 12:40:43 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
10/01/04 12:40:43 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
10/01/04 12:40:43 at java.lang.Thread.run(Thread.java:619)
10/01/04 12:40:43 [oracle.spatial.ws.CacheLoader, Mon Jan 04 12:40:43 EST 2010,WARN] Connection not initialized for WFS Cache
10/01/04 12:40:43 [oracle.spatial.csw.CSWCacheLoader, Mon Jan 04 12:40:43 EST 2010, WARN] Connection not initialized for CSW Cache
10/01/04 12:40:49 [oracle.spatial.ws.svrproxy.SdoWsService, Mon Jan 04 12:40:49EST 2010, INFO] Make Spatial Request, using wfs_rel_user
10/01/04 12:40:49 java.lang.NullPointerException
10/01/04 12:40:49 at sun.misc.MetaIndex.mayContain(MetaIndex.java:225)
10/01/04 12:40:49 at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:744)
10/01/04 12:40:49 at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
10/01/04 12:40:49 at sun.misc.URLClassPath.getResource(URLClassPath.java:220)
10/01/04 12:40:49 at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1126)
10/01/04 12:40:49 at java.lang.ClassLoader.getResource(ClassLoader.java:975)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.findJREResource(PolicyClassLoader.java:1233)
10/01/04 12:40:49 at oracle.classloader.JVMSearchPolicy.findResource(JVMSearchPolicy.java:36)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.askParentForResource(PolicyClassLoader.java:1405)
10/01/04 12:40:49 at oracle.classloader.SearchPolicy$AskParent.findResource(SearchPolicy.java:78)
10/01/04 12:40:49 at oracle.classloader.SearchSequence.findResource(SearchSequence.java:142)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResourceUsingPolicy(PolicyClassLoader.java:1490)
10/01/04 12:40:49 at oracle.classloader.PolicyClassLoader.getResource(PolicyClassLoader.java:1763)
10/01/04 12:40:49 at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1168)
10/01/04 12:40:49 at oracle.spatial.ws.svrproxy.SdoWsMultiplexer.<clinit>(SdoWsMultiplexer.java:228)
10/01/04 12:40:49 at oracle.spatial.ws.svrproxy.SdoWsService.makeSpatialRequest(SdoWsService.java:274)
10/01/04 12:40:49 at oracle.spatial.ws.svrproxy.runtime.SpatialWSSoapHttp_Tie.invoke_makeSpatialRequest(SpatialWSSoapHttp_Tie.java:60)
10/01/04 12:40:49 at oracle.spatial.ws.svrproxy.runtime.SpatialWSSoapHttp_Tie.processingHook(SpatialWSSoapHttp_Tie.java:155)
10/01/04 12:40:49 at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:297)
10/01/04 12:40:49 at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:430)
10/01/04 12:40:49 at oracle.j2ee.ws.server.WebServiceProcessor$1.run(WebServiceProcessor.java:388)
10/01/04 12:40:49 at java.security.AccessController.doPrivileged(Native Method)
10/01/04 12:40:49 at javax.security.auth.Subject.doAs(Subject.java:396)
10/01/04 12:40:49 at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:385)
10/01/04 12:40:49 at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:294)
10/01/04 12:40:49 at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
10/01/04 12:40:49 at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:151)
10/01/04 12:40:49 at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:200)
10/01/04 12:40:49 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
10/01/04 12:40:49 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
10/01/04 12:40:49 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
10/01/04 12:40:49 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
10/01/04 12:40:49 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
10/01/04 12:40:49 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
10/01/04 12:40:49 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
10/01/04 12:40:49 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
10/01/04 12:40:49 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
10/01/04 12:40:49 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
10/01/04 12:40:49 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
10/01/04 12:40:49 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
10/01/04 12:40:49 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
10/01/04 12:40:49 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
10/01/04 12:40:49 at java.lang.Thread.run(Thread.java:619)
10/01/04 12:40:49 [SdoWsMultiplexer, Mon Jan 04 12:40:49 EST 2010, ERROR] No handlers in system.
10/01/04 12:40:49 [oracle.spatial.ws.svrproxy.SdoWsService, Mon Jan 04 12:40:49EST 2010, INFO] Make Spatial Request, using wfs_rel_user
10/01/04 12:40:49 [SdoWsMultiplexer, Mon Jan 04 12:40:49 EST 2010, ERROR] No handlers in system.
10/01/04 12:40:49 [oracle.spatial.ws.svrproxy.SdoWsService, Mon Jan 04 12:40:49EST 2010, INFO] Make Spatial Request, using wfs_rel_user
I have no idea where this error is coming from and would really appreciate any help if any of these errors indicate a problem someone may know of.
Thanks for your help!I never did solve the problem. I decided to try out GeoServer for WFS and am very impressed. It was much easier to install and pretty feature-filled as well with a lot of documentation. I would definitely suggest checking it out to see if it will fit your needs.
-
Message-driven bean deployment error
Hi:
When attempting to deploy a message-driven bean to the server I get a the following error message:SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
ception] However, bindings to the queues seem to be created successfully, as evidenced here:
INFO: CORE5076: Using Java HotSpot(TM) Server VM, Version 1.4.2_02 from Sun Microsystems Inc.
INFO: JTS5014: Recoverable JTS instance, serverId is 100
INFO: RAR5060: Install JDBC Datasources ...
INFO: JMS5015: Install JMS resources ...
INFO: JMS5002: Binding [< JMS Destination: jms/Sample, javax.jms.Queue, [ imqDestinationName=sample] >]
INFO: JMS5002: Binding [< JMS Connection Factory: jms/SampleQCF, javax.jms.QueueConnectionFactory [imqBrokerHostName=localhost , imqBrokerHostPort=7222 ] >]
INFO: LDR5010: All ejb(s) of [stateless-simple] loaded successfully!
INFO: WEB0100: Loading web module [stateless-simple:stateless-simple.war] in virtual server [server1
] at [helloworld]
INFO: HTTP3072: HTTP listener http-listener-1 [http://xxxxxx:99] ready to accept requests
startup: server started successfully
INFO: CORE3274: successful server startup
I'm using an external JMS provider and according to them the problem is not their server. If we look at the exception trace (javax.jms.JMSException) this is what gets displayed in the server's console:
SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
ception]
SEVERE: MDB00017: [MessageControllerEJB]: Exception in creating message-driven bean container: [java
x.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatE
xception]
SEVERE: javax.jms.JMSException
javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
matException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread
SEVERE: EJB5090: Exception in creating EJB container [javax.jms.JMSException: [C4003]: Error occurre
d on connection creation. - caught java.lang.NumberFormatException]
SEVERE: appId=MessageControllerJAR moduleName=MessageControllerJAR ejbName=MessageControllerEJB
SEVERE: LDR5004: UnExpected error occured while creating ejb container
javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
matException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
WARNING: CORE5020: Error while loading ejb module
WARNING: ADM5603:Event listener error [Error while loading EJB module [MessageControllerJAR]. Please refer to the server log for more details. Any suggestions will be appreciated. Thanks. SCHi:
When attempting to deploy a message-driven bean to the server I get a the following error message:SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
ception] However, bindings to the queues seem to be created successfully, as evidenced here:
INFO: CORE5076: Using Java HotSpot(TM) Server VM, Version 1.4.2_02 from Sun Microsystems Inc.
INFO: JTS5014: Recoverable JTS instance, serverId is 100
INFO: RAR5060: Install JDBC Datasources ...
INFO: JMS5015: Install JMS resources ...
INFO: JMS5002: Binding [< JMS Destination: jms/Sample, javax.jms.Queue, [ imqDestinationName=sample] >]
INFO: JMS5002: Binding [< JMS Connection Factory: jms/SampleQCF, javax.jms.QueueConnectionFactory [imqBrokerHostName=localhost , imqBrokerHostPort=7222 ] >]
INFO: LDR5010: All ejb(s) of [stateless-simple] loaded successfully!
INFO: WEB0100: Loading web module [stateless-simple:stateless-simple.war] in virtual server [server1
] at [helloworld]
INFO: HTTP3072: HTTP listener http-listener-1 [http://xxxxxx:99] ready to accept requests
startup: server started successfully
INFO: CORE3274: successful server startup
I'm using an external JMS provider and according to them the problem is not their server. If we look at the exception trace (javax.jms.JMSException) this is what gets displayed in the server's console:
SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
ception]
SEVERE: MDB00017: [MessageControllerEJB]: Exception in creating message-driven bean container: [java
x.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatE
xception]
SEVERE: javax.jms.JMSException
javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
matException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread
SEVERE: EJB5090: Exception in creating EJB container [javax.jms.JMSException: [C4003]: Error occurre
d on connection creation. - caught java.lang.NumberFormatException]
SEVERE: appId=MessageControllerJAR moduleName=MessageControllerJAR ejbName=MessageControllerEJB
SEVERE: LDR5004: UnExpected error occured while creating ejb container
javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
matException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
WARNING: CORE5020: Error while loading ejb module
WARNING: ADM5603:Event listener error [Error while loading EJB module [MessageControllerJAR]. Please refer to the server log for more details. Any suggestions will be appreciated. Thanks. SC -
Sun ejb tutorial compilation problem with sample code
I have been trying to follow the ejb tutorial off of Sun's web site. However, I get the following problem when I try to compile the sample code.
prompt>javac Demo.java
works fine
Prompt>javac DemoBean.java
works fine
Prompt>javac DemoHome.java
DemoHome.java:23: cannot resolve symbol
symbol : class Demo
location: interface ejb.demo.DemoHome
public Demo create() throws CreateException, RemoteException;
^
1 error
Prompt>
Can anyone help me out as I have tried several books which conveniently skip the part about compiling errors.
I noticed I don't have a CLASSPATH variable and then i created one with just '.' in it and that didn't work. any help would be appreciated as this is driving me crazy. Thanks.try to change the order of the exception.
first RemoteException and then CreateException -
Is it a bug in Sun's Tutorial example!!!!
Hello everybody! I donno whether the following Tutorial example code is buggy or not but it won't run under j2sdk 1.4.2 and also under 1.5 as smoothly as Tutorial says(only the 1st line prints but not all). You can find the code:
http://java.sun.com/docs/books/tutorial/essential/io/dataIO.html
And the file name is:
DataIODemo
Does anyone know how to make it work?
Thanks.
--DMThe author made a "bonehead" error - s/he hardcoded a newline character ('\n') when writing the invoice1.txt file. Since this is a UNIX/Linux character, it will not cause an error when run there - BUT - when run on an OS that doesn't use that convention - Windows, etc - it results in an incorrectly written file.
This illustrates a code portability problem; don't hardcode!
I leave as an exercise for the reader the correction of the format of the total dollar amount.
A corrected copy is below. //********* preceeds changes. Compare with the original to see the differences.
import java.io.*;
public class DataIODemo
public static void main(String[] args)
throws IOException
// write the data out
DataOutputStream out = new DataOutputStream(new
FileOutputStream("invoice1.txt"));
double[] prices = {19.99, 9.99, 15.99, 3.99, 4.99};
int[] units = {12, 8, 13, 29, 50};
String[] descs = {"Java T-shirt",
"Java Mug",
"Duke Juggling Dolls",
"Java Pin",
"Java Key Chain"};
char lineSep = System.getProperty("line.separator").charAt(0);
for (int i = 0; i < prices.length; i++)
out.writeDouble(prices);
out.writeChar('\t');
out.writeInt(units[i]);
out.writeChar('\t');
out.writeChars(descs[i]);
out.writeChar(lineSep);
out.close();
// read it in again
DataInputStream in = new DataInputStream(new
FileInputStream("invoice1.txt"));
double price;
int unit;
StringBuffer desc;
double total = 0.0;
try
while (true)
price = in.readDouble();
in.readChar();
// throws out the tab
unit = in.readInt();
in.readChar();
// throws out the tab
char chr;
desc = new StringBuffer(20);
while ((chr = in.readChar()) != lineSep)
desc.append(chr);
System.out.println("You've ordered " +
unit + " units of " +
desc + " at $" + price);
total = total + unit * price;
} catch (EOFException e)
System.out.println("For a TOTAL of: $" + total);
in.close(); -
Applet from Sun's tutorial - can't get it to work
Hi all - I'm new to Java
Here's what I did so far:
I installed the Sun ONE Studio CE.
I downloaded the example .java files - ClickMe and Spot from the tutorial found at http://java.sun.com/docs/books/tutorial/java/concepts/practical.html
Using Sun ONE Studio I compiled the two java files into class files.
I created a html file called ClickMe.html and inserted the code from the tutorial page.
Now when I open the page (using localhost or the filepath) the applet displays ok and no errors occure. However no red spots apear when I click somewhere in the applet.
By searcing a little around I was led to beleive that it might have to do with setting the classpath so that the ClickMe.class which is called from the html file can find the Spot.class.
In command promt I ran C:>set and found that CLASSPATH="\QTJava.zip"
I then ran the command C:>set CLASSPATH=C:\sun-one-ide\sampledir\spot (which is the folder where the .java, .class and the .html file is on my computer).
This a) did not help and b) when I restarted my computer was back to CLASSPATH="\QTJava.zip"
I am running Windows XP professional.
Am I doing something wrong? Or do I need to install something more like the JRE (I kind of thought that everything needed was installed with the studio)?Thank you for your reply. I tried everything you suggested. I checked "Show Java Console", and this is the error message that came when I tried to click inside the applet.
java.lang.NoClassDefFoundError: Spot
at ClickMe.mousePressed(ClickMe.java:28)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Seems like even though the spot.class file lies within the same folder, the ClickMe.class (which is the one that runs as an applet in the html file) can't find it. It again makes me wonder if the CLASSPATH have something to do with this (though I'm just guessing).
If anyone got more suggestions I'd be very happy. -
Stateless bean giving error when deployed through j2ee 1.3RI
I have written a simple stateless bean and deployed through j2ee 1.3 RI
Context initial = new InitialContext(h);
Object obj = initial.lookup("SampleObject"); // SampleObject -jndi name
SampleHome home = (SampleHome)PortableRemoteObject.narrow(obj, SampleHome.class);
But when running the Client , getting the error
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PoartableRemoteObject.narrow(Unknown Source)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source) at SampleClient.main(SampleClient.java:27)
Is it a system error or whatHi sessionbean,
The most common cause of this exception is when the RMI-IIOP stubs are not found within the client's classpath. The client stubs are returned from the deployment step.
Also, it's better to use the no-arg initial context constructor "new InitialContext()" and let the J2EE 1.3 RI code bootstrap the correct naming service.
--ken -
[EJB] Stateful session bean--- strange error
hi guys,
here s my problem. i m trying to developp a stateful session bean with two ejbcreate method. one with parameters ( ejbcreate(int val)) and another one without (ejbcreate()).
The client can call ejbcreate without any pbs. everything s allright.
but when i try to get a remote access to the bean via a
MY_BEAN.create(5); then i got an error saying :
FAILED TO FIND METHOD FOR HASH ......
i dont understand cuz i checked my files many times and the two methods are implemented and declared in the home interface.
what should i do ?
please.
teryHi Tery,
You are in the wrong forum. This forum is for the Sun Java Studio Creator.
Cheers :-)!!! -
Hi all.
Got this code in a tutorial.
Any help would be grateful.
The Code:
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.*;
import java.awt.GraphicsConfiguration;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.*;
import javax.vecmath.*;
// HelloJava3Da renders a single, rotating cube.
public class HelloJava3Da extends Applet {
public HelloJava3Da() {
setLayout(new BorderLayout());
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas3D = new Canvas3D(config);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
// This will move the ViewPlatform back a bit so the
// objects in the scene can be viewed.
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(scene);
} // end of HelloJava3Da (constructor)
public BranchGroup createSceneGraph() {
// Create the root of the branch graph
BranchGroup objRoot = new BranchGroup();
objRoot.addChild(new ColorCube(0.4));
return objRoot;
} // end of CreateSceneGraph method of HelloJava3Da
// The following allows this to be run as an application
// as well as an applet
public static void main(String[] args) {
Frame frame = new MainFrame(new HelloJava3Da(), 256, 256);
} // end of main (method of HelloJava3Da)
} // end of class HelloJava3Da
The Errors:
All the errors I'm getting are saying "cannot resolve symbol"
These errors seem to stem from the previous errors displayed:
"package com.sun.j3d.utils.universe does not exist"
Any ideas?You know, i found package com.sun.3d.util.universe.*
It came in jar source code when i installed java3d. This jar called:
java3d-utils-src.jar and it reside in my jdk 1.4 directory. I don't know where bytecodes though, but you don't need to include anything of 3d into your classpath. It should work if you installed everything properly. I remember that when i installed active-x it did not work. Then i installed open-g and never had any problems. Make sure you installed open-g (jre and sdk). I met posts about active-x not working before.
My tutorials are working perfectly and source is exactly as you posted it. -
Trouble understanding "BreakWithLabelDemo" (Sun Java Tutorial)
Hi.
I've been slowly working my way through all of the Sun Java tutorials, now I've come across one I just can't wrap my head around.
It's the "BreakWithLabelDemo" tutorial located at [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/branch.html] that is confusing me.
class BreakWithLabelDemo {
public static void main(String[] args) {
int[][] arrayOfInts = { { 32, 87, 3, 589 },
{ 12, 1076, 2000, 8 },
{ 622, 127, 77, 955 }
int searchfor = 12;
int i;
int j = 0;
boolean foundIt = false;
search:
for (i = 0; i < arrayOfInts.length; i++) {
for (j = 0; j < arrayOfInts.length; j++) {
if (arrayOfInts[i][j] == searchfor) {
foundIt = true;
break search;
if (foundIt) {
System.out.println("Found " + searchfor +
" at " + i + ", " + j);
} else {
System.out.println(searchfor
+ " not in the array");
Now it's not understanding what the +break+ statement does that's the problem, it's the nested +for+ loops they've used to demonstrate it that is, and in particularly the code.arrayOfInts[i].length;Now, could someone please enlighten me as to what this statement returns to be evaluated against the variable +j+.
For instance does it simply return the length of the array +arrayOfInts+ and if so why is it referencing a specific element within the array denoted by the variable +i+ ? Also the array is multidimensional when it's declared and initialized and yet it's treated as a regular array in the code above? Why doesn't that throw an error?
Any help walking me through this piece of code would be fantastic. Thank you.
-nexusint[][] arrayOfInts = ...In effect arrayOfInts is a multidimensional array. But it's important to remember that Java has no notion of array dimension. It's just an array - an array consisting of three things in order: {32, 87, 3, 589}, {12, 1076, 2000, 8}, and {622, 127, 77, 955}. It just so happens that these elements are also arrays.
Because it's just an array arrayOfInts also has a length. The length is three because there's three elements. It doesn't matter that each of the elements has a length 4, arrayOfInts has length 3.
In this particular array the elements are also arrays, so it makes sense to ask what their length is. For instance, the last one, {622, 127, 77, 955}, is just arrayOfInts[2] and it has length 4. We can refer to its length as arrayOfInts[2].length and write code like:
if(arrayOfInts[2].length == 4) {
// this will be executed for the array in the example
}Where arrays are multidimensional - in the sense that their elements are also arrays - they can be "ragged". For instance
int[][] arrayOfInts = {
{32, 87, 3, 589},
{12},
{622, 127, 77, 955, -1, 42, 5}
};The array elements all have different lengths and that is why the inner for loop uses the expression j<arrayOfInts.length so that it loops through the correct number of elements of the i-th element of [i]arrayOfInts. -
Why my refrencing value of selectOneMenu to HashMap bean cause error?
i use HashMap bean in my face-config xml to generate HashMap Bean and refrence it to my selectOneMenu , field "value" of selectedItems .
evry thing is true and my combo box fill with my hashmap.
but when i submit a form this error generate :
java.lang.IllegalArgumentException
javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:124)
javax.faces.component.UISelectOne.matchValue(UISelectOne.java:141)
javax.faces.component.UISelectOne.validateValue(UISelectOne.java:114)
javax.faces.component.UIInput.validate(UIInput.java:634)
javax.faces.component.UIInput.executeValidate(UIInput.java:838)
javax.faces.component.UIInput.processValidators(UIInput.java:412)
javax.faces.component.UIForm.processValidators(UIForm.java:170)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
my jsf file is have thise source :
<f:view>
<f:loadBundle basename="lables" var="bundle"/>
<f:loadBundle basename="global" var="global"/>
<h:form id="forms2">
<h:selectOneMenu id="lang" styleClass="textbox2" >
<f:selectItems value="#{langs}" />
</h:selectOneMenu>
<h:commandButton value="ok" type="submit" />
</h:form>
</f:view>
and my face-config has this config :
<managed-bean>
<display-name>langs</display-name>
<managed-bean-name>langs</managed-bean-name>
<managed-bean-class>java.util.HashMap</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<map-entries>
<map-entry>
<key>fa</key>
<value>persian</value>
</map-entry>
</map-entries>
<map-entries>
<map-entry>
<key>en</key>
<value>english</value>
</map-entry>
</map-entries>
</managed-bean>
can anybody help me ? i cann't solve this problem yet .
thanx a lotDid you get this resolved? I've been working on this same problem. I haven't been able to get the HashMap to work, but using the selectItems (as mentioned above) DOES work!
I used this site as a reference:
http://jsf.iatp.org.ua/components/jsf_htmlselectmanylistbox.html
I'll post some of the code in case the link goes bad (future) and someone would still like to see it...
Static items .jsp page:
<f:view>
<h:selectManyListbox value="#{staticPageBean.selectedItems}" size="5">
<f:selectItem itemValue="firstName" itemLabel="First Name" />
<f:selectItem itemValue="lastName" itemLabel="Last Name" />
<f:selectItem itemValue="age" itemLabel="Age" />
<f:selectItem itemValue="sex" itemLabel="Sex" />
</h:selectManyListbox>
<h:commandButton value="Show Selected" actionListener="#{staticPageBean.showSelected}" />
<h:outputText binding="#{staticPageBean.selItemsOutput}" />
</f:view>
The bean for that page
public class StaticPageBean {
//array of values of selected items
private String[] selectedItems;
private HtmlOutputText selItemsOutput;
public void setSelectedItems(String[] items) {
this.selectedItems = items;
public String[] getSelectedItems() {
return selectedItems;
public void setSelItemsOutput(HtmlOutputText component) {
selItemsOutput = component;
public HtmlOutputText getSelItemsOutput() {
return selItemsOutput;
public void showSelected(ActionEvent actionEvent) {
String str = "";
int length = selectedItems.length;
for(int i=0; i<length; i++) {
str += selectedItems[ i ]+" ";
selItemsOutput.setValue(str);
To dynamically populate the select Items
<h:selectManyListbox value="#{dynamicPageBean.selectedItems}" size="5">
<f:selectItems value="#{dynamicPageBean.items}" />
</h:selectManyListbox>
Code behind that
public class DynamicPageBean {
//List of SelectItem instances
private List items;
public DynamicPageBean() {
items = new ArrayList();
SelectItem item = new SelectItem("firstName", "First Name");
items.add(item);
item = new SelectItem("lastName", "Last Name");
items.add(item);
item = new SelectItem("sex", "Sex");
items.add(item);
item = new SelectItem("ssn", "SSN");
items.add(item);
public void setItems(List items) {
this.items = items;
public List getItems() {
return items;
}
Maybe you are looking for
-
I am running Firefox 5 currently. Ever since the last update to Firefox 4 and currently with firefox 5 I have had this issue. The dropdown menu is normal when it first drops down. When i move my cursor over the text in the menu it changes to a dark b
-
Error while using utl_http.request :ORA-12535: TNS:operation timed
Hi. I'm using 11g I'm trying to use utl_http.request I tried select utl_http.request('http://srvab.us.oracle.com') from dual; and get the below error Error report: SQL Error: ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1577 ORA-
-
Language settings in flashislands
Hi All I have developed a WD component with flashisland inside. My problem is that when I try to type hebrew inside inputfields on the flashisland I get some not understandable signs. This does not happen on all pc's, on some pc's I can type hebrew c
-
HT1657 wont download error code .50
any thoughts?
-
Select multiple items on 8900 curve?? HOW??
Can any one please help me, I am trying to find out how to select more than one item at once (to send or delete) I can select lines of text but when I want to download lots of photos I have to do it one by one ! Please help I have curve 8900