Datetime marshalling problem
Hello all,
I have this Web service component, and all it does is redirect calls to other WebLogic Web service components. On a new server install (8.1.5), I get this exception:
<error>
<faultcode>JWSError</faultcode>
<faultstring>com.bea.xml.marshal.XmlEncodingException: Encountered an object of unrecognized type. Type 'com.bea.xml.XmlCalendar' should be added to include-java-types.</faultstring>
<detail>
com.bea.wlw.runtime.core.request.ResponseValidationException: com.bea.xml.marshal.XmlEncodingException: Encountered an object of unrecognized type. Type 'com.bea.xml.XmlCalendar' should be added to include-java-types.
at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:40)
at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:259)
at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:168)
at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:46)
at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161)
at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:49)
at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:285)
at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:603)
at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6985)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an object of unrecognized type. Type 'com.bea.xml.XmlCalendar' should be added to include-java-types.
at com.bea.xml.marshal.MarshalContext.error(MarshalContext.java:148)
at com.bea.xml.marshal.PolymorphicMPlan.marshal(PolymorphicMPlan.java:30)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:436)
at com.bea.xml.marshal.MapMPlan.marshal(MapMPlan.java:101)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:436)
at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:358)
at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:261)
at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:377)
at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writePart(MimeXmlResponse.java:106)
at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writeOutputPart(MimeXmlResponse.java:98)
at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:36)
... 21 more
</detail>
</error>
So this exception is the result of a call on my component, that is redirected to another component. That other Web service returned an answer properly. In this answer, there's an XSD-datetime. My redirection component should look at it as a java.util.Calendar, like the docs say. So why does my Web service want to marshal an com.bea.xml.XmlCalendar?
Maybe a more important question: can I design my forwarding Web service otherwise, so no XML parsing is needed, or only a minimum of parsing? I've looked at SOAP message handlers, but the docs say they are not meant for redirecting purposes.
Any replies are well appreciated :-)
Koen
Your bean must have a getShift() method that return an object that have a getToTime() method that return a Date object... is your bean right?
Similar Messages
-
RMI Marshalling Problem: weblogic.Admin PING
WebLogic 5.1.0 with service pack 8 has been installed on a HPUX server. I'm
trying to ping the server from an NT box, but I'm getting some RMI
marshalling problems.
Here is the command that I run on NT:
C:\weblogic\jre1_2\jre\bin\java -classpath
c:weblogic/lib/weblogic510sp.jar;c:/weblogic/classes;c:/weblogic/lib/weblogi
caux.jar weblogic.Admin t3://HPServer:7001 PING > MarshallingProblem.txt
Here is what is in MarshallingProblem.txt (modified server name):
Failed to connect to t3://HPServer:7001 due to:
[weblogic.rmi.UnexpectedException: Marshalling:
- with nested exception:
[weblogic.rjvm.PeerGoneException:
- with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[java.io.InvalidClassException:
weblogic.security.acl.internal.AuthenticatedUser; Local class not
compatible: stream classdesc serialVersionUID=6699361079932480379 local
class serialVersionUID=2825328378974757378]]]]
I previously had similar problems pinging the server from the server itself
until I included the servicepack in the classpath.
Anyone have any idea what going on in this situation?
Cameron TaggartCameron
Can you test with sp8 installed on your NT machine too ? And also make
sure you set the classpath with the sp8 jar files on NT before you run
weblogic.Admin PING
Raj Alagumalai
Cameron Taggart wrote:
WebLogic 5.1.0 with service pack 8 has been installed on a HPUX server. I'm
trying to ping the server from an NT box, but I'm getting some RMI
marshalling problems.
Here is the command that I run on NT:
C:\weblogic\jre1_2\jre\bin\java -classpath
c:weblogic/lib/weblogic510sp.jar;c:/weblogic/classes;c:/weblogic/lib/weblogi
caux.jar weblogic.Admin t3://HPServer:7001 PING > MarshallingProblem.txt
Here is what is in MarshallingProblem.txt (modified server name):
Failed to connect to t3://HPServer:7001 due to:
[weblogic.rmi.UnexpectedException: Marshalling:
- with nested exception:
[weblogic.rjvm.PeerGoneException:
- with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[java.io.InvalidClassException:
weblogic.security.acl.internal.AuthenticatedUser; Local class not
compatible: stream classdesc serialVersionUID=6699361079932480379 local
class serialVersionUID=2825328378974757378]]]]
I previously had similar problems pinging the server from the server itself
until I included the servicepack in the classpath.
Anyone have any idea what going on in this situation?
Cameron Taggart -
Marshaling problem in creation of xml thru JAXB
Hi java gurus,
I am trying to create an XML which will has the data of database using JAXB. I am able to generate JAXB classes, but its giving some error the stack trace is like this
java.lang.NoSuchMethodError: com.sun.xml.bind.marshaller.XMLWriter.setXmlDecl(Z)V
at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:223)
at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:238)
at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:233)
at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:126)
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
at org.bas.dss.common.dao.MetaDAO.createInstInformation(MetaDAO.java:627)
at org.bas.core.fidownload.DownloadActionHandler.getInstInfoXMLData(DownloadActionHandler.java:163)
at org.bas.core.fidownload.DownloadActionHandler.performPreDownloadAction(DownloadActionHandler.java:74)
at org.bas.core.fidownload.DownloadAction.perform(DownloadAction.java:129)
at org.bas.core.fidownload.DownloadAction.execute(DownloadAction.java:79)
the method is like this,
valueObject = getInstInformation (registrationId, appVersionId);
System.out.println("MetaDAO-->valueObject:"+valueObject); //here i am gettingthe object
context = JAXBContext.newInstance("org.bas.dss.common.vo.bii");
System.out.println("MetaDAO-->context:"+context); //here i am getting the context
sumissionInfoMarshaller = context.createMarshaller();
System.out.println("MetaDAO-->sumissionInfoMarshaller:"+sumissionInfoMarshaller); //here also i am getting some object type
sumissionInfoMarshaller.setProperty(
Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
System.out.println("MetaDAO-->MetaDAO-->");
sumissionInfoMarshaller.marshal (valueObject, streamToWrite); // the problem is coming here.
anyone can suggest what will be the problem, and tell me how can i resolve this issue,
thanks in advance,
varmaPl post this question to SDK Forum
-
Odd marshalling problems with EJB 3.0 stateless session bean
Hello,
I began encountering marshalling exceptions when invoking methods on a previously functionining facade bean. The problem seems to be almost arbitrary, in that certain packages receive marshalling exceptions, while others do not (my main client started failing, but then I realized that a simple test class was still working, along with oddly JSFs that invoke that main client, which fails outside of that scope). Is there some config issue with stateless session beans (in 3.0) that I might be missing? There are no duplicate versions of these class; they have not been modified; they've been compiled with the current IDE. Any help would be appreciated. Thanks.
full stack trace:
com.evermind.reflect.UndeclaredExceptionTypeException: oracle.oc4j.rmi.OracleRemoteException
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
Nested exception is:
java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
Nested exception is:
java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)Hello,
I began encountering marshalling exceptions when invoking methods on a previously functionining facade bean. The problem seems to be almost arbitrary, in that certain packages receive marshalling exceptions, while others do not (my main client started failing, but then I realized that a simple test class was still working, along with oddly JSFs that invoke that main client, which fails outside of that scope). Is there some config issue with stateless session beans (in 3.0) that I might be missing? There are no duplicate versions of these class; they have not been modified; they've been compiled with the current IDE. Any help would be appreciated. Thanks.
full stack trace:
com.evermind.reflect.UndeclaredExceptionTypeException: oracle.oc4j.rmi.OracleRemoteException
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
Nested exception is:
java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
Nested exception is:
java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy1.findAllViewRight(Unknown Source)
at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63) -
Xsd:dateTime formatting problems
This is driving me nuts. I've been playing around with JAXB and it has worked great so far. Until now.
I have an xml file with this little block
<timestamps>
<created>2000-03-04T20:00:00Z</created>
<last_modified>2003-03-14T02:20:02-05:00</last_modified>
</timestamps>and in my xsd file I have
<xsd:element name="timestamps" type="timestampsType" />
<xsd:complexType name="timestampsType">
<xsd:sequence>
<xsd:element name="created" type="xsd:dateTime" />
<xsd:element name="last_modified" type="xsd:dateTime" />
</xsd:sequence>
</xsd:complexType>Previously I had used just xsd:date instead of xsd:dateTime, and that worked fine, but then I realized that I needed more timing precision so I made the change. I can generate my java files with xjc without any problems. But when I go to unmarshall the xml file with validation on, I always get a complaint about the formatting of my date time values. More specificaly I see:
"com.sun.msv.verifier.ValidityViolation: "2000-03-04T20:00:00Z" does not satisfy the "date" type"
despite the fact that I copied this date directly from the XSD specification page at http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/
And believe me, I've tried about a dozen other variations.... Different dates, with extra milliseconds, with and without the timezone part at the end. I get the same error every time. So what am I doing wrong?Thanks, but unfortunately that did not do the trick. Interestingly enough everything works perfectly, all other things the same, when I let Validation be set to false.
-
Timestamp (java) - datetime (informix) problem
hi,
when executing a finder method (findByXXX(java.sql.Timestamp arg0)) i
get the following error message:
-1262 Non-numeric character in datetime or interval.
column type of my informix table is datetime ("year to fraction(3)").
surprisingly i can create new rows via a create-method.
i am using weblogic 4.5.2.
thanks for your help,
martini have an entity bean having similar finder-methods (findByXXX(Timestamp))
and they do the right thing. i even have an entity bean with the same fields
but referencing one different entity bean. even this entity bean works
correct!
martin
Seth White schrieb:
Martin,
The generated EJB code for the finder looks correct, so I suspect
that the problem is JDBC related. You might want to try using
the different JDBC driver. Or, I also notice in the JDBC 2.0
book from Sun that for Informix 9.2, TimeStamp maps to
DATETIME YEAR TO FRACTION (5). Maybe using that as your column
type in the database will help. Sorry I couldn't be more
helpful.
Seth
Seth White wrote:
Martin,
Can you post the deployment descriptor as well as the generated Java
code
for the finder method? I would like to take a look.
Seth
Martin Zach wrote:
hi,
when executing a finder method (findByXXX(java.sql.Timestamp arg0)) i
get the following error message:
-1262 Non-numeric character in datetime or interval.
column type of my informix table is datetime ("year to fraction(3)").
surprisingly i can create new rows via a create-method.
i am using weblogic 4.5.2.
thanks for your help,
martin -
Javascript - custom datetime converter problem
Hi all,
JDev version 11.1.2.4
After migration from JDev 11.1.2.1 to new JDev 11.1.2.4 my custom datetime converter stop working.
After debuging I found out that client javascript converter is problem.
Here is javascript code:
function DateToCalendarConverter(pattern, locale, exampleString, type) {
this._class = "rmypackage.view.convert.DateToCalendarConverter";
this._separator = '';
this._pattern = pattern;
this._locale = locale;
this._exampleString = exampleString;
this._type = type;
this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject;// TrDateTimeConverter is not defined
DateToCalendarConverter.prototype = new TrDateTimeConverter();
DateToCalendarConverter.prototype.getAsObject = function (stringValue, label) {
//some transformation
return this.old_getAsObject(stringValue, label);
Line that breaks javascript is " this.old_getAsObject = TrDateTimeConverter.prototype.getAsObject; " and message is TrDateTimeConverter is not defined.
This works fine in JDev 11.1.2.1.
Does anyone know what is the problem and is there any workaround?
Thanks in advanceFrank, this is not trinidad issue. Which JavaScript libraries ADF loads is definitely changed.
In JDev version 11.1.2.1 there was Common2_0_0_beta_2.js file, and in JDev version 11.1.2.4 it doesn't exist.
Unfortunately that file contained TrDateTimeConverter and that is why it doesnt work.
So, is there a way I can force adf to load javascript library that contain TrDateTimeConverter?
Oracle?
Thanks in advance. -
I am trying to use JAXB for binding. The schema compiler works ok i.e i have got the classes generated but when now when i try to apply marshalling i get an error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableObject
could anyone help what could be the problem with this.
Any help is appreciated.
satyai am also getting the same error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at NodeLister.main(NodeLister.java:46)
i do not know what to do now...i am stuck -
Datetime Datatype problem in Forms
Hi,
I have just faced a problem some moment ago in Oracle Forms . Firstly , informed you that i am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
Ok, i have a field named ENTRY_TIMESTAMP. I kept 'Datetime' datatype there in forms level. Now if i change anywhere on that particular form, ENTRY_TIMESTAMP datatype changed from 'Datetime' to 'Date'. You can also check it by making a form of this scenario.
I don't know , is it a bug or any others code/process is responsible for this kind of changing ?
Any idea ?????????????shuvro wrote:
Hi,
I have just faced a problem some moment ago in Oracle Forms . Firstly , informed you that i am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
Ok, i have a field named ENTRY_TIMESTAMP. I kept 'Datetime' datatype there in forms level. Now if i change anywhere on that particular form, ENTRY_TIMESTAMP datatype changed from 'Datetime' to 'Date'. You can also check it by making a form of this scenario.
I don't know , is it a bug or any others code/process is responsible for this kind of changing ?
Exactly i don't know, is it bug ? but thinking so as same case happened for form version 6i
But it not happened for form version *10.1.2.3* To upgrade you need patchset from support.oracle.com / metalink.
If your have valid support contact then you can able to download.
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly.* -
Dear All,
I am using an add-on for Purchase Indent. In it I m using an EditText named Indent Date. I m to use current date in this EditText in exact this format (dd/MM/yy). I have tried all possibilities but the date is going into this format (2011-11-18) in database. I m to handle this. What can I do for this problem.? The date should be in database in (dd/MM/yy) format. Here is my code.
DateTime d = DateTime.Now;
((SAPbouiCOM.EditText)this.FormItem(enControlName.txtIndentDate).Specific).Value = d.ToString("yyyyMMdd");
Am i doing anything wrong ? Please Reply.Hi Ankit.......
Please check this thread.
how to convert date in ddmmyy format
Hope this is helpful for you........
Regards,
Rahul -
hi all,
I have a prob with datetime converter
<h:inputText id="toTime" value="#{shiftMBean.shift.toTime}" styleClass="GeneralTxt" maxlength="15" >
<f:convertDateTime type="time" pattern="H:mm" timeStyle="short" />
</h:inputText>
i m gettin error when i enter time as 1:30 or 21:30 or 01:30 can any one pls help me with this??
toTime is of type time in databaseYour bean must have a getShift() method that return an object that have a getToTime() method that return a Date object... is your bean right?
-
I am using CreateODBCDateTime() function to create Simple date time format as
(mm/dd/yyyy- h:mm tt). But, when I am dumping the file, format is changing to
{ts '2011-08-06 00:00:00'} . I want it to appear as formated. I have used DateFormat() along with CreateODBCDateTime().
In the real form the date and time are appering as formated.Please help. Thanks in advance.
Vijay.Hi,
CreateODBCDateTime() doesn't do any formatting for you, it creates an ODBCDateTime object. So when you output that object something like {ts '2011-08-06 00:00:00'} is what you get.
If you want to format dates/times for display purposes you need to use the DateFormat() and TimeFormat() functions. So something like
#DateFormat(yourDateTimeObject, "mm/dd/yyyy")# - #TimeFormat(yourDateTimeObject, "h:mm tt")#
Will give you a formatted date and time.
Hope this helps,
Richard -
Hi i have an csv file which i have a date time column which i
need to upload to mysql database column with is formatted as
datetime
the problem i have is the csv is formatting the date time as
mm-dd-yyyy hh:mm:ss which will not upload
i have tried uploaing via a http request, is there a way of
changing the format in th csv or adding some cf code to change the
format after the http request
the http code i am using is
<cfloop index="currRow" from="#form.startRow#"
to="#form.dispRows#">
<cfif IsDefined("form.ID_#currRow#")>
<cfset ID = Evaluate("form.ID_" & currRow)>
<cfquery name="INSERT" datasource="#application.ds#">
UPDATE records
SET Dateoh = '#form["DateofSM_#currRow#"]#'
WHERE ID = #ID#
</cfquery>
<cfelse>
<cfbreak>
</cfif>
</cfloop>Probably not but you can try it. Dateformat returns a string,
not a datetime object. CreateDateTime will create a datetime object
but you have to use it the way the manual tells you to. From then,
either createodbcdatetime or cfqueryparam will work. -
Java.rmi.MarshalException: error marshalling arguments
I've two class Client and Main. Eventnotify is implemented in class Client using RMI techniques. Here is sample
public interface EventNotify extends Remote {
void SendNotification (String str) throws RemoteException;
public class Client implements EventNotify {
//implementation of EventNotify
public void SendNotification(String str) {
System.out.println("from srver: ..." +str);
class Main {
public static void main(String[] args) {
Client clnt = new Client();
int val = stub.register_client(host, clnt); //THE ERROR IS HERE
The idea is to pass remote objects from client to a server. I've a server program running continously, but the problem is on passing objects of type Client. I'm facing marshaling problem.
AND THE ERROR IS
Client exception: java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: Client
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: Client
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:156)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:195)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:149)
at $Proxy0.register_client(Unknown Source)
at Main.main(Client.java:74)
Thanks for helping.
Caused by: java.io.NotSerializableException: Client
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1173)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:292)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:151)Probably I have a similar problem while calling remote object's method with parameter looks like that :
public class ParamClass extends AbstractParamClass implements Runnable,
java.io.Serializable {
private NodeList field1; // part of crimson's tree
private NamedNodeMap field2 = null;// part of crimson's tree
public class RmiRemote extends AbstractRemote { // Remote Object Class
@Override
public Object remoteMethod1() throws RemoteException{
ParamClass param = new ParamClass("build with crimson");
CustomInterface stub = (CustomInterface) registry.lookup(name);
stub.callRemoteMethod(param); // exception here
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: org.apache.crimson.tree.AttributeSet
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)when I build param object with xerces - no exception occurs . Other methods of remote object doing well. Remote object extends AbstractRemote superclass derived from UnicastRemoteObject. How can I avoid this problem and call method with crimson's tree fields parameter?
Thank you. -
Problem weblogic.admin connect while idleThreadCount is 0
Hi all,
I have problems to access the managed server through weblogic.admin while the idleThreadCount of the "Default Queue" is 0. It works fine when is not 0, but I suppose that when the "Queue Lenth" is larger than 100 and the IdleThreads are 0 I can't connect to the maneged cause it don't accept new requests.
This commando works fine when the managed is ok:
java weblogic.Admin -url t3://managed:port -username user-password pass GET -type ExecuteQueueRuntime -property ExecuteThreadCurrentIdleCount
I was looking for a way to do this through de admin server, but I can't find nothing to get the queue status of other managed, or how to force or stablish priority to the conection so I can perform a DUMP to know where is the problem.
I'm using Weblogic 8.1SP4 on SunOS 5.8
Thanks for your attention.Cameron
Can you test with sp8 installed on your NT machine too ? And also make
sure you set the classpath with the sp8 jar files on NT before you run
weblogic.Admin PING
Raj Alagumalai
Cameron Taggart wrote:
WebLogic 5.1.0 with service pack 8 has been installed on a HPUX server. I'm
trying to ping the server from an NT box, but I'm getting some RMI
marshalling problems.
Here is the command that I run on NT:
C:\weblogic\jre1_2\jre\bin\java -classpath
c:weblogic/lib/weblogic510sp.jar;c:/weblogic/classes;c:/weblogic/lib/weblogi
caux.jar weblogic.Admin t3://HPServer:7001 PING > MarshallingProblem.txt
Here is what is in MarshallingProblem.txt (modified server name):
Failed to connect to t3://HPServer:7001 due to:
[weblogic.rmi.UnexpectedException: Marshalling:
- with nested exception:
[weblogic.rjvm.PeerGoneException:
- with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[java.io.InvalidClassException:
weblogic.security.acl.internal.AuthenticatedUser; Local class not
compatible: stream classdesc serialVersionUID=6699361079932480379 local
class serialVersionUID=2825328378974757378]]]]
I previously had similar problems pinging the server from the server itself
until I included the servicepack in the classpath.
Anyone have any idea what going on in this situation?
Cameron Taggart
Maybe you are looking for
-
Problem while creating new item in the sale order in case of Thirdparty
Dear Gurus The following error is coming while adding the new item with quantity in the sale order in case of third party . Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC Update key... 482ACBD89C7D0067E10080000A8C681C Can gi
-
View Duplicate Entries in Address Book
Does anyone know how you can view your duplicate entries in Address Book before you merge them? Thank you!
-
Download Adobe Flash Player doesn't work
how can I download new version: youtube video's aren't visible> youtube gives link to Adobe works; when I try I get message that 'schijfkopie bestanden' cant be activated. I hope someone can help Anna
-
JNI errors with C++ ULONG
I apologize in advance if I am posting this on the wrong forum, I didn't see one for JNI. Does anyone know anything about passing a ULONG number from C++ to Java through JNI?? I am creating a jlong variable: jlong tag = (long) e->tag();where e->tag()
-
How to read und hash files!?
Hi... I'm facing some "InputStream" problems. I want to hash files which is successful if files are < ~50MB. Here's my code... long length = file.length(); InputStream in = new BufferedInputStream(new FileInputStream(file)); byte[] mes