Failed to Generate Wrapper Class
Hello,
I am trying to deploy a cmp ejb (attached here) and I always get the following
exception. Can anyone please help?
Julien Martin.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: activate failed for account-ejb
Module: account-ejb Error: Exception activating module: EJBModule(account-ejb,status=PREPARED)
Unable to deploy EJB: AccountEJB from account-ejb.jar:
Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java:674)
at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:196)
at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyDatabaseType(RDBMSPersistenceManager.java:2025)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:195)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:217)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:184)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:164)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1004)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1322)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:610)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2549)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
No Exception Messages
[account-ejb.jar]
I would suggest posting in the JDBC newsgroup.
-- Rob
Julien Martin wrote:
Hello,
I am trying to deploy a cmp ejb (attached here) and I always get the following
exception. Can anyone please help?
Julien Martin.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: activate failed for account-ejb
Module: account-ejb Error: Exception activating module: EJBModule(account-ejb,status=PREPARED)
Unable to deploy EJB: AccountEJB from account-ejb.jar:
Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java:674)
at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:196)
at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyDatabaseType(RDBMSPersistenceManager.java:2025)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:195)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:217)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:184)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:164)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1004)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1322)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:610)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2549)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
No Exception Messages
Similar Messages
-
Failed to Generate Wrapper Class Error With Postgresql
Hello,
Sorry if this comes across twice, I posted it first through the Google Groups interface, but I haven't seen it show up on the dev2dev forum interface. So here it is again.
I've read the following threads that seem to be related to this
question:
http://groups-beta.google.com/group/weblogic.developer.interest.jdbc/browse_thread/thread/dc8f0a9ee03e9b9f/f0a70a673db3bb52
http://groups-beta.google.com/group/weblogic.developer.interest.jdbc/browse_thread/thread/4f3b71c77dca30c4/4ed2e1c7b76a0c7b
I also followed the links in the second post ( I also found them via
Google as well ). I've been very sure the Postgresql JDBC driver is
definitely in the class path. I'm able to load it with Class.forName()
from a JSP page and then use DriverManager to get a connection that
works. So that definitely means the driver is found.
What else can cause this?
The only really odd thing I am doing is running Weblogic on OS X,
10.3.7 with all the updates. I know that this Weblogic setup works
since I work on Oracle all day (using the provided Weblogic driver in
8.1SP3). Just when I try to create a Postgresql connection for testing
our app against Postgresql.
I've tried it on Windows with Weblogic 8.1SP3 and it works, so I know
Weblogic is capable of using this driver.
My exact stacktrace is:
java.lang.RuntimeException: Failed to Generate Wrapper Class
at
weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:183)
at
weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:171)
at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:248)
at weblogic.jdbc.pool.Driver.connect(Driver.java:164)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:507)
at weblogic.jdbc.jts.Driver.connect(Driver.java:139)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at jsp_servlet.__direct._jspService(direct.jsp:13)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:458)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:511)
at weblogic.jdbc.jts.Driver.connect(Driver.java:139)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at jsp_servlet.__direct._jspService(direct.jsp:13)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
What is going on at the place where this crashes? Is there a way find
out what class it really can't find?
Thanks,
PatrickPatrick,
1. Could you try to test the postgress connection pool using
"Test Connection" on the pool set up page?
2. Could you compare config.xml for broken and working installations
in part of the connection pool settings?
Regards,
Slava Imeshev
"Patrick Burleson" <[email protected]> wrote in message
Sorry if this comes across twice, I posted it first through the Google Groups interface, but I haven't seen it show up on thedev2dev forum interface. So here it is again.
>
I've read the following threads that seem to be related to this
question:
http://groups-beta.google.com/group/weblogic.developer.interest.jdbc/browse_thread/thread/dc8f0a9ee03e9b9f/f0a70a673db3bb52
http://groups-beta.google.com/group/weblogic.developer.interest.jdbc/browse_thread/thread/4f3b71c77dca30c4/4ed2e1c7b76a0c7b
I also followed the links in the second post ( I also found them via
Google as well ). I've been very sure the Postgresql JDBC driver is
definitely in the class path. I'm able to load it with Class.forName()
from a JSP page and then use DriverManager to get a connection that
works. So that definitely means the driver is found.
What else can cause this?
The only really odd thing I am doing is running Weblogic on OS X,
10.3.7 with all the updates. I know that this Weblogic setup works
since I work on Oracle all day (using the provided Weblogic driver in
8.1SP3). Just when I try to create a Postgresql connection for testing
our app against Postgresql.
I've tried it on Windows with Weblogic 8.1SP3 and it works, so I know
Weblogic is capable of using this driver.
My exact stacktrace is:
java.lang.RuntimeException: Failed to Generate Wrapper Class
at
weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:183)
at
weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:171)
at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:248)
at weblogic.jdbc.pool.Driver.connect(Driver.java:164)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:507)
at weblogic.jdbc.jts.Driver.connect(Driver.java:139)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at jsp_servlet.__direct._jspService(direct.jsp:13)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:458)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:511)
at weblogic.jdbc.jts.Driver.connect(Driver.java:139)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at jsp_servlet.__direct._jspService(direct.jsp:13)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
What is going on at the place where this crashes? Is there a way find
out what class it really can't find?
Thanks,
Patrick -
Failed to Generate Wrapper Class exception while connecting to access database.
i tried to connect to access database in windows. i made a user dsn in windows
control panel and added this to the connection pool. after which i created a JDBC
datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
and url=jdbc:odbc:xyz
where xyz is the user dsn name pointing to the relevant access database file.
on testing this in the weblogic admin console it showed successful operation.
when i tried to use this connection pool in weblogic 8.1 workshop and tried
building a rowset control to check the connectivity it gave the following exception.
file attached.
any hints on how to get it working/ how to use access database with wl 8.1
workshop.
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
[DB-error.txt]ashok wrote:
i tried to connect to access database in windows. i made a user dsn in windows
control panel and added this to the connection pool. after which i created a JDBC
datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
and url=jdbc:odbc:xyz
where xyz is the user dsn name pointing to the relevant access database file.
on testing this in the weblogic admin console it showed successful operation.
when i tried to use this connection pool in weblogic 8.1 workshop and tried
building a rowset control to check the connectivity it gave the following exception.
file attached.
any hints on how to get it working/ how to use access database with wl 8.1
workshop.
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
Hi Askok. This exception usually means that the weblogic server's environment
doesn't have all it needs to make the jdbc connection you want. You should
ensure that the OS environment variable PATH has all the libraries you need
for making a jdbc-odbc connection, and that it's classpath also contains the
driver you want.
What DBMS are you connecting to? The reason I ask is because if there is a
pure JDBC driver for it, that will be preferable, because the jdbc-odbc bridge
from Sun is not threadsafe, so it can corrupt Weblogic.
Joe
>
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java:674)
at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:196)
at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1360)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1252)
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 com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:603)
at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:989)
at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:919)
at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:553)
at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:513)
at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:524)
at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:464)
at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:307)
at processes.Audit.insertAuditData(Audit.ctrl)
at processes.ExceptionHandler.auditInsertAuditData(ExceptionHandler.jpd:78) -
MySQL Data Source causes a "Failed to Generate Wrapper Class" error
Hi all, I've created a MySQL datasource but when I make it the source for a EJB
I get the error above. I think the error occurs during deployment, rather than
while building. It seems to be having problems with the Data Source URL but I've
checked the syntax and it all seems OK. When I use a WebLogic-supplied, PointBase
datasource the deployment works OK, so it must be the way I've configured/built
my datasource. Any areas I should check before I go further? I'm using 8.1 evaluation
version. Thanks in advance, Roy.Thanks Flip, I tried your suggestion but I still get the same error. One bizarre
thing is that if I use the"com/mysql/jdbc/Driver", I get a ClassDefinfitionNotFound
error when installing the connection pool, but no such problem if use the traditional
"org/gjt/mm/mysql/Driver". Using this I can at least create a data source but
the class wrapper error is still there. Any more suggestions, anyone?
"Flip" <[remove][email protected]> wrote:
You'll have to go looking for the POINTBASE_HOME, POINTBASE_TOOL and
POINTBASE_CLASSPATH. For me (running RH90), it's in my bea
/weblogic81/common/bin/commEnv.sh. After you comment out those lines,
you'll have to place your MySQL jar someplace. I'm not sure where's
the
recommended place (I've put mine into a /classes folder under my domains
before) and then somewhere reference explicitly the MySQL jar file in
the
classpath.
Then WLS will be able to find your MySQL drivers and your DS should fire
up
just great. Good luck.
"Stephen Felts" <[email protected]> wrote in message
news:[email protected]...
1. Try moving mysql.jar out of jre\lib\ext.
2. set PRE_CLASSPATH=directory\mysql.jar
This is used in startWLS.cmd (take a quick look).
"Roy Crosland" <[email protected]> wrote in message
news:[email protected]...
Thanks Stephen, but can you tell how I place the jar in the classpath?
At
the moment
I have the line: "set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL
>
_HOME%\server\lib\weblogic.jar;%JAVA_HOME%\jre\lib\ext\mysql.jar;%CLASSPATH%
in the startWLS.CMD file. Should I refer to the mysql.jar elsewhere?
and
is the
jar file itself in the correct directory?
"Stephen Felts" <[email protected]> wrote:
You need to have the mysql jar in the server classpath.
It needs to be before the Pointbase jar(s).
"Roy Crosland" <[email protected]> wrote in message
news:[email protected]...
Hi all, I've created a MySQL datasource but when I make it the
source
for
a EJB
I get the error above. I think the error occurs during deployment,rather
than
while building. It seems to be having problems with the Data SourceURL
but I've
checked the syntax and it all seems OK. When I use a
WebLogic-supplied,
PointBase
datasource the deployment works OK, so it must be the way I'veconfigured/built
my datasource. Any areas I should check before I go further?
I'm
using
8.1 evaluation
version. Thanks in advance, Roy. -
Compilation failed while generating stub classes using wscompile
I am new to Web Services. I am trying to generate client stub classes from WSDL (provided by Seapine's with TestTarckPro Software), using wscompile. I am using JWSDP 1.6
====================================================================================
Here's the wscompile command,
wscompile -gen:client -d classes2 -keep -s classes2 -verbose config.xml
=========================================================================
Here's config.xml file
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl
location="./ttsoapcgi.wsdl"
packageName="testtrack_interface"/>
</configuration>
=====================================================================================
I am getting following compilation errors during stub generation. Following is the compilation error part of wscompile result output
[SOAPObjectBuilderGenerator: writing object builder for: saveLink]
[SerializerRegistryGenerator: creating serializer registry: testtrack_interface.Ttsoapcgi_SerializerRegistry]
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:10: ';' expected
protected java.lang.String m-strFileName;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:11: ';' expected
protected java.lang.String m-strFixedRevision;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:12: ';' expected
protected java.util.Calendar m-dateFixedTimestamp;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:17: ')' expected
public CSCCFileRecord(long recordid, java.lang.String m-strFileName, java.lang.String m-strFixedRevision, java.util.
Calendar m-dateFixedTimestamp) {
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:47: ';' expected
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:29: ';' expected
private static final int myM-STRFILENAME_INDEX = 1;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:30: ';' expected
private static final int myM-STRFIXEDREVISION_INDEX = 2;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:31: ';' expected
private static final int myM-DATEFIXEDTIMESTAMP_INDEX = 3;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:71: not a statement
instance.setM-strFileName((java.lang.String)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:87: not a statement
instance.setM-strFixedRevision((java.lang.String)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:96: not a statement
instance.setM-dateFixedTimestamp((java.util.Calendar)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:18: ';' expected
private static final int myM-STRFILENAME_INDEX = 1;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:19: ';' expected
private static final int myM-STRFIXEDREVISION_INDEX = 2;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:20: ';' expected
private static final int myM-DATEFIXEDTIMESTAMP_INDEX = 3;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:29: '(' expected
public void setM-strFileName(java.lang.String mStrFileName) {
^
15 errors
error: compilation failed, errors should have been reported
==============================================================================
My understanding is, while generating stubs, dashes or hyphens in variable names m-strFileName, m-strFixedRevision, m-dateFixedTimestamp are interpreted as minus sign and hence compilation is failing.
I tried stub generation from same WSDL with Apache Axis and it's working fine. But stub generation is failing with JWSDP. Is this a problem with this WSDL file ? Am I missing something while using wscomplie command ?
Please advise.
Thanks
Here's ttsoapcgi.wsdl file
==================================================================
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ttsoapcgi"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:testtrack-interface"
xmlns:tns="urn:testtrack-interface"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn:testtrack-interface">
<types>
<schema targetNamespace="urn:testtrack-interface"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn:testtrack-interface"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<element name="CDatabase" type="ttns:CDatabase"/>
<complexType name="CDatabase">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDatabase">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDatabase" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDatabase[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDatabaseTable" type="ttns:CDatabaseTable"/>
<complexType name="CDatabaseTable">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDatabaseTable">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDatabaseTable" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDatabaseTable[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CTableField" type="ttns:CTableField"/>
<complexType name="CTableField">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCTableField">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CTableField" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CTableField[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFieldValue" type="ttns:CFieldValue"/>
<complexType name="CFieldValue">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFieldValue">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFieldValue" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFieldValue[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CTableColumn" type="ttns:CTableColumn"/>
<complexType name="CTableColumn">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCTableColumn">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CTableColumn" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CTableColumn[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFilter" type="ttns:CFilter"/>
<complexType name="CFilter">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFilter">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFilter" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFilter[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordData" type="ttns:CRecordData"/>
<complexType name="CRecordData">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCRecordData">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CRecordData" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CRecordData[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordRowSoap" type="ttns:CRecordRowSoap"/>
<complexType name="CRecordRowSoap">
<sequence>
<element name="row" type="ttns:ArrayOfCRecordData" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCRecordRowSoap">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CRecordRowSoap" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CRecordRowSoap[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordListSoap" type="ttns:CRecordListSoap"/>
<complexType name="CRecordListSoap">
<sequence>
<element name="columnlist" type="ttns:ArrayOfCTableColumn" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="records" type="ttns:ArrayOfCRecordRowSoap" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<element name="CItemWithDBRecordId" type="ttns:CItemWithDBRecordId"/>
<complexType name="CItemWithDBRecordId">
<sequence>
<element name="recordid" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<element name="CItemToTrack" type="ttns:CItemToTrack"/>
<complexType name="CItemToTrack">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="COrderedItemWithDBRecordId" type="ttns:COrderedItemWithDBRecordId"/>
<complexType name="COrderedItemWithDBRecordId">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="order" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSystemBase" type="ttns:CSystemBase"/>
<complexType name="CSystemBase">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="systemname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSystem" type="ttns:CSystem"/>
<complexType name="CSystem">
<complexContent>
<extension base="ttns:CSystemBase">
<sequence>
<element name="location" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="computermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="computerbrand" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="cputype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="cpuspeed" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="harddisktype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="harddisksize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="ramsize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="romsize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="osname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="osversion" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="videoname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hascdrom" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="cdrommodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasscanner" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="scannermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasmodem" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="modemmodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasprinter" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="printermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="otherhardware" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasmultiplemonitors" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSCCFileRecord" type="ttns:CSCCFileRecord"/>
<complexType name="CSCCFileRecord">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="m-strFileName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strFixedRevision" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-dateFixedTimestamp" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCSCCFileRecord">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CSCCFileRecord" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CSCCFileRecord[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFileAttachment" type="ttns:CFileAttachment"/>
<complexType name="CFileAttachment">
<sequence>
<element name="m-pFileData" type="xsd:base64Binary" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strFileName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strArchiveName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFileAttachment">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFileAttachment" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFileAttachment[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CReportedByRecord" type="ttns:CReportedByRecord"/>
<complexType name="CReportedByRecord">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="foundby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datefound" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="contactinfo" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="foundinversion" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reproduced" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reproducedsteps" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="standardtestconfig" type="ttns:CSystem" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="otherhardwaresoftware" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="testconfigtype" type="xsd:short" minOccurs="1" maxOccurs="1"/>
<element name="attachmentlist" type="ttns:ArrayOfCFileAttachment" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="showorder" type="xsd:short" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCReportedByRecord">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CReportedByRecord" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CReportedByRecord[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CField" type="ttns:CField"/>
<complexType name="CField">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CStringField" type="ttns:CStringField"/>
<complexType name="CStringField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CIntegerField" type="ttns:CIntegerField"/>
<complexType name="CIntegerField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDecimalField" type="ttns:CDecimalField"/>
<complexType name="CDecimalField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:double" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CBooleanField" type="ttns:CBooleanField"/>
<complexType name="CBooleanField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDateField" type="ttns:CDateField"/>
<complexType name="CDateField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDateTimeField" type="ttns:CDateTimeField"/>
<complexType name="CDateTimeField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDropdownField" type="ttns:CDropdownField"/>
<complexType name="CDropdownField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dropdownValues" type="ttns:ArrayOfCFieldValue" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CVersionField" type="ttns:CVersionField"/>
<complexType name="CVersionField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCField">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CField" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CField[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOfstring">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefectEvent" type="ttns:CDefectEvent"/>
<complexType name="CDefectEvent">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="user" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="date" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="notes" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="eventaddorder" type="xsd:short" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="parenteventid" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<element name="attachmentlist" type="ttns:ArrayOfCFileAttachment" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="fieldlist" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="resultingstate" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hours" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="assigntolist" type="ttns:ArrayOfstring" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCDefectEvent">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDefectEvent" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDefectEvent[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefectEventDefinition" type="ttns:CDefectEventDefinition"/>
<complexType name="CDefectEventDefinition">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="user" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="datetime" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="notes" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="resultingState" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="resultingStateValues" type="ttns:ArrayOfCFieldValue" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="fileattachments" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeTracking" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeSumOfAll" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeHoursSinceLast" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="newAssignment" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="releaseNotes" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="customFields" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDefectEventDefinition">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDefectEventDefinition" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDefectEventDefinition[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefect" type="ttns:CDefect"/>
<complexType name="CDefect">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="defectnumber" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<element name="summary" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="state" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="disposition" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="type" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="priority" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="product" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="component" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reference" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="severity" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="enteredby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dateentered" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="locationaddedfrom" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datetimecreated" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datetimemodified" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="createdbyuser" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="modifiedbyuser" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="actualhourstofix" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="reportedbylist" type="ttns:ArrayOfCReportedByRecord" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="eventlist" type="ttns:ArrayOfCDefectEvent" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="pSCCFileList" type="ttns:ArrayOfCSCCFileRecord" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="customFieldList" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CTask" type="ttns:CTask"/>
<complexType name="CTask">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="status" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="priority" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="summary" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="description" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datedue" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dateassigned" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="versiondue" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assignedto" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assignedby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assigneddefect" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="PhoneNumber" type="ttns:PhoneNumber"/>
<complexType name="PhoneNumber">
<sequence>
<element name="numbertype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="phonenumber" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<element name="CUser" type="ttns:CUser"/>
<complexType name="CUser">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="firstname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="lastname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="usergroupname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="company" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="emailtype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="emailaddress" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="isactive" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="iscustomer" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="isglobal" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="isactiveglobal" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="userLicense" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="password" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="loginname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="phoneone" type="ttns:PhoneNumber" minOccurs="1" maxOccurs="1"/>
<element name="phonetwo" type="ttns:PhoneNumber" mDeepank-
When generating forms from Designer, Designer attaches libraries - like ofgmes.pll, ofgnavl.pll, etc. You will need to copy these libraries to the same directory where your forms reside on your Linux box. To find out what libraries ate attached to your form, open it on your windows PC after generating it from Designer and you will see the attached libraries. Also, watch out for the case-sensitivity of Linux. If you have the Designer libraries on your linux box and you still get errors, try changing the case of the names of the libraries.
Hope this helps,
Dan -
What exactly is a wrapper class?
In so far as Integer, Byte, Double et al. are concerned I understand that those wrapper classes are a way to handle primitive types as objects. But I've come across references to wrapper classes in documentation and other technical articles and I don't think I really understand what they are really used for. Why do you need a wrapper class for an object?
Could someone shed me some light on this issue?
Thanks,
JohnAn instance of a wrapper class holds a pointer to and instance of some other class or interface and provides access to it, typically supplying methods equivalent to all the methods of the underlying type.
The basic wrapper class a functional replacement for the underlying object.
When you're passed an object from some code outside your control you often don't know what exact class it is, or have access to it's class definition.
A wrapper object allows you to modify the functionality of such an object. You can extend the wrapper class, for example, adding extra methods. Or you can modify the methods, for example to provide logging of calls made.
As a concrete example, I have a wrapper class LoggedConnection which wraps a java.sql.Connection object. It also implements java.sql.Connection. If you ask a LoggedConnection for a Statement or PreparedStatement it fetches the appropriate object and returns a wrapped version which logs the SQL and the execution times etc..
My "get me a connection" routine can return either a raw Connection or a LoggedConnection according to whether a SQL log file is provided.
The main program doesn't need to know if it's using a genuine Connection object or the wrapped version.
Part of the definition would look like:
public class LoggedConnection implements Connection {
private Connection wrappee;
public LoggedConnection(Connection con) {
wrapee = con;
public createStatement() throws SQLExeception {
return new LoggedStatement(wrappee.createStatement())
}(Of course this was tedious to write by hand because Connection has so many methods, all of which the wrapper must implement. Later I wrote a java program to generate Wrapper classes). -
"Failed to find generated POATie class" when narrowing to DataManager
Dear all, I'm developing some custom stuff starting from Adobe samples but got really stuck with a number of problems.
Passed the one mentioned in c4837.pdf, when I try to
DataManager dataManager = DataManagerHelper.narrow(
(org.omg.CORBA.Object)connectionFactory.getConnection()
now I get the following exception (both in my code and using the unmodified samples from Adobe):
java.lang.IllegalStateException: Failed to find generated POATie class. Make sure that right idlj options are used. at com.adobe.CORBA.ServantBasePeerImpl.getTie(ServantBasePeerImpl.java:181) at com.adobe.CORBA.ServantBasePeerImpl.activate(ServantBasePeerImpl.java:99) at com.adobe.CORBA.ServantBase.activateWithOwner(ServantBase.java:57) at com.adobe.service.ResourcePeer.connect(ResourcePeer.java:87) at com.adobe.service.Resource.connect(Resource.java:80) at com.adobe.service.DataManagerImpl.(DataManagerImpl.java:65) at com.adobe.service.DataManagerManagedConnection.allocateConnection(DataManagerManagedConne ction.java:34) at com.adobe.service.ConnectionResource.getConnection(ConnectionResource.java:39) at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactor yManagerPeerImpl.java:108) at com.adobe.livecycle.samples.forms.Ubi_cfor_01.renderX.uc_enable_pdf(renderX.java:205) at com.adobe.livecycle.samples.forms.Ubi_cfor_01.renderX.doGet(renderX.java:368)
NY
BADLY NEEDED HELP???I add some log lines that appear just a bit before the ones already posted, maybe they indicate the root cause for this:
09:37:38,193 INFO [STDOUT] Problem with system rootjavax.naming.NameNotFoundException: com.adobe.idp.config.PreferencesSPIHome not bound
09:37:38,194 INFO [STDOUT] javax.naming.NameNotFoundException: com.adobe.idp.config.PreferencesSPIHome not bound
09:37:38,195 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
09:37:38,195 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
09:37:38,196 INFO [STDOUT] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
09:37:38,196 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
09:37:38,196 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
09:37:38,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
09:37:38,197 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)
09:37:38,197 INFO [STDOUT] at com.adobe.idp.config.EJBUtil.getPreferencesSPIHome(EJBUtil.java:140)
09:37:38,198 INFO [STDOUT] at com.adobe.idp.config.AdobePreferenceFactory.systemRoot(AdobePreferenceFactory.java:120)
09:37:38,198 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.dbInitPreferences(FormServerConfigImpl.ja va:555)
09:37:38,198 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.dbGetProperties(FormServerConfigImpl.java :571)
09:37:38,199 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.getOptionsString(FormServerConfigImpl.jav a:476)
09:37:38,199 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigPOATie.getOptionsString(FormServerConfigPOATie .java:199)
09:37:38,200 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigPOA._invoke(FormServerConfigPOA.java:344)
09:37:38,200 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
09:37:38,200 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.process(Unknown Source)
09:37:38,201 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.run(Unknown Source) -
How to see the wrapper classes generated for CMP 2.1 in jdeveloper10g
I have developed CMP entity bean (2.1) using jdeveloper wizard. I want to see the wrapper class generated for the bean. How can I do that in jdeveloper 10g.
No you got me wrong. I wan't to see the actual implementated classes (extended from the generated bean) by the container. ie the ones that actually run in the container.
rgds,
Jatin -
Failed to generate classes for home
Using RMI we successfully connected Oracle OC4j 9.0.3 EJB to WL7.0 EJB but since
our upgrade we are getting the following
Any Ideas
Cheers
Bruce
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
class for com.towertechnology.wc.sis.ejb.lette
rurl.LetterURL_aleqcw_HomeImpl_811_WLStub ]
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:662)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:651)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:59)
at weblogic.common.internal.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:249)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:134)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectStreamClass.invokeMethod(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:140)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:91)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:161)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:264)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at com.workcover.proc.SeraphApplication.getHome(SeraphApplication.java:144)
at com.workcover.proc.SeraphApplication.call(SeraphApplication.java:85)
at com.workcover.proc.SeraphApplication.call(SeraphApplication.java:77)
at com.workcover.proc.RMIProxyBean.call(RMIProxyBean.java:56)
at RMIProxy_StatelessSessionBeanWrapper24.call(RMIProxy_StatelessSessionBeanWrapper24.java:117)
at com.workcover.proc.HttpCallProxy.invokeEJB(HttpCallProxy.java:129)
at com.workcover.proc.HttpCallProxy.doPost(HttpCallProxy.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Unknown Source)Anyone have an answer for this problem? I'm getting it with 7.0 SP3. Not helpful that WLS doesn't not give any reason why it fails.
-
Hi,
I am moving an legacy application which consist of EJB 2.0 from Weblogic 9 to weblogic 10.3.4 and I am facing following problem:
Caused by: java.lang.AssertionError: Failed to generate class for com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74)
at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:267)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:199)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:100)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_HomeImpl_1034_WLStub.create(Unknown Source)
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:597)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.callCreateMethod(ServiceLocatorImp.java:246)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getBean(ServiceLocatorImp.java:211)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.doReinitializeDelegate(RemoteInvocationHandler.java:155)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:357)
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:795)
... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.ensureInitialized(Unknown Source)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.<init>(Unknown Source)
... 42 more
When I run appc at compile time I am getting the reported error. What strang is that if I disable appc at compile time, weblogic performs appc on the fly and all works fine. The same error I get even when I do run appc externaly to final ear.
Can someone please assist to troubleshoot that?
Thanks
Edited by: user13047709 on Dec 12, 2012 2:26 AMHi,
the full stack trace follows:
2012-12-11 13:54:53,411 ERROR [MSR !f6251134-4a63-49f9-9366-ee1713fa9bbb,f6251134-4a63-49f9-9366-ee1713fa9bbb,2370dbe6-f974-426d-8191-459f9cbd233a,JSP,JSKY,SKY,1,3! ] msengine.MSEngineBean - JSKY SKY error
com.sky.jak.marketstructure.universe.UniverseRetrieverException: [Market Structure Exception] Market Structure Wrapped Exception cause: Throwable thrown within Portfolio: 6
at com.sky.jak.marketstructure.universe.UniverseRetriever.getPortfolioUniverse(UniverseRetriever.java:638)
at com.sky.jak.marketstructure.report.StatsFieldCalculator.loadData(StatsFieldCalculator.java:162)
at com.sky.jak.marketstructure.report.UniverseFieldCalculator$CalcThread.run(UniverseFieldCalculator.java:167)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at com.sky.jak.common.concurrent.ExecutorFacade$1.call(ExecutorFacade.java:127)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sky.jak.common.servicelocator.ServiceLocatorException: com.sky.jak.portfolio.exception.PortfolioThrowableWrapperException: 6
at com.sky.jak.common.servicelocator.ServiceLocator.getPortfolioRetriever(ServiceLocator.java:769)
at com.sky.jak.marketstructure.universe.UniverseRetriever.getPortfolioUniverse(UniverseRetriever.java:584)
... 9 more
Caused by: com.sky.jak.portfolio.exception.PortfolioThrowableWrapperException: 6
at com.sky.jak.common.proxy.PointExceptionFactory.getDefaultCheckedException(PointExceptionFactory.java:195)
at com.sky.jak.common.proxy.PointExceptionFactory.getCheckedException(PointExceptionFactory.java:100)
at com.sky.jak.common.proxy.RecoverableOperationState.throwThrowable(RecoverableOperationState.java:349)
at com.sky.jak.common.proxy.RecoverableOperationState.throwThrowable(RecoverableOperationState.java:339)
at com.sky.jak.common.proxy.RecoverableOperationState.getEntry(RecoverableOperationState.java:277)
at com.sky.jak.common.proxy.RecoverableOperationState.processThrowable(RecoverableOperationState.java:175)
at com.sky.jak.common.proxy.RecoverableOperationState.processThrowableAndThrowIfMaxReached(RecoverableOperationState.java:132)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:380)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.<init>(RemoteInvocationHandler.java:59)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getLocatableService(ServiceLocatorImp.java:134)
at com.sky.jak.common.servicelocator.ServiceLocator.getPortfolioRetriever(ServiceLocator.java:765)
... 10 more
Caused by: java.lang.AssertionError: Failed to generate class for com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74)
at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:267)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:199)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:100)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_HomeImpl_1034_WLStub.create(Unknown Source)
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:597)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.callCreateMethod(ServiceLocatorImp.java:246)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getBean(ServiceLocatorImp.java:211)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.doReinitializeDelegate(RemoteInvocationHandler.java:155)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:357)
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:795)
... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.ensureInitialized(Unknown Source)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.<init>(Unknown Source)
... 42 more
Ant appc targed follows:
<target name="appc" unless="skip-appc">
<property name="appc.target" value="${svc.jar.name}.ear"/>
<echo message="${toString:wl.class.path}"/>
<mkdir dir="${appc.dir}"/>
<java classname="weblogic.appc" dir="${dist.dir}" fork="true" failonerror="true">
<jvmarg value="-Djava.io.tmpdir=${appc.dir}"/>
<arg line="-verbose"/>
<classpath>
<path refid="wl.class.path"/>
</classpath>
<arg value="${appc.target}"/>
</java>
<delete dir="${appc.dir}"/>
</target>
While running ant JAVA_HOME is set to JDK 1.6, wl.class.path is pointing to weblogic 10.3.4 libraries. Now I am just thinking of that ear is compiled by JDK 1.6 with target specified to 1.5. Do I somehow specify the same option for appc ? -
Apt ant task suceeded but did not generate wrapper java/classes
Hi,
This is the first time I use apt task. Could someone help me out here.
Thanks.
Ant build suceeded but did not generate wrapper java/classes. Warning message I got is
[apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
[apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
[apt] warning: Annotation types without processors: [javax.jws.WebService]
[apt] [total 725ms]
[apt] 3 warnings
I turned on verbose="true" and cut the command line apt -d .. -s ..
from the ant build output.
I executed that command line. Command suceeded, java/classes generated correctly. No warning
<target name="run_apt" depends = "build_config_classes">
<apt
debug="true"
verbose="true"
destdir="${build_classes}"
sourcedestdir="${apt.generated.dir}"
sourcepath="${config.src}">
<classpath refid="apt.classpath"/>
<source dir="${config.src}">
<include name="${config.pkg}/Configuration.java"/>
</source>
</apt>
</target>try adding fork=true to apt task
-
Errors generating Java classes from XML schema
I received the following errors when generating Java classes from the schema located at: http://imsproject.org/xsd/ims_qti_rootv1p1.xsd and http://imsproject.org/xsd/ims_xml.xsd
XML Spy v4 claims that the schema is well-formed and valid. Could this be a problem with the class generators, or is XML Spy not telling the truth?
Thanks.
D:\IMS_QTI\Java>java -classpath .;lib/xmlparserv2.jar;lib/xschema.jar;lib/classgen.jar oracle.xml.classgen.oracg -schema ims_qti_rootv1p1.xs
d -outputDir src\com\icld\qti -package com.icld.qti -comment
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 235, Column 21>: XSD-2209: (Error) Duplicated definition for: 'attr.view'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 303, Column 21>: XSD-2209: (Error) Duplicated definition for: 'grp.labels'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -12236>: XSD-2209: (Error) Duplicated definition for: 'qtimetadatafield'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -9642>: XSD-2209: (Error) Duplicated definition for: 'typeofsolutionType'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 2252, Column -3019>: XSD-2026: (Error) Invalid attribute 'use' in element 'attribute'
Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Duplicated definition for: 'attr.view'<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
Which version are you using? I can't reproduce the error with 9.0.2B version.<HR></BLOCKQUOTE>
Thanks for having a look at the problem. I am using the 9.0.2.0B version with Java 2 Standard Edition Build 1.3.1-b24. The classgen -version option returns 9.0.2.0b-beta - and xmlparserv2.jar and xschema.jar are from the same distribution. Running the corresponding DTD from the same source work fine - I'm just havinf this problem with the XSD. Anything else I should look at? -
I followed the example to generate the HelloWorld jaxrpc example. xrpcc failed to generate a wsdl document. No clues were given as to why.
I am also trying to invoke the HelloWorld service from Microsoft .Net. Is there any sample code available?
Any help would be appreciated.in generating a .net client your life becomes a lot easier, just point the wsdl executable at the .wsdl file and you're done. all you have to do is plug the generated class into your application. it's so much easier than the recent java implementations - it's embarrasing
-
How to omit xmlns from generated Java classes
Hi,
I'm using JAXB and xjc to generate Java classes from xsd fils. I've noticed that when marshalling these Java classes to XML string, there are few xmlns attributes that (as far as I concern :-))
"waste" space on the generated xml (space is critical resource in our application). Is there a way to order the Marashaller to omit these xmlns attributes from the generated files?
I tried to edit the generated xml string. I removed the xmlns attributes, but unmarshall it back to Java objects failed...
Thanks for any help,
Barak.If the xmlns is specified in the xsd, it is also required in the xml. If you do not want it, however you can remove it from your xsd and then generate your xml
-
The command oracg fails to generate Java source files
I tried to use the command 'oracg -schema Openshipments.xdr' to generate Java source files from
XML schema file Openshipments.xdr . Although the schema file is valid, the command oracg fails with following error messages :
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2026: (Error) Invalid attribute 'name' in element 'element'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2030: (Error) Element 'schema' has invalid namespace:
'urn:schemas-microsoft-com:xml-data'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in
'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in
'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
...... the above line is repeated many times
Error: Schema Class Generator failed to generate classes.
oracle.xml.parser.schema.XSDException: Invalid attribute 'name' in
element 'element'Your schema is not a valid XML Schema. Please check up with the syntax.
Thanks.
Maybe you are looking for
-
Error in BPM with multimapping.
Hi, I've got next error in a transfromation step of bpm with multimapping : <?xml version="1.0" encoding="utf-8" ?> - <MappingTrace> <Trace level="1" type="T">Mapping http://www.miquello.com/C3900 IM_I3934_REPLICA_BBY , Software Component Versio
-
The format of tiff appears as application/1 in Webcenter Content Server
Hi All I am using Webcenter Distributed Document Capture to commit documents in Oracle UCM. The document is successfully send and committed in UCM, but when i search for it and try to view the document(a tiff image), it's not viewable.Instead of show
-
Running total + Blackout Days
I am looking for help with a couple of things, but first and most important is getting a Flex based form to SUM the fields. I am new to Flex, and want/hope to be able to create a form that has various values in ComboBoxes, Text Input fields, NumStep
-
Problem with HttpsURLConnection - classcastexception
i declared url connection from java.net pakage thru weblogic server when i am trying to execute following servlet import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.net.URL; public class SimpleServlet extends HttpServl
-
Hi Team I am having problm with Crystal Report for Visual Studio 2013. I have developed windows application with Crystal Report and Visual Studio 2010. Now when i try to run same code in VS 2013 with Crystal report for VS 2013. i am getting following