BC4J ServerModul in JBoss 3.2.3 throws a ClassCastException in SwingClient
Hi Everyone,
in the last days i start crying very often, because i think i make a simple mistake with a hugh result -> nothing works ;(
Whats going wrong?
I deployed my BC4J ApplicationModule in JBoss, without any problems.
But when i try to access my ApplicationModule from a SwingClient i get headache. I did it like the HowTos explained. okay they are a bit out of date but it seems
that there are no points, where i could do something really wrong.
So i copied all libs and created a sample client explained in: http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_jboss.html
And here is the problem:
The first problem i found is, that i can not lookup the
ApplicationModul via: ctx.lookup("de.orb.server.ServerModule")
This always results in a exception saying that this JNDI Name is not bound... okay.. i changed it to the EJB Name provided by JBoss: ctx.lookup("ServerModuleBMBean") and the Bean is found. Everything is fine.
When i try to access a ViewObject i got a reference which is looking fine, BUT doing operations on this reference always result in a very strange ClassCastException;
oracle.jbo.common.JboExMsgCarrier: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrappedPreparedStatement
void oracle.jbo.common.PiggybackExceptionEntry.readObject(java.io.ObjectInputStream)
PiggybackExceptionEntry.java:135
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
native code
boolean java.io.ObjectInputStream.invokeObjectReader(java.lang.Object)
ObjectInputStream.java:2214
int java.io.ObjectInputStream.inputObject(boolean)
ObjectInputStream.java:1411
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
ObjectInputStream.java:386
java.lang.Object java.io.ObjectInputStream.readObject()
ObjectInputStream.java:236
void oracle.jbo.common.PiggybackInput.<init>(oracle.jbo.common.ObjectMarshaller, byte[])
PiggybackInput.java:63
void oracle.jbo.common.PiggybackInput.<init>(byte[])
PiggybackInput.java:38
void oracle.jbo.client.remote.ejb.RootApplicationModuleImpl.processRemoteJboException(oracle.jbo.common.remote.ejb.RemoteJboException)
RootApplicationModuleImpl.java:2925
oracle.svcmsg.ServiceMessage oracle.jbo.client.remote.ejb.RootApplicationModuleImpl.riExecuteQuery(int, boolean, oracle.svcmsg.ServiceMessage)
RootApplicationModuleImpl.java:735
oracle.svcmsg.ServiceMessage oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.riExecuteQuery(int, boolean, oracle.svcmsg.ServiceMessage)
EJBApplicationModuleImpl.java:314
void oracle.jbo.client.remote.ApplicationModuleImpl.executeQuery(int, boolean)
ApplicationModuleImpl.java:5982
void oracle.jbo.client.remote.RowSetImpl.executeQuery()
RowSetImpl.java:950
void oracle.jbo.client.remote.ViewUsageImpl.executeQuery()
ViewUsageImpl.java:556
other Operations like:
System.err.println( vo.getApplicationModule().getName() );
System.err.println( vo.getName() );
System.err.println( vo.getFullName() );
System.err.println( vo.getQuery() );
System.err.println( ""+vo );
are working fine....
Please can anyone help me to solve this very strange problem. I need some advice, because i do not know what
happen et al.
I do not need to know how BC4J works with JSP Pages, i need to know how i can get it working with my SwingApplication and JBoss.
Regards Mirko
PS: Happy Easter!
i am using:
Jboss 3.2.3
Oracle 8i Database
JDeveloper 9.0.3.1035
I passed through this problem by adding the following property to the hashtable used to create InitialContext
env.put
(oracle.jbo.common.PropertyConstants.PN_SQLBUILDERIMPL,
oracle.jbo.common.PropertyConstants.SQL92);
Context ctx = new InitialContext(env);
Best regards,
Eduardo.
Similar Messages
-
BC4J deploy in JBoss 3.0.3
While trying to deploy a BC4J app in JBoss 3.0.3, the
following Exception was raised:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement
All the steps listed in OTN's articles were done:
http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j903_to_jboss303.html
http://otn.oracle.com/products/jdev/howtos/bc4j/ejbstateless_with_bc4j.html
Trying to access AppModule without de Stateless EJB Session as a client, the Exception was:
java.lang.IllegalStateException: No security context set.
Has anyone seen something like that?What version of BC4J do you use? If it is 9.0.4, you have to add more libraries to Jboss.
-
CachedRowSet.getDate(int i) throws a ClassCastException
HI,
We are using using the CachedRowSet.getDate(int i) to get a DATE field, but this throws a ClassCastException - java.sql.Timestamp
The app server is Weblogic on RedHatLinux 7.1. and we are using the thin driver - classes12.zip
Can you give us any pointers as to what could be happening??Hi Cyril,
Can you give us any pointers as to what could be
happening?? Yes I can. But in order to do that (accurately), I need to know what version of "classes12.zip" and Oracle database you are using.
(I'm sorry but I couldn't find those details in your post.)
I'll assume you are using the latest version(s).
Basically, it all comes down to how Oracle's JDBC driver (and database) map database data-types (like NUMBER, VARCHAR2 and DATE) to java classes. Fortunately these mappings are documented in the Oracle <insert version here> JDBC Developer's Guide and Reference
(Note that this link goes to the guide for the latest version of Oracle.)
Good Luck,
Avi. -
Hello,
Using the ADF Runtime Installer for JBoss found in JDeveloper 10.1.3.0.4, i've received deployment error during startup of JBoss. The error message as displayed in the console window as follows:
09:29:16,325 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@89f00429 { url=file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear }
deployer: org.jboss.deployment.EARDeployer@3a835d
status: Deployment FAILED reason: Could not create deployment: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp65518bc4j.ear-contents/webapp.war; - nested throwable: (org.jboss.ws.WSException: java.lang.ClassNot
FoundException: oracle.jbo.server.emd.EMDServlet)
state: FAILED
watch: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear
altDD: null
lastDeployed: 1146014956309
lastModified: 1146014950147
mbeans:Above it there is a lot more lines of stack trace, tell me if you need it to help me with this problem. The file structure deployed is as follows (Based on the log displayed in JDeveloper):
In deploy directory
bc4j.ear
In jlib directory
bc4jdomgnrc.jar
In lib directory
adf-connections.jar
adfbinding.jar
adfcm.jar
adfm.jar
adfmtl.jar
adfmweb.jar
adfshare.jar
adfui.jar
antlr.jar
bc4jct.jar
bc4jctejb.jar
bc4jdomgnrc.jar
bc4jdomorcl.jar
bc4jhtml.jar
bc4jimdomains.jar
bc4jmt.jar
bc4jmtejb.jar
cache.jar
collections.jar
commons-cli-1.0.jar
commons-el.jar
concurrent.jar
datatags.jar
dc-adapters.jar
dms.jar
http_client.jar
jazncore.jar
jdev-cm.jar
jsp-el-api.jar
mdds.jar
mdsrt.jar
ojdbc14.jar
ojdbc14dms.jar
ojdl.jar
ojpse.jar
oracle-el.jar
oraclepki.jar
orajaxr.jar
orasaaj.jar
orawsdl.jar
orawsrm.jar
ordhttp.jar
ordim.jar
osdt_cert.jar
osdt_core.jar
osdt_saml.jar
osdt_wss.jar
osdt_xmlsec.jar
regexp.jar
runtime12.jar
share.jar
toplink.jar
translator.jar
wsclient.jar
wsdl.jar
wssecurity.jar
xml.jar
xmlef.jar
xmlparserv2.jar
xsdlib.jar
xsqlserializers.jar
xsu12.jar
And another thing, is there any way to have the ADF Runtime Installer install the ADF Runtime into another JBoss config directory. As far as I noticed, it will only install into the JBoss default config directory.
TQ in advance.Hi Cleber,
Is it possible that you can send me a copy of your original 10.1.2 project which contains these diagrams so that I can take a look? The diagrams should open fine in 10.1.3.0.4.
My email address is [email protected], if you could zip up your project and then change the .zip file extension to .zap to get it through the email server.
Regards,
Lisa
JDev QA -
How to configure bc4j.xcfg ConnectionDefinition to JBoss 3.2.3?
Hi,
we have the following scenario here: a JClient for BC4J goes via Web Start
and tries to communicate back to the AppModule deployed in JBoss 3.2.3 as
Session Bean (BMT).
We are using JDev 9.0.4.
How can we configure the element <ConnectionDefinition> in common\bc4j.xcfg
file in order to lookup the AppModule at JBoss?
We were able to set up this scenario working in OC4J, but we are in trouble
with JBoss.
How can we change the following connection so it points to a JBoss app server?
<ConnectionDefinition name="MyConnection">
<ENTRY name="URL" value="ormi://myserver/"/>
<ENTRY name="ConnectionName" value="MyConnection"/>
<ENTRY name="user" value="admin"/>
<ENTRY name="ConnectionType" value="OC4J"/>
<ENTRY name="password">
<![CDATA[{904}05E438994FF93]]>
</ENTRY>
<ENTRY name="JNDI_INITIAL_CONTEXT_FACTORY" value="com.evermind.server.rmi.RMIInitialContextFactory"/>
<ENTRY name="DeployPassword" value="true"/>
<ENTRY name="TARGET_NODE" value="http-web-site"/>
<ENTRY name="DeployPassword" value="true"/>
</ConnectionDefinition>
Maybe it should look like this?
<ConnectionDefinition name="MyConnection">
<ENTRY name="URL" value="jnp://myserver:1099"/>
<ENTRY name="ConnectionName" value="MyConnection"/>
<ENTRY name="ConnectionType" value="JBoss"/>
<ENTRY name="JNDI_INITIAL_CONTEXT_FACTORY" value="org.jnp.interfaces.NamingContextFactory"/>
<ENTRY name="JNDI_URL_PKG_PREFIXES" value="org.jboss.naming:org.jnp.interfaces"/>
</ConnectionDefinition>
Hope somebody can help us.
Eduardo.Frank,
the reason we didn't deployed BC4J as a Web application is we weren't given options. Our contractor wanted a 3-tier application with rich client (JClient/Swing), an load-balanced application server and a legacy database at back end.
The problem with the article "How Do I Deploy BC4J Applications to JBoss?" is that it doesn't mention how to configure common\bc4j.xcfg in order to connect with JBoss app server.
The connection with the data source is ok.
But how come the client would be able to lookup Remote Home interfaces through JNDI without knowing the protocol, host, port number and initial context properties specific to JBoss?
Thanks,
Eduardo. -
Is there any add-on available that enable us to deploy our BC4J application on JBoss as we can do so on OIAS ans WebLogic ????
Well.. I have tried many times to develop a simple BC4J application deployed on JBoss but still no success, every time a different error occurs and, after asking on the form, a different reply comes from JDev team.
I followed instructions on HOW-TO page and created application test client. It gives the following output when I run client:
class oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl (output from the line: System.out.println( am.getClass() ); )
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=org.jboss.pool.jdbc.PreparedStatementInPool
## Detail 0 ##
java.lang.ClassCastException: org.jboss.pool.jdbc.PreparedStatementInPool
Process exited with exit code 0. Under the 1st section, creating a BC4J project:
Our BC4J Project will be created on the DEPT table in the SCOTT sample schema which is part of the Oracle database.
On Step 1 of the Business Components Project Wizard, change the SQL Flavor toSQL92 and the Type Map to Java. This is required since we will be using the JBoss emulated XA DataSource implementation when our BC4J Application is deployed as an EJB Session Bean.
You need to change the SQL Flavor to SQL92, otherwise BC4J will cast to Oracle JDBC classes.
Hope this helps,
Rob -
Configration File for JBoss ??
In the section "BC4J as an EJB Session Bean" of "How Do I Deploy BC4J Applications to JBoss?" a BC4J Configuration file has been created for JBoss by modifying the IAS configuration file.
But the dear fellow, who wrote the Article did not mention that what is the use of this configuration file ??Hi Muhammad,
With a standalone java client you can use the configuration in association with oracle.jbo.client.Configuration class to create your Application module. See javadoc for
public static ApplicationModule createRootApplicationModule(...)
public static void releaseRootApplicationModule(...)
With a JClient application, you will use the Configuration name in creating the JClient Data Model. When creating a JClient Data Model using the wizard, you are prompted for the Application Module name and the Configuration to use. If you specify the 'JBoss' Configuration, then the JClient Form will make use of the Application module deployed to JBoss.
In the section "BC4J as an EJB Session Bean" of "How Do I Deploy BC4J >Applications to JBoss?" a BC4J Configuration file has been created for JBoss by ??>modifying the IAS configuration file.As I mentioned in my question that I am not talking about JSP based application Iam talking about the stand alone application and JClient based applicaiton. How can we use the configuration in this scenario ?
Thanx -
No support for JBoss 4 in NetBeans 6?
Hi everybody,
I switched from Eclipse to NetBeans and i have to use JBoss 3.2.4. I can setup different application server and JBoss as well, but only from version 4.
Tools > Servers > Add Server > "Select Home-Directory from Jboss 3.2.4" throws this alert: "Provide a valid JBoss Application Server 4 or 5 Installation Location".
On the NetBeans Website I didn't find anything about this support.
Can someone tell me if thats just a config problem and/or how I can resolve this?
ChrisYeah, i'm having the same issue here. I insyalled my server in the following location:
/opt/jboss/jboss-4.2.3.GA/
I can start and shutdown the server from the command line, but can't add the server to Netbeans 6.1 IDE. Where is the installation directory for the JBOSS installation supposed to be?
Darel -
Can't deploy TopLink JPA on JBoss 5.1
Greetings,
I'm migrating from Hibernate to TopLink on JBoss 5.1. My new persistence.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="m2o-jar">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<jta-data-source>java:/TestDS</jta-data-source>
<properties>
<property name="toplink.weaving" value="false" />
<property name="toplink.target-database" value="MySQL" />
<property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver" />
<property name="toplink.external.transaction.controller.class.name" value="oracle.toplink.essentials.transaction.jboss.JbossTransactionController"/>
<property name="toplink.ddl-generation" value="drop-and-create-tables" />
<property name="toplink.logging.level" value="FINEST" />
<property name="toplink.show_sql" value="true" />
</properties>
</persistence-unit>
</persistence>
While deploying on JBoss 5.1 I have the following:
19:39:46,800 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@650761918{vfsfile:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/}
19:39:46,800 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@650761918{vfsfile:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/}
19:39:46,939 INFO [JBossASKernel] Created KernelDeployment for: m2o-ejb.jar
19:39:46,939 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3
19:39:46,939 INFO [JBossASKernel] with dependencies:
19:39:46,939 INFO [JBossASKernel] and demands:
19:39:46,939 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
19:39:46,939 INFO [JBossASKernel] persistence.unit:unitName=m2o-ear.ear/m2o-ejb.jar#m2o-jar
19:39:46,939 INFO [JBossASKernel] and supplies:
19:39:46,939 INFO [JBossASKernel] jndi:m2o-ear/Facade/remote-de.dbag.jpa.m2o.FacadeRemote
19:39:46,939 INFO [JBossASKernel] jndi:m2o-ear/Facade/remote
19:39:46,939 INFO [JBossASKernel] jndi:/ejb/Facade/remote
19:39:46,939 INFO [JBossASKernel] Class:de.dbag.jpa.m2o.FacadeRemote
19:39:46,939 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3) to KernelDeployment of: m2o-ejb.jar
19:39:46,956 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=m2o-ear.ear/m2o-ejb.jar#m2o-jar
19:39:47,120 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.107--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--property=toplink.weaving; value=false
19:39:47,121 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.120--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--property=toplink.orm.throw.exceptions; default value=true
19:39:47,149 INFO [STDOUT] [TopLink Finer]: 2011.07.25 07:39:47.148--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--Searching for default mapping file in file:/home/nicolas/workspace/jds40/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_5.1_Runtime_Server1311339484761/deploy/m2o-ear.ear/m2o-ejb.jar/
19:39:47,157 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.157--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Facade. The class is ignored.
19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.157--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Product. The class is ignored.
19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.158--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.FacadeRemote. The class is ignored.
19:39:47,158 INFO [STDOUT] [TopLink Warning]: 2011.07.25 07:39:47.158--Thread(Thread[HDScanner,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class de.dbag.jpa.m2o.Instrument. The class is ignored.
19:39:47,162 INFO [STDOUT] [TopLink Finest]: 2011.07.25 07:39:47.162--ServerSession(109396896)--Thread(Thread[HDScanner,5,jboss])--end predeploying Persistence Unit m2o-jar; state Predeployed; factoryCount 1
19:39:47,213 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=m2o-ear.ear,jar=m2o-ejb.jar,name=Facade,service=EJB3
19:39:47,215 INFO [EJBContainer] STARTED EJB: de.dbag.jpa.m2o.Facade ejbName: Facade
19:39:47,246 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
/ejb/Facade/remote - EJB3.x Default Remote Business Interface
m2o-ear/Facade/remote-de.dbag.jpa.m2o.FacadeRemote - EJB3.x Remote Business Interface
I have toplink-essentials.jar and hibernate-entitymanager.jar on the classpath. Please help.
Kind regards,
Nicolas DUMINILHello,
More information is required to help you, and as James suggested, the best option would be to move to EclipseLink instead of TopLink Essentials as EclipseLink is actively being developed and is the JPA 2 RI.
Running it on the latest EclipseLink ensures that you are not hitting an issue that has already been fixed, and both are based off TopLink.
Are you deploying an Ear or an exploded directory? If the later, can you try using an Ear?
Best Regards,
Chris -
JBoss 4.0.0RC1/3.2.3 - JDeveloper 10g - ADF UIX
While I realize that JDeveloper has only been tested (to one degree or another) with JBoss 3.2.X, I decided to try and publish to JBoss 4.X after failing with 3.2.X. (The results are the same for either server version).
I have a simple master-detail page off of which I have a create action on the detail section. The primary key is a DBSequence number that goes against a table with an insert trigger defined and a sequence for that field.
The create action opens an input form for creating a new record. In the emdedded OC4J, everything works just fine. Depsite following the developer's review paper on deploying to both standalone OC4J and JBoss, it fails completely. Errors are different, but I thought I would start with JBoss since this equates to our development environment:
When the create button is selected to initiate the action, the input form comes up but in the place where I would expect to see a temporary sequence value in the primary key field, the value is blank and the Execute button on this form does not activate. In addition, JBoss error log (both JBoss 3.2.3 and JBoss 4.0.0RC1 (and DR4)) displays the following (just showing a fragment):
2004-07-28 10:37:34,315 ERROR [org.jboss.web.localhost.Engine] StandardContext[paros]null
java.lang.ClassCastException
at oracle.jbo.uicli.uix.PrimitiveTypes.getArray(PrimitiveTypes.java:122)
at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef._adapt(JUCtrlAdaptValueBindingRef.java:106)
at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef._adapt(JUCtrlAdaptValueBindingRef.java:96)
at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef.access$4000071(JUCtrlAdaptValueBindingRef.java:40)
at oracle.jbo.uicli.uix.JUCtrlAdaptValueBindingRef$CompositeModel.get(JUCtrlAdaptValueBindingRef.java:219)
at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:218)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
at oracle.jsp.el.OracleExpressionEvaluator.evaluate(Unknown Source)
at oracle.jsp.el.OracleExpression.evaluate(Unknown Source)
at oracle.cabo.ui.expl.ELBoundValue._evaluate(Unknown Source)
at oracle.cabo.ui.expl.ELBoundValue.getValue(Unknown Source)
at oracle.cabo.ui.collection.DataObjectListNodeList.getDataObjectList(Unknown Source)
at oracle.cabo.ui.collection.DataObjectListNodeList.size(Unknown Source)
at oracle.cabo.ui.BaseUINode.getIndexedChildCount(Unknown Source)
at oracle.cabo.ui.BaseRenderer.getVisibleIndexedChildCount(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ColumnRenderer._startRowMode(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ColumnRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ColumnGroupRenderer._renderVisibleIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ColumnGroupRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
Has anyone been at all successful using ADF-UIX from JDeveloper 10g and JBoss of any version? (Note I have followed the steps to install ADF Runtime, setvars, etc).
Thanks
RayYes. I have no problem with jdeveloper10g and jboss-3.2.3.
Niether on my note with both linux, win, nor on production server with linux.
Carefully look where do you install ADF Runtime (server defualt), and what server do you start (default is all). Simply change startup server to default or, copy jboss-3.2.3/server/default/deploy/bc4j.ear to jboss-3.2.3/server/all/deploy/ -
Weblogic throws NullPointerException when using ServiceControl.setTimeout
We are invoking a SOAP service via a com.bea.control.ServiceControl that was generated from a WSDL (right click WSDL, Generate Service Control) using Weblogic 8.1.6.
SOAP service execution is successful using an http and https endpoint. However, when setting a timeout via ServiceControl.setTimeout(int millisecods) method, the Weblogic API is throwing a NullPointerException when using an https endpoint. When using an http endpoint with the setTimeout method execution is successful.
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: opening connection to https://[... edit removed ...]
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Response generation exception
Throwable: java.lang.NullPointerException
Stack Trace:
java.lang.NullPointerException
at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:455)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:235)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
at weblogic.net.http.HttpClient.New(HttpClient.java:228)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:179)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:80)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1288)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1155)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
DEBUG com.bea.wlw.runtime.jws.call.SoapFault [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: SoapFault exception throwable e
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: response code=0, responseMsg=null
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: closed connection to https://[... edit removed ...]
WARN WLW.INVOKE.[... edit removed ...] [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Id=[... edit removed id ...] Method=[... edit removed method ...]; Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
ERROR [... edit removed ...]
[ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)Thanks for the suggestion. But with -DUseSunHttpHandler=true the Weblogic API is throwing a ClassCastException with or without the timeout value set.
Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
ERROR: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388) -
Weblogic 91 Jboss Pojo Cache and JConsole Issue
Hi ,
The set up is like this ,
JBoss Pojo Cache is used for caching on Weblogic 9.1, trying to use JConsole (Sun) to connect to the managed server's mbean server to get the Pojo Cache.
Am getting the following exception on the server, Any suggestions/help would be great
<Jul 20, 2006 2:30:54 PM PDT> <Warning> <RMI> <BEA-080003> <RuntimeException thrown by rmi server
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lan
String;Ljavax.security.auth.Subject;)
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop.
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop
at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1534)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2172)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
Truncated. see log file for complete stacktrace
>Shirish Goel <> writes:
Looks like a serialization issue. You should check the definition of TreeCacheAop.
andy
Hi ,
The set up is like this ,
JBoss Pojo Cache is used for caching on Weblogic 9.1, trying to use JConsole (Sun) to connect to the managed server's mbean server to get the Pojo Cache.
Am getting the following exception on the server, Any suggestions/help would be great
<Jul 20, 2006 2:30:54 PM PDT> <Warning> <RMI> <BEA-080003> <RuntimeException thrown by rmi server
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lan
String;Ljavax.security.auth.Subject;)
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop.
java.lang.ClassCastException: org.jboss.cache.aop.TreeCacheAop
at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1534)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2172)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
Truncated. see log file for complete stacktrace -
List of Bugs Fixed in JDev 3.2.3
Several users requested a list of bugs addressed in JDeveloper 3.2.3. Here is a list:
Bugs Fixed for DAC
Infoswing Frame Could Not Be Closed. (1729167)
Validation Methods Are Invoked During Removing Of A New Row From Gridcontrol (1727214)
Regrn:Lov Control: All Fields In Dept Are Listed Instead Of The Selected One. (1724885)
Regrn: List Control Unbound Once Rollback. List Control Is Empty (1723467)
Regrn: Value For The Last Field Doesn'T Get Saved In The Database. (1723367)
Remove The Commit/Rollback Limitation From Findpanel (1720412)
Abm: Rowsetaccessimpl.Absolute() Does Not Check For -1 On Call To Getrangestart (1719841)
Canceling Closing Of Infointernalframe Doesn'T Work (1718994)
Viewlinkinfo Objects Are Not Nested Application Module Aware (1717528)
Viewlinkinfo Objects Generate Illegal View Link Names (1717507)
Dac Lov Controls Are Not Binding To Dataitems (1717492)
Entity Validation Handling Problem In Dac Gridcontrol (1717482)
Trw - Rollback Reexcutes All Queries (1715674)
Getestimatedrowcount Is Called Unnecessarily (1709897)
Rowsetinfo - Error Message Needs More Details (1692843)
Nls: Translated Button Labels Are Shown As Squares In Styleeditor (1688651)
Abm: Blank Rows Created In Grid In Mapping Wizard'S Summary Page (1680610)
Validaterow Is Not Called If You Leave The Row From Non-Modified Column (1671182)
Textareacontrol Color Will Be Gray Always If Run In Jdev With Jdk 1.3 (1666518)
Qabk: Infoswing Control Dialog Box Throws Exception At The Run Time (1665341)
Sessioninfo.Close() Does Not Close The Database Session (1664400)
Nls Business Component Data Form Runtime Missing Translations (1652484)
Qablk Tree Control Picks Up And Displays Only First Selected Rowset (1647498)
Abm: Nullpointerexception Is Thrown When Detail Button Is Used In Visual Trace (1647449)
Rowsetinfo.Publishrowset Does Not Restorec Revoked Rowset. (1640653)
After Setting Validation To Row Level Messages Appear More Than Once. (1640604)
Detail Row Inserted Via Entity Object Is Not Displayed Automatically. (1633778)
Dac-106 Trying To Set Nullable Date Column To Null If A Date Format Is Used (1633564)
Memory Leak When Closing And Reinstantiating Internal Frames (1631899)
Issuing Rollback/Reexecute Query Resets Query Find Criteria (1631795)
Rows Inserted In Vo Not Displayed On Gridcontrol When Rowset Is Published (1625827)
Data In Grid Control Is Lost After Applying Filter And Performing Updates (1624068)
Data Does Not Display In Comboboxcontrol (1623945)
Abm: Find Button In Filter Control Should Be Default For Enter Key - Posco Issue (1584634)
Abm: Sorting On Filtered Grid Control Clears Filter - Posco Issue (1584627)
Last Record Is Not Displayed When Scrolling Thru A Grid Control With Jdk 1.3.0 (1583918)
Abm: Findcontrol Gets Built Everytime The Navigation Bar Is Bound To A Dataitem. (1527169)
Rowset.Setqueryonopen(False) Does Not Prevent The Grid From Populating Itself. (1527158)
Find Panel Custom Editor Option Does Not Work (1511669)
Addmasterlinkinfo -- No Such Method, Should Be Addmasterlink (1503508)
Abm: Sql Error When Findcontrol Is Used The Second Time - Posco Issue (1477081)
Bugs Fixed for BC4J
Insert A Row Using "Immediate Loading" Causes Nullpointerexception (1766124)
Apps: Jdbc Statement Not Being Closed In Viewobjectimpl.Closefreedstatements() (1765387)
Appsjperf: Bind Indexes Changes For Different Users For Inserting/Updating Eo'S (1761569)
Data Page: Query Form Generates Incorrect Query If Attribute Name != Column Name (1756150)
Classcast Exception: Createviewobject() Not Returning Remote Vo Subclass In Visi (1742764)
Samples: Tester Project Does Not Compile, Prevents Use Of Tester To Debug (1720551)
Samples: Inserting A New Item Into The Auctions Database Fails To Insert Dbrecor (1718004)
Samples: Bc4jauctions.Html Adding An Item To Auctions Db Instructions Has Error (1717988)
Samples: Bc4j Auctions Sample Sign Me Up Link Throws Exception (1717967)
Qablk: Required Libraries Are Not Included In The Bc4j Project (1714268)
Datapage Wizard Cannot Generate Anything (1713272)
Datapage Wizard Should Use "Iso8859_1" As Default Encoding (1705620)
Nls: Japanese Characters Are Garbled In "Show Data As Xml" Dialog In Jbo Tester (1700430)
Can Not Include Xml File Using Xsql:Include-Xsql (1700125)
Nls: Error Message In Bc4j Jsp Application Is Garbaged (1695391)
Nls:Web Bean Wizard Does Not Register Web Beans To Web Object Manager Correctly (1693941)
Nls: Js Tab Container Web Beans Cannot Display Japanese (1690456)
Inputdate Doesn'T Allow Field Editing By User (1689571)
Nls:Descriptions For Some Hilo Charts Are Not Shown In Jsp Element Wizard (1684559)
Nls: Truncated Help Button In Add Servlet Dialog Of Web Object Manager (1677201)
Nls: Truncated Button Label For 'Reset' In Query Dialog Of Data Form Runtime (1675129)
Wrong Tip For Js Tree Control Web Bean In Jsp Element Wizard (1673107)
Application Pool Generates Cookies Containing Commas (1667201)
Noclassdeffounderror When Try To Run The Tester In Three-Tier Mode. (1665040)
Using Am In Am Pool 2nd Time (Even Times) Causes Jbo-25302 (1664901)
Apps: Vo.Setattributeinternal Causes All The Rows To Be Brought In From Db. (1663724)
Ora-29534/Ora-29545 When Deploying Bc4j Runtime Classes (1661861)
Nls: Too Small List Box And Truncated List Items In Jsp Element Wizard (1660075)
Nls: Jbo-27022 Cannot Navigate Through Japanese Data With Bc4j (1660065)
Web Object Manager Truncated Label In Edit Webbean Dialog (1658304)
The Datapage Wizard Does Not Generate Code To Display Each Attributes In Vo. (1656532)
Nls: Jsp Application Runtime Missing Translations (1647710)
Labels In An Entity View Are Not Displayed Correctly (1640869)
Nls: Horizontal Alignment And Translation Problem In The Jsp Element Wizard(Edit (1636848)
Nls: Instruction Of Webnew.Java File Missing Translations (1636779)
Query Collection Shouldn'T Be Blown Away If Maxfetchsize = 0 (1634721)
Jbo-25014 Exception For Intermedia Domains (1634452)
Cannot Create A Viewlink Between A View In A Local Am And One In An Imported Am. (1631834)
Apps:Rowset Interface Should Also Provide Removerowsetiterator Method (1604934)
Extra Spaces Before ';' And Minor Typo For Visibroker In Jbo Resource Files (1585159)
Typo In A Webobject Resource File: "Xqsl" For Xsql (1585124)
Apps: Enhanced Stateless With Affinity Support For Viewobjects (1576128)
An Exception Occurs When Run The Database Setup File For Bc4j (1563286)
Apps:View Object Wizard Gives Incorrect Error Message With Invalid Extend (1562030)
Apps: Cannot Override 'Extends' Class In The View Object Wizard (1561990)
Ias 10210 Nt M1: Jsp Error While Going To The Online Orders Window (1554391)
Apps: Returns No Row For A Detail Rowset Even Though Such Row Exists In Db (1554209)
Mats: Bc4j Samples Not Working Correctly (1542381)
Nosuchmethodexception Using Bc4j Design Time With Xml Parser 2.1.0 Beta (1527368)
Cap Gmac: Insert Problem After Upgrading From 3.1 (1524873)
Nls: New Xsl File Needs Output Encoding Tag (1473212)
Createuser.Sql Needs To Be Provided To Customers (1449624)
Ias 9i: Bc4j Installer Needs To React To 3.2 Tutorial Changes (1411505)
Nls: Ias1.0.2 M3: Jsp Bc4j Application Cannot Insert Record (1404390)
Bugs Fixed for JDev IDE
Webtogo Displaying Stale Pages. (1761657)
Nls: Datapage Application Updates Multibyte Data Incorrectly On Webtogo Server (1746080)
Integration Or Cache Problem With Web-To-Go (1741134)
Nls: Translated Booknotfound.Html And Nojavadoc.Html Are Not Installed (1738859)
Nls: Html Help Cannot Be Installed With Japanese Build (1738854)
Nls: Japanese Html Help Has Wrong Folder Structure In The Contents Tab (1737050)
Nls: Cannot Register Servlet Using Web Object Manager (1736178)
Nls: Import Library Utility Is Not Translated And Doesn'T Support Japanese Char (1724029)
Repository Source Control Workarea Picker Does Not Work In Jdk 1.3 (1717231)
Nls:Error And Warning Are Garbled In Setting Encoding Of Compiler To "Cp1252" (1716640)
Nls: Popup Menus "Open" And "Edit With Oracle Jdeveloper" Are Not Translated (1684565)
Qablk:Jdeveloper Crash When Opening Frame In The Ui Design Mode In Windows 2000 (1683235)
Nls: Overtranslated Parameter Names In Created Dialog (1677246)
Nls: Comment 'Constructor' In Application, Class, Sqlj, Beaninfo Not Translated (1677241)
Nls:Error Message Is Different Between Locale = Us And Ja (1671222)
Nls: Cannot Select More Than One Jar/Zip File When Adding Paths (1660130)
Nls: Cannot Run Jsp Application Using Bc4j Created With Japanese Tables (1660019)
Nls:Unable To Insert/Update For Bc4j Jsp Application On Ias 1.0.2.0 (1656603)
Nls: Httpservlet Code Is Incorrect (1650724)
Nls: All Web Object Wizards Behaviour For Character Encoding Should Be Unified (1650722)
Nls Enterprise Javabean Wizard Truncated Translations (1645621)
Nls: A Message 'Loading Jsp' Missing Translation In The Jsp Runtime (1636889)
Unable To Invoke Dependency Manager (1630723)
Incorrect Otn Link Specified In Creating_Html_Clients\Srv_Pxsqlservlet.Html (1618656)
Must Use Thin Jdbc In Order To Solve Nls Problems With Repository Tools (1534551)
Nls:Webtogo Doesn'T Find Jsp Pages With Japanese Names. (1477338)
Nls:Japanese Character Corrupted When Sql*Plus Invoked From Jdeveloper (1461164)Hi Steve
Many thanks for that. Could I ask that
this kind of thing goes in the release
readme also.
Marc -
How to print PreparedStatment object in console
Dear All
i am using PreparedStatment for inserting data into a table, in my local system it is working fine, but after deploying in JBoss(Server) it is throwing "invalid column type" error. In order to check i tried to print in the JBoss console but i am unable print in the console, kindly help me regarding this.
The code which i used is:
PreparedStatement stmtPrep = conn.prepareStatement(sql);
try {
stmtPrep.setObject(1, number);
stmtPrep.setObject(2, (String) passList.get("PlantCode"));
stmtPrep.setObject(2, (String) passList.get("PlantExt"));
stmtPrep.setObject(3, ls_per_ord_qty_ind);
stmtPrep.setObject(4, ls_price);
stmtPrep.setObject(5, (String) inList.get(4));
stmtPrep.setObject(6, (String) List.get("txtStoreLoc"));
stmtPrep.setObject(7, (String) List.get(1));
h = (String) List.get("Price");
float unit = Float.valueOf(h.trim()).floatValue();
stmtPrep.setFloat(8, unit);
System.out.println(">>>Query is>>>>>"+stmtPrep);
Can any one guide me how to print in JBoss console this stmtPrep and check all the values that i am passing r correct r not.
but it is throwing like this:
15:16:30,686 INFO [STDOUT] >>>Query is>>>>>org.jboss.resource.adapter.jdbc.Wrap
pedPreparedStatement@1056bddsasikrishna wrote:
Dear All
i am using PreparedStatment for inserting data into a table, in my local system it is working fine, ok.
but after deploying in JBoss(Server) it is throwing "invalid column type" error. That would seem to be a database problem to me. Schema specifically.
In order to check i tried to print in the JBoss console but i am unable print in the console, Why does it matter since it will not help you?
Your code specifically details the object types that you are setting.
Presumbly the 'sql' is just a hard coded value.
Consquently the conclusion is that the database on your local box versus the deployment is different. And nothing that you print in JBOSS will help you discover what the difference is. You need to look at the 'sql' and determine the entities from that and then compare them in the schema for both places.
check all the values that i am passing r correct r not.As noted if that isn't a security violation for your application then you are left with the following.
- Drivers do not necessarily create SQL.
- If they do AND the driver is up to date then there is a method (look for it in the javadocs) that will return it
- If not you should use a jdbc wrapper proxy that consumes the data for you. This might be better even if the driver does it. -
Scenario Manager not working in ATG
Hi,
I have a problem with scenario manager. I have a scenario manager which triggers order confirmation mails. When the jboss server starts it throws the below error.
Unable to declare this instance as the default ProcessEditorServer. Another instance, Dev-254:8850, has already been run against this schema, and has declared itself as the default ProcessEditorServer. This instance will be started as an individual server. To declare this instance as the ProcessEditorServer, either configure the /atg/scenario/scenarioManager.xml file, or remove the row from dss_server_id whose server_id column is Dev-245:8850. The first option is the recommended one, since it will prohibit this problem from occurring in the future.+
But for systems, it is working fine. some others it is not working.
Any idea?I guess you are using a Common Schema for all developers. Whenever a first server is starting, it will register itself as the Process Editor Server, this must be one of the developer machine and he will be able to create/edit scenario in his machine but for others its not.
One thing you can try out is that (not sure it works or not), configure localhost:8850 (drp_port) using /atg/scenario/scenarioManager.xml; it might help all the developers to use Scenario editor. As per ATG you should use one dedicated instance for process editor server, you may try out the localhost way for dev purpose, do let me know if it works for you.
/DSS/config/config.jar has the OOB scenarioManager.xml file, sample configuration below.
+<process-manager-configuration>+
+<process-editor-server>+
+<server-name>localhost:8850</server-name>+
+</process-editor-server>+
+</process-manager-configuration>+
Cheers
R
Edited by: Rajeev_R on Mar 5, 2013 11:04 PM
Maybe you are looking for
-
My misadventures with Verizon FIOS
FIOS recently became available to my building, a 125 apartment condo. A salesperson,{edited for privacy}and an accomplice, came to sign up new accounts and they had a field day. The only competition is Comcast and residents were eager to be free of
-
E55 e-mail issues and solutions.
The main problem of Nokia E55 e-mail (and AFAIK generic Nokia e-mail problems) is there are too much support for email but poorly documented. I just discovered everything I'll write here by my own trying to figure out the problems. This message is al
-
Hi, When I open TestStand using a seq. file, I can see all the VI's that are called, but when I try to open them for editing, I see this message; "The labview adapter is currently configured to run tests in an environment that does not support editin
-
photoshop elements 7.0 (organizer) has stopped working, How do I fix this?
-
Does pages support OpenDocument at all?