Parsing the Time
Hello everyone
Iam trying to parse a string to a SimpleDateFormat and then again to simply display the time. The incoming date is in the format "yyyyMMddHHmmss", the first section of the code <string2Date> converts the string into an eligible standard java date format and this works fine, the second half <string2Time> I'm having a bit of problem with. I wanted to parse the date further and display the time only "HHmmss", the obstacles I've come across is
HHmmss is not the same length and form as the input yyyyMMddHHmmss
Casting a Date to a String
Can anyone help? Please note I'm using jdk1.1
import java.text.*;
import java.util.*;
import java.text.DateFormat;
import java.io.*;
import java.lang.Integer;
public class TimeConvertor extends SimpleDateFormat
protected Date theDate;
protected Date d;
protected Date theTime;
public Date string2date(String DateString){
String tf="yyyyMMddHHmmss";
SimpleDateFormat df = new SimpleDateFormat (tf);
try{
theDate=df.parse(DateString);
catch (Exception ex) {
System.out.println("error in time conv");
return theDate;
public Date string2time (String DateString){
DateFormat tf = new SimpleDateFormat ("yyyyMMddHHmmss");
DateFormat tdf = new SimpleDateFormat ("hh:mm:ss");
try
d = tf.parse (DateString);
/*<theTime> wants to parse a string and it wants it the same length as <tf>
*so this line <df> is an attempt to convert <d> into a string and look only
at the time of the string/
String df=(String)toString(d(Integer.parseInt.substring(8,14)));
theTime = tdf.parse (df);
catch (ParseException e)
System.out.println ("Problem parsing hour value");
System.out.println (e);
e.printStackTrace ();
System.out.println ("Output = " + theTime);
return theTime;
}
Thanks I followed your advice... i'm getting closer- it compiles and runs but it has a "-depreciator" warning. I wanted to plot a graph: measurements versus time. Having the option of displaying day, week or month plot. The day plot would just display the times associated with that day, then a week with date+time etc. I'd still want the time associated with the date, parsing would be purely for display purposes. Using the Calendar is the best solution, Thanks! My last questions {see comments on code below} are why am i getting this "-dep" warning & can i get rid of it; also how can i display hour:minutes:seconds with out getting the error ")"?
Thanks again
import java.text.*;
import java.util.*;
import java.text.DateFormat;
import java.io.*;
import java.lang.Integer;
import java.lang.String;
public class TimeConvertor extends SimpleDateFormat
protected Date theDate;
protected Date d;
protected Date theTime;
String tf="yyyyMMddHHmmss";
SimpleDateFormat df = new SimpleDateFormat (tf);
Calendar c = Calendar.getInstance();
public Date string2date(String DateString){
try{
theDate=df.parse(DateString);
catch (Exception ex) {
System.out.println("error in time conv");
return theDate;
public Date string2time (Date theDate){
c.setTime(theDate);
/*theDate.getMinutes(),theDate.getHours(),etc causes the -dep warning*/
c.set(Calendar.HOUR, theDate.getHours());
c.set(Calendar.MINUTE,theDate.getMinutes());
c.set(Calendar.SECOND,theDate.getSeconds());
/*Error ')' expected*/
System.out.println("Time = " c.get(Calendar.HOUR)":" c.get(Calendar.MINUTE) ":" c.get(Calendar.SECOND));
/* This works fine prints out the right hour, minutes, sec but Individually i wanted HH:mm:ss*/
System.out.println(c.get(Calendar.HOUR));
System.out.println(c.get(Calendar.MINUTE));
System.out.println(+c.get(Calendar.SECOND));
return c.getTime();
}
Similar Messages
-
Hi.. I have a text file which has entries with a time stamp of the format yyyy/MM/dd hh:mm:ss:sss
I am able to parse my data to the extent I get this timestamp and other data too... I need to copy this time stamp into a string how do I differentiate it
e.g
2003-10-21 14:35:47,000 INFO
I need to remove this INFO and save the rest.. how can that be achieved in a simple manner..
thanksIf you don't bother about speed and compatibility with older JRE versions (1.3 etc) you can try regular expressions. (Older JRE versions can use ORO that you can get from jakarta.apache.org).
The RE is (I confess that I didn't tested it)
"\\d{4}-\\d{2}-\\d{2} \\d\\d:\\d{2}:\\d{2},\\d{3}"It must match "2003-10-21 14:35:47,000".
I suppose that 7:35AM is written as "07:35". If not, please modify the RE accordingly (where appears "\\d\\d" please write "[0-9 ]"
Use the find, start, end and group methods from the java.util.regex.Matcher class, and the compile method from the Pattern class.
find - returns true if the pattern is found
group - returns the data
start, end - returns the starting and ending positions. -
I am running Photoshop CS6 on a Mac OS X 10.9.3 and every time I save a large eps I can not open it again. I get this message when I try. "Could not complete your request because Photoshop was unable to parse the PostScript."
Oh, dear.
If you use PSE as your external editor for iphoto, you need to save the images back to iphoto by using Save, not Save As and not changing anything like the name or format that would bring up the Save As window. (You may need to adjust the editor prefs>saving files>on first save to save over existing.)
OR you can export the photos from iphoto to the desktop, use file>open in the editor and then change whatever you want and either import the saved image to the organizer or import it back to iphoto as a new file. What you are doing is extremely risky, particularly to the iphoto library which you may easily damage by your workflow.
I would start the organizer holding down the shift key, then create a new catalog and switch to the new one. Then try opening the editor without opening an image and see if you get any farther.
PSE and iphoto are not designed to be used as you've been doing. You are trying to write to the iphoto library from outside iphoto, which is the fastest known way to corrupt the library and lose all your photos. -
Importing videos - Q-Time can't "parse" the clips
Just bought a Sony DCR-SR100. I've copied movies into a folder on my hard drive using the USB cable. When I go to import, iMoive doesn't recognize the clips, saying Quick Time can't "parse" the clips. Anybody have a solution?
I downloaded MPEG Streamclip and that doesn't seem to be working either (still the same error message). Do I need the Apple software you mention as well? You referenced playback vc. editing in your reponse.
I can't playback on my computer. As I say, when I go to import, I get the error message that there is an error in importing b/c QT can't parse the clips. The Sony instructions send me to download $200 worth of software. I thought iMovie does that for me and this was supposed to be easy. -
IE not using some CSS or JS files, some of the time..
I'm working with a client trying to solve a problem that just started on a site I built for her. The problem started about three weeks ago.
It's a really simple ASP.NET site: http://nancyjoart.com/ One master page loads a common CSS bundle and JS bundle on all pages, however I used to have then unbundled and only bundled them to try to limit the
problem. It didn't work, but I left the bundles as they do speed the site up.
One machine on her network constantly fails, a surface pro 2, Windows 8.1, IE11, all updates installed. Short story: On four pages, two public and two privately accessed, IE doesn't apply a CSS or run the javascript in the bundle.
Here are the two public pages that fail:
http://nancyjoart.com/default.aspx and
http://nancyjoart.com/gallery.aspx
If the NAV bar at the top has blue links instead of grey/black, the CSS didn't load. If the page has no art and shows the loading GIF, or no images, the JS didn't load.
Now the fun and amazing part: the CSS that doesn't work on these four pages, is successfully used and works on every other page.
The CSS and JS files do actually get requested and downloaded by IE, as evidenced by a Network Monitor trace session and the F12 tools, but don't get applied (CSS) or loaded(JS) on these pages.
Now it gets weirder: I can run the site fine on my Surface RT and my Pro2 from anywhere else without fail. However, if I'm on her wifi - only half the time I can't get the scripts to run or that one CSS to apply. I press CTRL+R and
they work fine when the page reloads, but only half the time. In fact, it took me about a half an hour to experience the failure. Once it happened, my dev machine would exhibit the problem, then it would work, then it would fail.
In terms of the JS - When it fails, the debugger indicates a class isn't found. IE has parsed and downloaded that JS file, and shows the file in the debugger file list dropdown - but doesn't seem to use it.
Even more odd, the request and responses all appear to happen quickly, all have 200 OK/Success results and the request and response headers look completely normal. I've even saved the JS file itself and binary compared it to what I have on the server,
and it matches, so it isn't somehow getting mangled in-transit. Even more odd than this little oddity is that once the files are requested and "fail", even if you switch to a cellular connection, the next page loads, and IE doesn't NOT load
the files correctly either. CTRL+R eventually will get it to work on this new connection type though.
Other things I've tried:
Works on her wifi on: iPhone, Windows Phone 8.1, Windows Phone 8, Windows Phone 7, Blackberry (Bold and Playbook) and her Windows 7 desktop. I've put Firefox on her machine, and it works fine every time. Anything in this list never
fails, ever except ie11 on the surfaces.
Her surface is pretty much OOB in terms of apps. Just Modern apps installed.
My surface pro 2 dev machine is OOB too. used daily for development - Again, site works everywhere but her wifi.
Minifying the CSS or JS doesn't seem to help,
Chkdsk reports nothing,
Windows Defender is the only AV installed,
all Windows updates are installed,
Bundling the css and JS with webgrease didn't help,
I've reset the IE advanced settings, security settings, cleared the cache, tried inPrivate, tried making it trusted, nothing worked.
even reset the wifi router
She reports other websites all work fine. (** caveat: not sure how complicated these sites are, or how frequently she does this...)
Does anyone have any suggestions that they'd try next if they were in my sad shoes?
Darin R.Hi,
f12>Networking tab, click the start button then refresh the page to view request/response timings.
http://nancyjoart.com/api/art/ThumbImage/fb958270-8c20-46e9-9adf-05ef6990ec85/250
Key Value
Response HTTP/1.1 200 OK
Cache-Control public, max-age=36000, s-maxage=36000
Transfer-Encoding chunked
Content-Type text/html
Server Microsoft-IIS/8.0
X-AspNet-Version 4.0.30319
X-Powered-By ASP.NET
Date Wed, 20 Aug 2014 02:34:12 GMT
you are sending back the wrong mime-type + it appears that you are not using response.close after streaming back the image in your asp.net code behind.
Open a new window in IE... copy and paste
http://nancyjoart.com/api/art/ThumbImage/fb958270-8c20-46e9-9adf-05ef6990ec85/250
in the address bar... the image loads but the document.readyState does not reach loaded. there is no EOF in the response body and it is served as text/html not image/jpg.
ensure Internet Options>Security tab, click "Reset all zones to default"... (IE has security settings for mime types) and also that Tracking Protection is turned off for the site (Tools>Tracking protection)
+ the defer attribute on the <script> tag only applies to script tags with a src attribute... validate and correct your markup errors at validator.w3.org.
Post questions about html, css and scripting to the IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
raise a question, it's highly recommended you head on over to http://answers.microsoft.com
Rob^_^ -
Error at the time of repository creation
Hi exprts
I am creating one rep_owner repository on my onsite server from offsheore machine and the time of creation i am getting the below error.
ERROR : The warehouse builder repository installtion failed on user REP_OWNER. INS0017 Installation of the seeded data failed.Oracle.wh.utill parser Parse exception
Please suggest me how i can overcome this error.
Thanks in advance
Regards
frndTry the following options :
1.dropping user OWBRT_SYS and all it's objects. Then create a new repository user with no problem. Insert records for previous repositories in OWB in OWBRT_SYS tables and try.
Alternate solution
===========
This problem has been reported in <Bug:3692835 >. This problem has been reported in <Bug:3692835>.
Fix :
[http://translate.google.co.uk/translate?hl=en&sl=zh-CN&u=http://www.oracle.com.cn/viewthread.php%3Ftid%3D53488%26extra%3Dpage%253D15&sa=X&oi=translate&resnum=5&ct=result&prev=/search%3Fq%3DINS0017%2BInstallation%2Bof%2Bthe%2Bseeded%2Bdata%2Bfailed.%26hl%3Den%26sa%3DG] -
"Could not complete your request because the file-format module cannot parse the file."
I have recently upgraded to PS CS5, operating on an imac with Mac OSX Lion.
Every now and then I get the message above when trying to open certain Raw (CR2) files in photoshop Raw converter.
If I try to only open the one specific raw file I get the above message, although if I open multiple raw files in one go, they all open fine, although when I scroll down to the image that can't be parsed I either get this mesage "Unable to swith to the current image. There was an error parsing the file" or photoshop freezes totally.
As far as I can see the images aren't corrupted becasue I'm able to view them with Bridge. I have never encounter this problem with my equipment before upgrading.
Does anyone have a solution?
Cheers in advance.
cabsIf an image has issues each time you try to open it in Camera RAW, then post a link so others can verify if it is indeed corrupted.
If you need to upload to www.YouSendIt.com or www.DropBox.com and then post the download link. -
Coherence Error at the time of Starting weblogic Server
Hi ,
I am getting below error at the time of starting Weblogic OSB managed server
We are using osb_cluster1 (Unicast) for osb_server1 managed server.
When Weblogic server try to start the managed server we get following Coherence errors and startup scripts try to point to Oracle Coherence 3.6.0.4.(its mainly happening in starting osb_server1 managed server, this error is not appearing during soa_server1 managed server start)
We don't want to use the coherence at all, we are trying to disable the coherence feature, but hardly getting any success in it, every time during server start-up following error appears.
Let me know if you have any solution to it.
####<Mar 5, 2012 9:18:55.424 AM > <Warning> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892335424> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): This Member(Id=0, Timestamp=2012-03-05 09:18:23.752, Address=11.49.63.33:7880, MachineId=31265, Location=site:kuy.co.wo,machine:deap-idm01,process:10629, Role=OSB-node) has been attempting to join the cluster using WKA list [sjsj-idm.kuy.co.wo/11.49.63.33:9003] for 31 seconds without success; this could indicate a mis-configured WKA, or it may simply be the result of a busy cluster or active failover.>
####<Mar 5, 2012 9:18:55.425 AM > <Warning> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892335425> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): Delaying formation of a new cluster; waiting for well-known nodes to respond>
####<Mar 5, 2012 9:22:58.769 AM > <Error> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892578769> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): Detected soft timeout) of {WrapperGuardable Guard{Daemon=IpMonitor} Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE), Id=0, Version=3.6}}>
####<Mar 5, 2012 9:22:58.770 AM > <Warning> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892578770> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): Attempting recovery of Guard{Daemon=IpMonitor}>
####<Mar 5, 2012 9:23:25.530 AM > <Error> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892605530> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): Failure to join a cluster for 301 seconds; stopping cluster service.>
####<Mar 5, 2012 9:23:25.879 AM > <Error> <Coherence> <sjsj-idm.kuy.co.wo> <osb_server1> <Logger@406289568 3.6.0.4> <<anonymous>> <> <3976a80e38d52337:-f13ff44:135df5aa8b6:-8000-0000000000000007> <1330892605879> <BEA-000000> <Oracle Coherence 3.6.0.4 (member=n/a): Error while starting cluster: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:637)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:4)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
at com.bea.alsb.coherence.impl.CoherenceProvider.<init>(CoherenceProvider.java:45)
at com.bea.alsb.coherence.impl.CoherenceProviderFactory.newInstance(CoherenceProviderFactory.java:21)
at com.bea.alsb.coherence.init.CoherenceAppListener.preStart(CoherenceAppListener.java:45)
at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:284)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:614)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:54)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:22)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:166)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)>
Edited by: 858026 on Mar 4, 2012 6:21 PM
Edited by: 858026 on Mar 4, 2012 6:23 PMHi NJ,
In WL console while setting up cluster I have given Messaging
Mode to Unicast,
By default Multicast address and ports comes up
Multicast Address - 239.192.0.0,
Multicast Port- 7001
I have modified the override file but still getting given error logs while server startup and its trying to look for override file in Oracle Coherence 3.6.0.4/coherence.jar
<!DOCTYPE coherence SYSTEM ""coherence.dtd"">
<coherence>
<cluster-config>
<!-- By default, this is using a multicast listener for cluster discovery, etc.
If you wish to use a unicast listener:
- update the entries in /coherence/unicast-listener/well-known-addresses/socket for each member of the cluster
(or specify the corresponding system properties)
- set the /coherence/unicast-listener/address to the host name of this machine
See http://coherence.oracle.com/display/COH35UG/well-known-addresses for more details. -->
<unicast-listener>
<well-known-addresses>
<socket-address id=""1"">
<address system-property=""OSB.coherence.wka1""></address>
<port system-property=""OSB.coherence.wka1.port""></port>
</socket-address>
<socket-address id=""2"">
<address system-property=""OSB.coherence.wka2""></address>
<port system-property=""OSB.coherence.wka2.port""></port>
</socket-address>
<socket-address id=""3"">
<address system-property=""OSB.coherence.wka3""></address>
<port system-property=""OSB.coherence.wka3.port""></port>
</socket-address>
<socket-address id=""4"">
<address system-property=""OSB.coherence.wka4""></address>
<port system-property=""OSB.coherence.wka4.port""></port>
</socket-address>
<socket-address id=""5"">
<address system-property=""OSB.coherence.wka5""></address>
<port system-property=""OSB.coherence.wka5.port""></port>
</socket-address>
<socket-address id=""6"">
<address system-property=""OSB.coherence.wka6""></address>
<port system-property=""OSB.coherence.wka6.port""></port>
</socket-address>
<socket-address id=""7"">
<address system-property=""OSB.coherence.wka7""></address>
<port system-property=""OSB.coherence.wka7.port""></port>
</socket-address>
<socket-address id=""8"">
<address system-property=""OSB.coherence.wka8""></address>
<port system-property=""OSB.coherence.wka8.port""></port>
</socket-address>
<socket-address id=""9"">
<address system-property=""OSB.coherence.wka9""></address>
<port system-property=""OSB.coherence.wka9.port""></port>
</socket-address>
</well-known-addresses>
<address system-property=""OSB.coherence.localhost"">127.0.0.1</address>
<port system-property=""OSB.coherence.localport"">7890</port>
</unicast-listener>
<multicast-listener>
<address system-property=""OSB.coherence.clusteraddress"">239.192.0.0</address>
<port system-property=""OSB.coherence.clusterport"">7001</port>
</multicast-listener>
</cluster-config>
</coherence>
####<Mar 6, 2012 3:00:44.050 PM NZDT> <Notice> <StdErr> <dete-idm01.hnz.co.nz> <osb_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1330999244050> <BEA-000000> <2012-03-06 15:00:44.015 Oracle Coherence 3.6.0.4 <Info> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'): Loaded operational configuration from "zip:/u01/app/oracle/product/OSB11.1.1.4/oracle_common/modules/oracle.coherence_3.6/coherence.jar!/tangosol-coherence.xml">
####<Mar 6, 2012 3:00:44.053 PM NZDT> <Notice> <StdErr> <dete-idm01.hnz.co.nz> <osb_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1330999244053> <BEA-000000> <2012-03-06 15:00:44.029 Oracle Coherence 3.6.0.4 <Info> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'): Loaded operational overrides from "zip:/u01/app/oracle/product/OSB11.1.1.4/oracle_common/modules/oracle.coherence_3.6/coherence.jar!/tangosol-coherence-override-dev.xml">
####<Mar 6, 2012 3:00:44.053 PM NZDT> <Notice> <StdErr> <dete-idm01.hnz.co.nz> <osb_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1330999244053> <BEA-000000> <2012-03-06 15:00:44.030 Oracle Coherence 3.6.0.4 <Info> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'): Loaded operational overrides from "zip:/u01/app/oracle/product/OSB11.1.1.4/user_projects/domains/OSBD/servers/osb_server1/tmp/_WL_user/ALSB Coherence Cache Provider/yannht/APP-INF/lib/com.bea.alsb.coherence-impl.jar!/tangosol-coherence-override.xml">
####<Mar 6, 2012 3:00:44.073 PM NZDT> <Error> <OSB Coherence WebLogic> <dete-idm01.hnz.co.nz> <osb_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0ed5cc20267507d3:a44cfd4:135e5bc3642:-8000-0000000000000003> <1330999244073> <BEA-2032481> <Unable to initialize OSB Coherence Cache Provider because there was an error starting Coherence:
com.bea.alsb.coherence.impl.ConfigurationException: Error starting Coherence from cache configuration file /coherence/osb-coherence-cache-config.xml:
(Wrapped) java.lang.reflect.InvocationTargetException
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1355)
at com.tangosol.net.CacheFactory.getCacheFactoryBuilderConfig(CacheFactory.java:1231)
at com.tangosol.net.CacheFactory.getCacheFactoryBuilder(CacheFactory.java:593)
at com.bea.alsb.coherence.impl.CoherenceProvider.<init>(CoherenceProvider.java:42)
at com.bea.alsb.coherence.impl.CoherenceProviderFactory.newInstance(CoherenceProviderFactory.java:21)
at com.bea.alsb.coherence.init.CoherenceAppListener.preStart(CoherenceAppListener.java:45)
at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: java.lang.reflect.InvocationTargetException
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.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1350)
... 29 more
Caused by: (Wrapped: Failed to apply the element override: /tangosol-coherence-override-dev.xml) (Wrapped: Failed to apply the element override: /tangosol-coherence-override.xml) (Wrapped: Failed to apply the element override: /coherence/osb-coherence-override.xml) (Wrapped) java.io.IOException: Exception occurred during parsing: looking for id=10, found id=1((0,29,13) Name coherence.dtd)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:83)
at com.tangosol.coherence.component.application.console.Coherence.loadConfiguration(Coherence.CDB:46)
at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:14)
at com.tangosol.coherence.component.application.console.Coherence.ensureRunningLogger(Coherence.CDB:10)
at com.tangosol.coherence.component.application.console.Coherence.getSafeCluster(Coherence.CDB:14)
at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:8)
... 34 more
Caused by: (Wrapped: Failed to apply the element override: /tangosol-coherence-override.xml) (Wrapped: Failed to apply the element override: /coherence/osb-coherence-override.xml) (Wrapped) java.io.IOException: Exception occurred during parsing: looking for id=10, found id=1((0,29,13) Name coherence.dtd)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:83)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:64)
... 39 more
Caused by: (Wrapped: Failed to apply the element override: /coherence/osb-coherence-override.xml) (Wrapped) java.io.IOException: Exception occurred during parsing: looking for id=10, found id=1((0,29,13) Name coherence.dtd)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:83)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:64)
... 40 more
Caused by: (Wrapped) java.io.IOException: Exception occurred during parsing: looking for id=10, found id=1((0,29,13) Name coherence.dtd)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:120)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:155)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:41)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:64)
at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:64)
at com.tangosol.coherence.component.application.console.Coherence.loadConfiguration(Coherence.CDB:46)
at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:14)
at com.tangosol.coherence.component.application.console.Coherence.ensureRunningLogger(Coherence.CDB:10)
at com.tangosol.coherence.component.application.console.Coherence.getSafeCluster(Coherence.CDB:16)
at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:8)
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.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1350)
at com.tangosol.net.CacheFactory.getCacheFactoryBuilderConfig(CacheFactory.java:1231)
at com.tangosol.net.CacheFactory.getCacheFactoryBuilder(CacheFactory.java:593)
at com.bea.alsb.coherence.impl.CoherenceProvider.<init>(CoherenceProvider.java:42)
at com.bea.alsb.coherence.impl.CoherenceProviderFactory.newInstance(CoherenceProviderFactory.java:21)
at com.bea.alsb.coherence.init.CoherenceAppListener.preStart(CoherenceAppListener.java:45)
at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:284)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:614)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:54)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:22)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:166)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
... 3 more
Caused by: java.io.IOException: Exception occurred during parsing: looking for id=10, found id=1((0,29,13) Name coherence.dtd)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:134)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:71)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:84)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:116)
... 43 more
The error can be caused by one of the following:
1) The operational configuration file is invalid (see $DOMAIN_DIR$/config/osb/coherence/osb-coherence-override.xml)
2) The cache configuration file is invalid (see $DOMAIN_DIR$/config/osb/coherence/osb-coherence-cache-config.xml)> -
File-format module cannot parse the file
What does the error message: "Could not complete your request because the file-format module cannot parse the file." mean? I made the png image in PS. Now it can't parse it, but I don't know what that means or how to correct it.
KaCeDear Curious,
I volunteer my time too. I help others learn about Adobe software. I am not "trained" in this, but learn as I go. I have never had the warning I wrote about and that is why I posted. I thought as much, but posted anyway to be sure that I wasn't missing some clue. I deal with a large number of applications and all levels of members. It may be easy to be glib, but the hours I spend helping others is as valid as yours. I may not have points, but that is because I don't 'know' all I feel I should to answer. We each contribute as we can. I do wish I had more training, and I work on line with the Lynda.com series. Thank you for your help. I hope your curiosity is satisfied. :-)
KaCe
PS
If you have a lot of skills in PS and didn't mind the occasional question I'd like to write you again. -
I am getting this popup error when trying to open a .gif file:
"Could not complete your request because the file-format module cannot parse the file."
This comes up every time I try to open a .gif file. Even if I make a .gif file (like the image included in this post), save it and then try to open it again, I get the same error. I tried reinstalling CS4, but the error is still there. I have also done the reset on start-up and nothing. Some have suggested that I open it in (Windows XP Pro) MS Paint and then save it again. Did it and this does NOT work for me, either.
I know it's a Photoshop problem because I can see this file everywhere, except Photoshop. It will open here, there and everywhere, except for Photoshop.
I've searched the Adobe Commmunity and it looks like no one has come up with a fix for this. I'm just currious after 5 years with this problem, has there been a solution?
ScottOne of the files that has the error is in my first post.
Adobe Photoshop Version: 11.0
Operating System: Windows XP 32-bit
Version: 5.1 Service Pack 3
System architecture: AMD CPU Family:15, Model:10, Stepping:0 with MMX, SSE Integer, SSE FP, SSE2
Physical processor count: 6
Processor speed: 3210 MHz
Video Card: NVIDIA GeForce GTX 460
Video Mode: 1280 x 1024 x 4294967296 colors
Video Card Driver: nv4_disp.dll
Driver Version: 6.14.13.0623
Built-in memory: 3289 MB
Free memory: 257 MB
Memory available to Photoshop: 1677 MB
Memory used by Photoshop: 69 %
Image cache levels: 4
Serial number: xxxxxxxxxxxxxxx
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS4\
Temporary file path: C:\DOCUME~1\xxxxxx\LOCALS~1\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
F:\, 233.7G, 145.7G free
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS4\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
ACE.dll ACE 2008/08/27-18:10:41
AdobeLinguistic.dll Adobe Linguisitc Library 4.0.0
AdobeLM.dll AdobeLM 3.0.11.10077 53.352460
AdobeLM_libFNP.dll FLEXnet Publisher (32 bit) 11.5.0.1 build 57427
AdobeOwl.dll Adobe Owl
AdobeOwlCanvas.dll Adobe Owl Canvas
AdobePDFL.dll PDFL 2008/08/20-20:15:08
AdobeUpdater.dll Adobe Updater Library
AdobeXMP.dll Adobe XMP Core
AdobeXMPFiles.dll Adobe XMP Files 4.2.2 53.352624
AdobeXMPScript.dll Adobe XMP Script 4.2.2 53.352624
adobe_caps.dll Adobe CAPS 2,0,99,0 2.135373
adobe_epic.dll Adobe EPIC 3.0.1.10077 53.352460
adobe_eula.dll Adobe EPIC EULA 3.0.1.10077
AFlamingo.dll AFlamingo
AGM.dll AGM
ahclient.dll AdobeHelp Dynamic Link Library 1, 3, 12, 0
aif_core.dll AIF 1.0
aif_ogl.dll AIF 1.0
amtlib.dll AMTLib 2.0.1.10077 53.352460
amtservices.dll AMTServices 2.0.1.10077 53.352460
ARE.dll ARE 2008/08/27-18:10:41
asneu.dll AsnEndUser Dynamic Link Library 1, 6, 0, 8
authplay.dll
AXE8SharedExpat.dll AXE8SharedExpat
AXEDOMCore.dll AXEDOMCore
Bib.dll BIB
BIBUtils.dll BIBUtils
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2008/08/27-18:10:41
data_flow.dll AIF 1.0 53.352475
ExtendScript.dll ExtendScript
FileInfo.dll Adobe XMP FileInfo 4.2.2
FNP_Act_Installer.dll FLEXnet Publisher (32 bit)
icucnv36.dll
icudt36.dll
image_flow.dll AIF 1.0 53.352475
image_runtime.dll AIF 1.0 53.352475
JP2KLib.dll JP2KLib 2008/06/11-20:19:53 53.100857 53.100857
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
MPS.dll MPS 2008/07/07-10:33:04 53.350311 53.350311
msvcp71.dll Microsoft® Visual Studio .NET 7.10.3077.0
msvcr71.dll Microsoft® Visual Studio .NET 7.10.3052.4
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS4 CS4
Plugin.dll Adobe Photoshop CS4 CS4
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (32 bit) 1.0.0.73
PSArt.dll Adobe Photoshop CS4 CS4
PSViews.dll Adobe Photoshop CS4 CS4
registration.dll Registration
SCCore.dll ScCore
shfolder.dll Microsoft(R) Windows (R) 2000 Operating System
WRServices.dll WRServices
Installed plug-ins:
3D Studio 11.0
ADM 3.11x01
Accented Edges 11.0
Angled Strokes 11.0
Average 11.0
BMP 11.0
Bas Relief 11.0
Camera Raw 5.0
Chalk & Charcoal 11.0
Charcoal 11.0
Chrome 11.0
Cineon 11.0
Clouds 11.0
Collada 11.0
Color Halftone 11.0
Colored Pencil 11.0
CompuServe GIF 11.0
Conté Crayon 11.0
Craquelure 11.0
Crop and Straighten Photos 11.0
Crop and Straighten Photos Filter 11.0
Crosshatch 11.0
Crystallize 11.0
Cutout 11.0
Dark Strokes 11.0
De-Interlace 11.0
Dicom 11.0
Difference Clouds 11.0
Diffuse Glow 11.0
Displace 11.0
Dry Brush 11.0
Embed Watermark 3.0
Entropy 11.0
Extrude 11.0
FXG 11.0
FastCore Routines 11.0
Fibers 11.0
Film Grain 11.0
Filmstrip 11.0
Filter Gallery 11.0
Fresco 11.0
Glass 11.0
Glowing Edges 11.0
Google Earth 4 11.0
Grain 11.0
Graphic Pen 11.0
HDRMergeUI 11.0
Halftone Pattern 11.0
IFF Format 11.0
Ink Outlines 11.0
Kurtosis 11.0
Lens Blur 11.0
Lens Correction 11.0
Lens Flare 11.0
Lighting Effects 11.0
Liquify 11.0
MMXCore Routines 11.0
Matlab Operation 11.0
Maximum 11.0
Mean 11.0
Measurement Core 11.0
Median 11.0
Mezzotint 11.0
Minimum 11.0
Mosaic Tiles 11.0
Multiprocessor Support 11.0
NTSC Colors 11.0
Neon Glow 11.0
Note Paper 11.0
Ocean Ripple 11.0
OpenEXR 11.0
PCX 11.0
PNG 11.0
Paint Daubs 11.0
Palette Knife 11.0
Patchwork 11.0
Paths to Illustrator 11.0
Photocopy 11.0
Photoshop 3D Engine 11.0
Picture Package Filter 11.0
Pinch 11.0
Pixar 11.0
Plaster 11.0
Plastic Wrap 11.0
Pointillize 11.0
Polar Coordinates 11.0
Portable Bit Map 11.0
Poster Edges 11.0
Radial Blur 11.0
Radiance 11.0
Range 11.0
Read Watermark 3.0
Reticulation 11.0
Ripple 11.0
Rough Pastels 11.0
Save for Web & Devices 11.0
ScriptingSupport 11.0
Send Video Preview to Device 11.0
Shear 11.0
Skewness 11.0
Smart Blur 11.0
Smudge Stick 11.0
Solarize 11.0
Spatter 11.0
Spherize 11.0
Sponge 11.0
Sprayed Strokes 11.0
Stained Glass 11.0
Stamp 11.0
Standard Deviation 11.0
Sumi-e 11.0
Summation 11.0
Targa 11.0
Texturizer 11.0
Tiles 11.0
Torn Edges 11.0
Twain Acquire 11.0
Twain Select 11.0
Twirl 11.0
U3D 11.0
Underpainting 11.0
Vanishing Point 11.0
Variance 11.0
Variations 11.0 (11.0x001)
Video Preview 11.0
WIA Support 11.0
Water Paper 11.0
Watercolor 11.0
Wave 11.0
Wavefront|OBJ 11.0
Wind 11.0
Wireless Bitmap 11.0
ZigZag 11.0
Plug-ins that failed to load: NONE
Flash:
Connections
Kuler
Installed TWAIN devices:
WIA-hp officejet 6100 series
hp officejet 6100 series TWAIN -
XI SOAP adapter : Error during parsing the SOAP part
Hello experts,
We have several scenarios SOAP to IDocs.
We are on XI 3.0 SP19, and since 9/6/09 around 4:00 PM GMT, our SOAP channels used to communicate with a specific 3rd party all stoped accepting incoming SOAP requests. All the messages are stucked on third party side, and we get the following error in the defaulttrace and application logs :
#1.5#001125A5BCD00066000076850013109E00046BF6A963E479#1244607054865#/Applications/ExchangeInfrastructure/AdapterFramework/SAPLibraries/SAPXDK#sap.com/com.sap.aii.af.soapadapter#com.sap.aii.messaging.mo.Message.reparseRootDocument()#PIMSOAP#21217##pxaci_PXA_6443451#PIMSOAP#a71ebfa0556d11decc24001125a5bcd0#SAPEngine_Application_Thread[impl:3]_50##0#0#Error#1#com.sap.aii.messaging.mo.Message#Plain###Error during parsing the SOAP part --- java.lang.NullPointerException#
It happened at the same time on all the environments for every interfaces using SOAP message from this sender to XI. That's the reason why we think it is a global issue, but we can not find anything concerning this error. Has anybody encountered this error or would have any clue of where it comes from ?
Many thanks,
Best regards,
GuislainHello Michal,
Thanks a lot for your help. Actualy we have tested with SOAP UI yesterday and this is what came out of the tests :
test 1 : we tried to call the XI service with the wsdl and put dummy data inside --> test OK
test 2 : we loaded in SOAP UI one of the file from our partner and tried to call the service --> test NOT OK
test 3 : we realized that there were some blank lines at the beginning of the file provided by the partner. we removed these blank lines --> test OK.
So we first thought that the format of the file sent by the partner was wrong and this is why we were getting the parsing error, because of these blank line. The thing is that these blank lines have always been here ! We have checked with old successful messages and they contain also these lines and if we test them in SOAP UI we get an error also. so it does not seems to come from this.
Moreover, as I said in my previous message, it happened on all the environments approximatly at the same time, so we are suspecting a global problem, but which one ? That's the million dollar question
Would you have any other ideas ?
Thanks a lot,
Best regards,
Guislain -
Receiver SOAP channel error-- Cant parse the document; HTTP 200 OK
Hi All,
I am facing below error in SOAP receiver communication channel
SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Cant parse the document; HTTP 200 OK
If I use "Do Not se SOAP Envelop" in receiver communication channel then it shows successfully delivered in message monitoring but never reached to target application. And if I uncheck "Do Not se SOAP Envelop" then the error is as I mentioned above.
Both ways it not working foe me.
Please advice.
Thanks
ShiviHi
I had a similar issue recent times and I have enablede the xpi inspector to check the logs of the request and the response sent and received...
Based on that you can check whether your payload is able to sent to receiver in proper format or any other issues..
Also try to check the payload format using the SOAPUI whether the ws is working fine for that or not.
HTH
Rajesh -
Reducing the time for select query
Hi
Please advise why the query is taking too much time to execute when the cost involved in the joins is less.
Here is the explain plan for the same
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 4989 | 984K| | 295K (1)| 00:59:09 |
| 1 | SORT ORDER BY | | 4989 | 984K| 2120K| 295K (1)| 00:59:09 |
|* 2 | FILTER | | | | | | |
|* 3 | HASH JOIN | | 4989 | 984K| | 12975 (1)| 00:02:36 |
|* 4 | HASH JOIN | | 4989 | 862K| | 11943 (1)| 00:02:24 |
| 5 | TABLE ACCESS FULL | tedy_hf | 993 | 22839 | | 17 (0)| 00:00:01 |
|* 6 | HASH JOIN | | 4989 | 750K| | 11925 (1)| 00:02:24 |
|* 7 | TABLE ACCESS FULL | tedy_hf453 | 145 | 2465 | | 7 (0)| 00:00:01 |
|* 8 | HASH JOIN | | 4989 | 667K| | 11917 (1)| 00:02:24 |
|* 9 | INDEX SKIP SCAN | tedy_ehf33 | 4987 | 116K| | 4992 (1)| 00:01:00 |
|* 10 | TABLE ACCESS FULL| tedy_7nl | 43367 | 4785K| | 6925 (1)| 00:01:24 |
| 11 | TABLE ACCESS FULL | tedy_hfeei | 89616 | 2187K| | 1032 (1)| 00:00:13 |
|* 12 | TABLE ACCESS FULL | tedy_hf455 | 2 | 32 | | 113 (0)| 00:00:02 |
--------------------------------------------------------------------------------------------------Because the cost is internally calculated by the Cost Based Optimizer using the data available when parsing the query (tables, columns, constraints, cardinalities, etc...). If you feed it bad information (stale statistics, not using NOT NULL constraints, check constraints, foreign key constraints, etc..) it chooses inappropriate access methods.
Based on what you've posted, not much help is possible.
When your query takes too long ...
and
HOW TO: Post a SQL statement tuning request - template posting
Will get you started on providing meaningful information with which we can help you. -
Code to parse the XML stored in a XMLTYPE field in database
Hi All,
Please can someone forward me the code to parse the XML retrieved from the oracle database. I want to parse the whole xml, any node any attribute and store the extracted values in database. For example:
<mail>
<mailing_list name="test1">
<mailing_list_users>
<user email="[email protected]" address="abcd" />
<user email="[email protected]" address="abcdef" />
</mailing_list_users>
</mailing_list>
<mailing_list name="test2">
<mailing_list_users>
<user email="[email protected]" address="abcd1" />
<user email="[email protected]" address="abcdef1" />
</mailing_list_users>
</mailing_list>
</mail>
In this example, i want to loop thru all the mailing lists to extract therir values and under each mailing lists i want to loop thru all the users and their details.
I require this urgently. Any help will be appreciated.I am not sure if this is the correct way to do it but I found such class from my old codes:
import java.util.*;
* class for parsing strange value of time to "normal" view
public class NumericToTime
GregorianCalendar gc = null;
StringTokenizer st = null;
int days, hours, minutes, seconds, milliseconds;
float fract;
public NumericToTime(String str)
try
gc = new GregorianCalendar(1900,0,0);
st = new StringTokenizer(str, ".");
days = Integer.parseInt(st.nextToken());
Float f = new Float("0." + st.nextToken());
fract = f.floatValue();
catch(NoSuchElementException e)
fract = 0.0f;
* method which calculate time
public void calculateTime()
float h, m, s;
gc.add(GregorianCalendar.DATE, days-1);//days-1 MS'i fenomeenil baseeruv "patch"
h = (float)(24.0*fract); hours = (int)h;
gc.set(GregorianCalendar.HOUR, hours);
m = (float)(60.0*(h - (float)hours)); minutes = (int)m;
gc.set(GregorianCalendar.MINUTE, minutes);
s = (float)(60.0*(m - (float)minutes)); seconds = (int)s;
gc.set(GregorianCalendar.SECOND, seconds);
milliseconds = (int)(1000.0*(s - (float)seconds));
gc.set(GregorianCalendar.MILLISECOND, milliseconds);
* method which return time value as Date object
public Date getTime() {
return gc.getTime();
Hope this is some help for You! -
How to save the time to a .txt file and retrive it back as time?
I have to save the time [hour:minute:second] and the date [date:month:year] to a .txt file. I am using the Calendar API to set the time and date as below
FileOutputStream fileStream = new FileOutputStream ("what.txt");
PrintWriter pw=new PrintWriter(fileStream, true);
Calendar curDate = Calendar.getInstance();
System.out.print(curDate.get(Calendar.DATE)+":");
System.out.print(months[curDate.get(Calendar.MONTH)]+":");
System.out.print(curDate.get(Calendar.YEAR));
pw.println(curDate);
I'll have to retrive these data back to use it to set timer
timer = new Timer();
timer.schedule(new RemindTask(), time);
I try to retrive the data and use the Calendar API to that data by using the below program.
I get the error as :
C:\t\Retrivedate.java:41: int cannot be dereferenced
System.out.print(t.get(Calendar.DATE)+":");
How can I solve this so that I can use Calendar API on my retrived data?
import java.io.*;
import java.util.*;
import java.lang.*;
class Test {
public static void main(String args[]) {
try {
File inputFile = new File("what.txt");
FileReader in = new FileReader("what.txt");
int t;
char[] tmp = new char[100];
int cnt = in.read(tmp);
String tm="";
for (int j=0;j<cnt;j++)
{ tm+=tmp[j];
try {
t=Integer.parseInt(tm,10);
catch (NumberFormatException exception) {}
System.out.println("jika "+tm);
Calendar curDate = Calendar.getInstance();
String months[]={
"Jan","Feb","Mar","Apr",
"May","June","July","Aug",
"Sept","Oct","Nov","Dec"};
Date time1 = curDate.getTime();
System.out.print(" \n"+time1.getHours());
System.out.print(":"+time1.getMinutes());
System.out.println(":"+time1.getSeconds());
System.out.print(t.get(Calendar.DATE)+":");
System.out.print(months[t.get(Calendar.MONTH)]+":");
System.out.print(t.get(Calendar.YEAR));
in.close(); }
catch (IOException ex) {
System.out.println("IOException:"+ex.toString()); }These lines do not make sense:
System.out.print(t.get(Calendar.DATE)+":");
System.out.print(months[t.get(Calendar.MONTH)]+":");
System.out.print(t.get(Calendar.YEAR));
1. t is an integer, it does not have any methods.
2. It's a bad idea to use char[] to retrive the date. You should use readLine() method to retrieve the whole date string, say "10/23/2001" (certainly you can have hours, minutes, seconds, etc.). Then you need to use SimpleDateFormat class to parse this string. SimpleDateFormat gives you everything to parse a date string in any format you want.
PC
Maybe you are looking for
-
How do I get my iPad to sync videos with my mac?
I recently purchased all 7 of the Harry Potter films off iTunes as a bundle package. I had purched these items on my iPad. All the films have wirelessly synced with all my devices, my phone and my partners phone, so they are all curently working on a
-
What is the difference between NetWeaver 7.3 and NetWeaver 7.03?
Hi Experts, Can anydoby explain me the difference between NetWeaver 7.3 and NetWeaver 7.03? or say difference between NetWeaver 7.2 and NetWeaver 7.02? I have been confused by these 2 terms. As far as I know, the features of AS ABAP in NetWeaver 7.3
-
I have a small storage server and want to connect to it via Ethernet. I also want to connect the internet using a separate Wifi router from my provider. How can I do both?
-
Get rid of SQL ID from database
1. The SQL query is running nore than 30 mints with SQL ID aaaaabbb7RRRR . we killed the seesion and clear cache again we ran the query, the query is assigned to same sql ID aaaaabbb7RRRR we killed the seesion and clear cache ran query one more time
-
Sales order line item delete error for MTO sales order
Dear Experts iam facing below error for MTO sales order line item deletion "For reasons of cost management, item 000040 cannot be deleted" Please help Regards, KEdar