XMLStreamWriter does strange things when writing on network share
Hi,
I'm writing a file in two different formats onto a network share using CIFS. The first is a simple ASCII-TXT Format using a PrintWriter,
the second is a XML-Format using a XMLStreamWriter. Writing the XML-Format is extreamly slow compared to the ASCII-Format (only
writing over network, not localy). Since I got the same behavior writing from a Linux-System or a Windows-System to a Linux SMB-Server
or a Windows file share I used a network sniffer to take a look at the network traffic. The result was this:
A: PrintWriter.write()
636 96.374675 192.168.0.39 192.168.0.200 SMB NT Create AndX Request, FID: 0x2216, Path: //weser/../Test.psg
637 96.375152 192.168.0.200 192.168.0.39 SMB NT Create AndX Response, FID: 0x2216
643 96.421806 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2216, 8192 bytes at offset 0
648 96.423008 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2216, 8192 bytes
650 96.491589 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2216, 8192 bytes at offset 8192
663 96.510346 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2216, 8192 bytes at offset 24576B: XMLStreamWriter.write()
761 102.802819 192.168.0.39 192.168.0.200 SMB NT Create AndX Request, FID: 0x2217, Path: //weser/../Test.xyo
762 102.803363 192.168.0.200 192.168.0.39 SMB NT Create AndX Response, FID: 0x2217
767 102.808980 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 1 byte at offset 0
768 102.809379 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 1 byte
769 102.809481 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 2 bytes at offset 0
770 102.809774 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 2 bytes
771 102.809859 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 3 bytes at offset 0
772 102.810085 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 3 bytes
14373 105.289670 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 4096 bytes at offset 0
14376 105.290347 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 4096 bytes
14377 105.290425 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 1 byte at offset 4096
14378 105.290779 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 1 byte
14379 105.290846 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 2 bytes at offset 4096
14380 105.291071 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 2 bytes
14381 105.291148 192.168.0.39 192.168.0.200 SMB Write AndX Request, FID: 0x2217, 3 bytes at offset 4096
14382 105.291446 192.168.0.200 192.168.0.39 SMB Write AndX Response, FID: 0x2217, 3 bytesWhich means that using the XMLStreamWriter the first byte is send 4096 times, the second byte is send 4095 times ... till the next
block starts at the next offset. My question is why and what to do about it ...
Yours,
Andreas
Yup, that was the problem. Sometimes it can be so easy ...
Thanks for the quick answer.
Yours,
Andreas
Similar Messages
-
Help! Ipod does strange things when connected to a comp!
hey guys,
ok my Ipod seems to not be able to work when connected to a computer.
My Ipod mini doesnt work at all when connected to a computer. After charging my Ipod for afew hours (i've noted it hasnt hit full power yet an will be waiting now till it is fully charged again till i retry) but i connect my ipod through a usb port (tried mulitple ports) and it immediately goes from almost full battery to saying "do not disconnect" then it starts audibly beeping and the screen changes to the screen telling me there is no battery power left.
The Ipod is not even charging while connected to the computer apart from the 1st few seconds of being connected. The ipod then stays on the screen of the graphic of the empty battery with the exclamation point.
Nowhere do i see the computer or Itunes recognising the ipod being connected, i only hear the sound the computer makes wen it disconnects after the ipod crashes.
Ipod only malfunctions when attached to a computer and works normally when playing music.
thanx for any help guys
- Spruceok update, ive now charged the ipod (left it for approx 10 hours) with the screen showing it was charging. After the approx 10 hours it hadnt reached full. I disconnected the ipod mini and tried to listen to 1 song and it told me the battery was empty.
im now assuming the problem has only to do with just the battery.
Anyone got any ideas? -
WRT54G ver.7 does strange things
hello everybody!
i've bought a WRT54-G (ver.7) router about 2 years before, but it does strange things
1. sometimes i can't see the admin interface. i type 192.168.1.1, give
password, but i can only get a white, blank page without any text. when this
happens, just a router & modem restart or reset can help.I use the network
every day, through weeks...but it happens in about a few days. why does it
do it? i need it everytime!
2. three computers connected to the router, 2 with UTP cables, 1 via WiFi.
If the computer with wifi is working and one of the "UTP computers" too,
then the 3rd computer (with UTP) only see limited connectivity, but 2 dhcps
are enabled in the router settings, with 2 static DNS..I use WEP2 security
to my wirless connectivity, and only just my notebook's MAC address is
enabled to use the network. my router's password is not default, so nobody
can steal my bandwidth.
i can't find newer firmware verison than ver. 7.00.4..i've bought it with this version
i don't use any firewalls, windows firewall is disabled too
thanks for your answer!Have you tried to reset your Router and Re-configure all the settings on your router back again. If not please do it now, Press and hold the reset button for 60 seconds...Release the reset button...Unplug the power cable from your router, wait for 60 seconds and re-connect the power cable...Now re-configure your router.....
-
My imac is doing strange things:
-delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
-it gets stuck between things, the rainbow wheel appears and its just delays there forever....
-and every now and then the mouse starts flickering and bouncing wildly onscreen.
I ran the appel hardware test and it detected an error:
4MOT/4/40000003:HDD-1233
Does anybody know what that means? HELP!WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
Hope you get it taken care of! -
one of my phones keeps doing strange things. First the bluetooth stops working (even when settings are on), then Find My iPhone then stops working. iPhone shuts down for no reason during usage, etc. the list can go on. I have rebooted, updated, etc. to no changes. Ideas????
A little long but this thread might help with the 1013 error... http://discussions.apple.com/thread.jspa?messageID=12632690�
-
My iPhone 5 keeps typing letters in messages and doing random things when not even touching my phone.
Do a reset press& hold power button&a menu button hold both down wait for Apple Logo you will not lose any data
that should solve the problem.
bsydd uk -
My PowerMac G5 started doing strange things today
My G5 started doing some strange things this afternoon. i thought it was a sofware problem with one of my programs and decided to reboot. When i tried to restart the system it started to reboot, but then stopped. i tried several times with differing results. One time i got the white start-up scrdeen, but got no further. Another time i got the chime, but nothing else. i then noticed a liquid seeping from the bottom of the case. This doesn't appear to be water as it has a very slightly "oily" consistency. i have definitely not spilt anything anywhere near the G5. Very odd. Anyone know what is going on and can it be fixed?
Thank you both for your valued input. My machine is the Dual 2.7 GHz PowerPC G5. I suspect that you have given me my answer as it is still leaking, although I do now have it up and running, for the time being! I hadn't realised that mine effectively had an in-built airconditioner, that could and would likely go wrong!
I have been planning to replace my G5 for some time now and I guess that I will now have to bite the mighty bullet. In many ways this is long overdue, given all the PowerPC / Intel issues that I have with up-grading much of the software I require as a photographer.
In the meantime I am ensuring that my backups are up to date, whilst it still has some life. I am also creating a full backup of my applications disk so that I can transfer stuff to a new machine without having to reload/ rundown some of my more esoteric apps. Luckily all my data is backed up twice daily.
One further question if I may, do the current twelve core Mac Pro's use this type of cooling system? -
Strange thing when moving files
Since upgrading to lion have had no problems but today a really strange thing happened when moving a file by drag and drop to a usb stick.
Dragged and dropped the file no problem then dropped the stick to unmount it.
Removed the stick ok, then when looking at the desktop the stick was still there and the file was still over the stick.
The only way i could get rid of these ghost files was to reboot.
It happened everytime i did this
Any idea what maybe happening.
I tried to drag and drop the ghost files in the bin but they would not moveHi,
this sounds like a customer support case. I am not sure this can be solved on the forum unless some other users have the same problem and know how to work around it. If this is due to a platform bug then the only solution is customer support to get this fixed.
Frank -
imac, 20", running 10.5.8 Using any mouse (not mouse specific)
There have been some strange things happening to the imac lately.
Some examples:
-in any browser (camino, safari) in Google maps for instance, placing the mouse curser in a map window, it'll zoom right down to the closest level. When I try zooming out, it zipps right back in.
-in Aperture, while viewing a full screen photo and (using the keyboard) hitting the next arrow, it'll flay though ALL the photos instead of just the next one.
-in Garage band, when trying to move (drag) a track in the timeline, it shoots back to wherever it wants to.
-in Simms 2, the pointer disappears, menu bar flashes on and off, and the main view window spins (looking at sky, ground, up, down left right) all on it's own.
This issue doesn't seem to be application specific, and I've tried different mice. I've run disk repair (and permissions etc) and run FSCK. will shut down and/or restart and the problem may be gone for a few hours, but keeps coming back. The imac is backed up with time machine.
Any suggestions?
Should I erase the drive and restore from Time Machine?
(I've resisted going to Snow Leopard because I'm not sure Simms2 works with it)I would try resetting your computer's PRAM and running a Safe Boot. To do so, boot your machine with the Shift key held down. See this support document for more information.
Since you're running 10.5, download and run the 10.5.8 Combo Updater. It will re-apply any system patches needed, and may fix whatever is going in with your zooming issues. -
K7N420Pro memory upgrade doing strange things
i just recently upgraded from 2x256 in slots 1/3 to 2x512 in the same slots. memory is at a low now (US$75 per 512), so i thought might as well. both before and after rams are kingston made, and certified on the nvidia website. the only difference is that the 256s were USA manufactured, and the 512s were taiwan made. both rams non-ECC.
since changing memory i've experienced 'strange things'. sometimes windows does things i never intended. it created a shortcut by itself, right before my eyes, and i swear google did a search for some gibberish phrase without my intervention. last night i experienced my first win xp blue screen (i thought the blue screen was obsolete?!?). can't remembered what exactly it said, but i believe to be some memory location conflict.
my BIOS is set to high performance and i din't change anything before and after upgrade. i din't activate any shadowing or chaching in memory that i'm aware of. auto precharge on, cl 2.5 as rated by my ram.
if anyone can offer advice please do!
setup:
athlon xp 2000+ w/ amd issue fan
k7n420 pro bios 2.4
2x512 kingston ddr ram (kvr266x64c25/512) slots 1/3
msi geforce 4 ti 4200 64mb agp 8x
terratec dmx 6fire 24/96
philips 17" dual crt monitorsthanks for the link to the software!
Quote
Hi performance settings mean X, 2, 2. (X is the CAS setting, set in BIOS).
what do you mean X,2,2? is it something i need to set in memtest?
Quote
If you have errors in memtest, try default (and change the rest of the options back to your settings).
i did not get errors after 1 pass with default test setup. i guess that is ok?
Quote
also, what is your power supply? i see you have a XP2000 plus a GF4. If you were just marginally supplying your RAM a bigger bank could cause instability.
i run a 430watt enermax.
well since i last posted, i removed and reinserted my ram into their slots as i had a feeling i din't do it properly the last time (gfx card got in the way). so far no strange glitches, keeping my fingers crossed.
will cooling the ram with a heatsink help stability? -
IPad does crazy things when not touched
Basically, I'll be going along on an app or on safari or anything and then randomly my iPad will just start doing crazy things, and I can't do anything. So for example, I'll be on safari and then my iPad will scroll up to the top of the page, type in the address bar some random numbers and letters and just keep doing that. And then the only way (sometimes) to stop it is to lock the screen, but sometimes that doesn't even work and I then can't even unlock the iPad for a few seconds. I've tried restoring it but that doesn't do anything. Is there anything else I could try or should I just take it to a genius bar?
You may need to get it back to Apple, but this is worth a try if you haven't done it already.
Try a hard reset by pressing and holding down on the sleep button at the top of the iPad while holding down on the home button at the bottom, until the Apple logo appears and the iPad restarts. Launch any app, surf the net, whatever, and see what happens. -
How to remove confirmation prompt when deleting from network share on Windows 8?
Regarding the question, on Windows 7 if I uncheck "Display delete confirmation dialog" I could delete a file without confirmation whether it's on local or network share but in Windows 8 this only affects the data on local drive only and if I try
to delete anything from network the confirmation dialog appears even though "Display delete confirmation dialog"is unmarked. Are there any ways to alter this behavior?No, it does not. This only works on my local drives. If I tried to delete anything on my network share (mapped drive etc..) It always gives me the prompt whether the checkbox is marked or not. This seems to be a problem only on Windows 8 as I have no problem
with Windows 7
BTW, my file servers are running Win 2012 and 2008R2 -
Time Machine doing strange things
Hi folks,
So I recently upgraded my hard drive, and restored from my Time Machine backup and everything came back just as it was, which was great. However, now I am having some serious Time Machine issues. It deleted all of my old backups, which I understand happens when you restore? That is kind of annoying, but whatever, I can live with it.
However, what's really strange is that now it tries to backup, and it's telling me it needs 270 GB and I only have 163 GB available. But there is already one backup on there, so I'm not sure why it thinks it needs to start from scratch basically (at least I think that's what it's doing, as my account only has 235 GB of used space total). And what's really strange is that when I check out the space on my Time Machine hard drive, when I click "Get Info" on the backups folder, it says that it's 130 GB, but when I scan the drive with DaisyDisk, it tells me that it's over 200 GB, but not hidden or anything, and I just cannot figure out where all that extra space that is being taken up is.
So what I'm actually considering doing is just deleting the backup folder all together (although I don't know if this will get rid of just the 130 GB that it says it is, or all of it), and letting Time Machine start over. Is that a good or bad idea? Any ideas as to what the heck is going on? Any thoughts would be much appreciated.
Thanks in advance!sbollag wrote:
now it tries to backup, and it's telling me it needs 270 GB
That means it's actually trying to back up about 225 GB (it adds about 20% for workspace), so yes, that's a full backup (less the things it skips, such as system work files, most caches and logs, trash, etc.).
And what's really strange is that when I check out the space on my Time Machine hard drive, when I click "Get Info" on the backups folder, it says that it's 130 GB, but when I scan the drive with DaisyDisk, it tells me that it's over 200 GB,
Believe Get Info. Time Machine backups have an unusual structure that cause many apps to count things more than once. See Hard Links in How Time Machine works its Magic for details.
So what I'm actually considering doing is just deleting the backup folder all together (although I don't know if this will get rid of just the 130 GB that it says it is, or all of it), and letting Time Machine start over.
Yes, but don't delete it (emptying the trash will take a very long time and may cause other troubles). Erase it with Disk Utility -- that will just take a few moments.
What's happened is, Time Machine is treating your disk as a new one (it shouldn't on Snow Leoaprd, but sometimes it does). So it deleted all but the last backup of the "old" one, trying to make room.
It sounds like your TM drive may be a bit too small. Usually, it needs at least twice the space of the data it's backing-up. See #1 in Time Machine - Frequently Asked Questions. You might want to put a larger one on your Christmas list.
Then you can use the old one for "secondary" backups. See #27 in that same link for some suggestions. -
Launchpad doing strange things
Hi there,
When I scroll to the right to access page 2 in launch pad, it goes across to the page but then seems to recoil back to page 1 when I let go the mouse. Anybody got any suggestions. It has only recently started doing this.
RogerPlease read this whole message before doing anything. This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it. Step 1 The purpose of this step is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.” While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin. Test while logged in as Guest. Same problem? After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it. *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing. Step 2 The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
When you see the gray Apple logo, release the shift key.
If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
*Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
Test while in safe mode. Same problem?
After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2. -
Desktop does not update when I change networks
I'm having this odd behavior that I hope someone can shed some light on.
My desktop is set to keep my icons arranged by name. All of my volumes appear on the desktop, as well. I've noticed in recent weeks that whenever I switch networks, my desktop stops updating. It happens when I unplug my ethernet at work and move to the wireless network, or when I pack up, come home, and connect to my wireless network at home. When I connect to a network volume or plug in my iPod, the icons do not appear on my desktop. Or, if I delete a file from my desktop, it leaves an empty space instead of rearranging the icons like I have it set to do.
I've found two ways to fix it.
(1) Relaunch Finder.
(2) Open the Desktop View Options (Command-J) and adjust the grid spacing.
Once I do either of these things, all of the icons rearrange appropriately and network volumes I've connected to since switching networks appear. However, on Monday, when I go in to work, I'll have to do one of those two things again.
Maybe it's just a nuisance, but I worry that behavior like this is a symptom of a larger problem. I can't think of any new software I've installed that might be causing this trouble. I've repaired permissions and deleted caches and all that stuff. Has anyone else experienced this problem?Since changing the grid spacing fixes things, I don't think this is a switching network issue. It sounds to me like its a switching screen resolutions issue. I'm guessing that you have your machine plugged into a monitor at one location and not the other, or you have monitors of different sizes/resolutions at both locations. You can test this theory by simply changing your screens resolution once you get your machine into this state. If it fixes the problem, then I was right.
As far as a permanent fix, I don't think there is one. Only workarounds like you have already discovered.
Maybe you are looking for
-
Clearing GL with Open Item Management
Dear Experts. A liability GL (Remuneration Gl account) has been created by the client in the system without open item management. After that several entries has been posted in that GL account. Few months back they have activated Open
-
Warning while submitting XML Publisher Report..
Hi All, I am getting warning status when i run a XML Publisher report..Its Working fine when i previewed in RTF template.. The Concurrent Program is generating XML Tags.. Can anyone help me.. The following is the log file content.. Arguments P_FROM_D
-
Prety much what the question says. HELP!
-
Exporting to PDF - Selection Formula confirmation message
Hi, We're using Crystal Reports 11 from within a Delphi 7 application which, on a timed schedule, loads data into a MS SQL server database and generates and prints or e-mails a report of the data loaded in PDF format. This process should be automatic
-
What easy setup do I use for the Canon A1 1080i60?
What easy setup do I use for the Canon A1 1080i60?