Stax bug: writeEmptyElement not closed
Hi,
The following test case:
xsw.writeStartDocument();
xsw.writeEmptyElement("test");
xsw.writeEndDocument();
xsw.flush();
xsw.close();
Produces:
<?xml version='1.0' encoding='utf-8'?><test
And the tag is not closed.
Looks like the logic doesn't cope with one empty element in the document.
An egde case it has to be said but one we need...
Thanks,
M
ups, forgot: using kodo 2.5.8
Stefan wrote:
Hello again ...
My code looks now like the following:
q = pm.newQuery(SchuldnerKonto.class, "kontoNr=="1234"");
for (Iterator it=result.iterator();it.hasNext();) {
it.next();
As far as I read the documentation and newsgroups, I would expect, that
the code above closes the resultset by itself, so that I don't have to
call
q.closeAll()
It works fine, as long as the resultset (LazyResultSet) contains at least
1 row.
When the resultset is empty, the query stays open, so that I get more and
more open session (using Oracle 9i)
I often use wrapper classes/methods around queries, which only return the
Collection that the query returned.
When using these wrapper classes it is of course mandatory to iterate the
Collection to the end.
Due to the bug(?) above that whole logic isn't working, at some point
oracle refuses to give new connections and the application hangs.
What can I do about it ?
Similar Messages
-
Bug - Shockwave not closing streams
I've dug into this fairly deeply and I'm pretty sure it's a bug
in Shockwave Player.
I have a Flash movie that I use both by itself, and embedded
in a Shockwave movie as a Flash Sprite. The Flash streams and plays
Youtube videos. What I'm seeing is that it works correctly when it
runs by itself and I start and stop multiple streams (browsing
through Youtube movies, watching a few seconds, and then going to
the next). When I run it inside a Shockwave movie however the
streams aren't closing, so after browsing through a few movies many
streams are running at once until they complete.
To see an example, go to
http://www.digparty.com/fb
and use a network analyser, or just Task Manager, and watch the
network traffic as you browse through Youtube videos on the "Your
Playlist" page (Flash movie by itself) and inside a Digparty (Flash
sprite inside Shockwave).quote:
Originally posted by:
Newsgroup User
> I haven't tried a projector because we're only targeting
Shockwave, but if it
> will help debug the problem I'm happy to do that.
It might help narrow the issue down to Shockwave, an xtra, or
all
Director published content
Ok, I'll try that and send the results.
quote:
> The video does not stream in
> the authoring environment, perhaps because of
differences in the Flash security
> sandbox?
Is your swf linked to its external file, or fully imported?
It should be
linked if it needs to communicate with the outside world.
It is fully imported. When inside Director authoring it does
communicate with the outside world for some REST calls, but can't
seem to stream from Youtube. I can try linking instead and see if
that makes a difference.
quote:
> We're publishing as Director 11 and the Flash sprite is
Flash 8 (but
> from CS3) and AS2. The Flash Agent Xtra is 11.0r426 and
the Flash Asset Xtra
> is 11.0r426 (11.0.0.426).
Where are you getting these version numbers from? The Agent
xtra is
authoring only, so I suspect the version info *isn't* from
the
Shockwave-support folder of a machine that exhibits the
problem you
describe. The most recently available version of the Flash
Asset xtra
(the xtra that matters) is 11.0.3.472 (via Shockwave) or
11.0.3.466 (via
the hf3 patch for the authoring environment)
Sorry, I thought that was what you were asking for. Those are
the versions of the xtra files under C:\Program Files\Adobe\Adobe
Director 11\Configuration\Xtras. The Shockwave plugin version is
11.0.3, but I don't know how to pull out the version of the Flash
Asset inside the plugin.
Are you able to duplicate the problem? -
Cursors are not closed when using Ref Cursor Query in a report ORA-01000
Dear Experts
Oracel database 11g,
developer suite 10.1.2.0.2,
application server 10.1.2.0.2,
Windows xp platform
For a long time, I'm hitting ORA-01000
I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
Is this an oracle bug , and how can I overcome ?
Thanks
Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AMThank you Inol for your answer, However
Ref Cursor give me felxibility to control the query, for example see the following query :
function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
v_from_date DATE;
v_to_date DATE;
V_SERIAL_TYPE number;
begin
SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
FROM ACC_VOUCHER_TYPES
where voucher_type='J'
and IDENT_NO=:IDENT
AND COMP_NO=TO_NUMBER(:COMPANY_NO);
IF :no_date=1 then
IF V_SERIAL_TYPE =1 THEN
open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
FROM JOURHEAD
WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
AND IDENT=:IDENT
AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
ORDER BY TO_NUMBER(VOCH_NO);
ELSE
open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
FROM JOURHEAD
WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
AND IDENT=:IDENT
AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
ORDER BY VOCH_NO;
END IF;
ELSE
v_from_date:=to_DATE(:from_date);
v_to_date:=to_DATE(:to_date);
IF V_SERIAL_TYPE =1 THEN
open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
FROM JOURHEAD
WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
AND IDENT=:IDENT
AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
OR (:from_date is null and :to_date is null ))
ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);
ELSE
open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
FROM JOURHEAD
WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
AND IDENT=:IDENT
AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
OR (:from_date is null and :to_date is null ))
ORDER BY VOCH_DATE,VOCH_NO;
END IF;
END IF;
return temp_JOURHEAD;
end; -
Hyperlinks not closing out in RH
Here's another odd behavior:
When I bring my FM book into RH, my hyperlinks are not closed
out in the converted content in RH. In FM, the hyperlinks are
correctly inserted using the gotolink and newlink Hypertext
markers. Yet in RH, the rest of the sentence in which the hyperlink
appears is also erroneously tagged as part of the hyperlink.
Is this is a bug? Has anyone else seen this behavior and if
so, how did you fix it?Hello Michael,
This is not an issue, you'd always get the hyperlinks
appearing corrcetly without any tagging in the Design view of RH.
Just try to close and reopen the topic in the Design view or try to
view it in preview - it shoudl appear correctly.
Regards,
Pooja -
JMS session is not closed even after calling close()
Hi All,
I am using JMS to receive and publish topics for a process,in my java code i
am creating new JMS Session on demand(ie., whenever a new topic is
received) after processing the topic i am closing the session with close(),but
still the session is not closed.In a period of time more sessions are created
and FD leaks occurs which stops the process functionality.
Later i moved the on demand session code to a static block, its working fine
and no FD leak occurs.
Is this a known behavior or any java bug is there to point this issue,please
help me regarding this.
Thanks,
Ants BalajeiYou should try avoid creating sessions on demand but cache/pool them...
http://activemq.apache.org/how-do-i-use-jms-efficiently.html
James
http://www.iona.com/
Open Source the Enterprise Way -
MBP not closing applications upon shutdown
I was very happy with Lion, until I noticed that my applications are not closed on shutdown. When my computer restarts every application that I do not force quit prior to shutdown opens.
Any help would be appreciated.This is not a bug, it is a feature ! From Apple's description of Lion:
Now apps you close will reopen right where you left off, so you never have to start from scratch again. And when you install software updates, you no longer need to save your work, close your apps, and spend valuable time setting everything up again. With Resume, you can restart your Mac and return to what you were doing — with all your apps in the places where you left them.
In the System Preferences --> General pane, there is an option you can unclick that says "Restore windows when quitting and re-opening apps". That may help. -
DataSourceConnection was not closed!
I'm developing with Jdev 9.0.3_1 testing with the embebed OC4J. I've some CMP EntityBeans and sometimes I get the following error message "DataSourceConnection was not closed! DriverManagerConnectionPoolConnection not closed, check your code! (Use -Djdbc.connection.debug=true to find out where the leaked connection was created)"
I don't open or close connections explicitly.
Any idea?
Thanks in advance.
Julio.This message is as a result of a bug in 9.0.3 with CMP/CMR without specifying a transaction attributes for entity bean methods. These are fixed in 9.0.4, please try this in 9.0.4 Developers preview
regards
Debu -
IPad Safari Landscape innerHeight/outerHeight bug still not fixed in iOS 7.1.1
iPad Safari Landscape innerHeight/outerHeight bug still not fixed in iOS 7.1.1
No bug in Chrome or other third party browsers.
When are Apple going to fix this bug? It's painful.
more info here:
http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerhei ght-outerheight-layout-issueTell Apple not other users.
Use http://www.apple.com/feedback/ipad.html -
SAP Production Order not closing
Hi there,
I am running the COHV with Complete parameter in the background, and it does pick up several TECO orders from the past, like say from 2009 which are not closed but it does not process them to CLSD status.
I am seeing some entries in COHV, CO1P, COFC transactions - I picked a few randomly to check.
The order qty is not always equal to the delivered qty - Again a random test
The consumption qty on the components is not always equal to the required qty, which leaves reservation open - random check
Is all the above causing my order not to close ? where do I see the error log, when I try to close the order. I wrote the above issues based on my random check.
Thank youHi SAP Process,
When you run COHV to close the orders, you can see the log with the list of orders that have not been closed.
To see in detail what has happened you will need to check order by order.
Other option will we to evaluate each situation separatelly. You can check COGI, CO1P, see open reservations, check if you have TR or TO if you use WM, etc.. Once each situation is cleaned, you will be able to closed most of your production orders. It is quite common to create a custom report to make all these checks (COGI, TR/TOs, etc) and closed the orders.
Kind Regards,
Mariano -
firefox.exe*32 not closing down when i sutdown all open windows so I have to close it through taskmanager so I can then start a new session.
See:
*"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
*"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs -
Purchase Requsition is not closing automatically During ME59 PO creation
Hi,
We are using PO creation through ME59,
In ME59 we have set the indicator 1 Set reqs. to "closed"
In PR we have 1 qty and in PO was created for 1 qty. But the PR was not closed.
When we check the F1 help for the filed it say it will work with respect to the rounding value. as for my concer the PR qty 1 was fulfilled by po with 1 qty creation. I dont know why the PR was not set to Closed automatically.
If we try 2 Set reqs. to "closed" It is working
Can any once explaing why it is not wroking for indicator 1
Regards
PalaniIs your order unit and requisition unit same ?
-
BUG! Not system locale Filenames support for 32-bit applications error in Windows 8.1 x64.
All Windows x64 (XP,2003,2007,Vista,7,8) have no support for not system locale filenames|foldernames for all 32-bit applications. I think it is BUG!
For example, it is possible to read files|folders with French or Chinese in English locale windows installed, rename it, but it is not possible open it, edit or delete. (ERRORS: File not found OR Unknown format)
With using 64-bit programs no such problems. How does it works and how can I fix this? Is it problem with encoding in translating kernel instructions for 32-bit apps in x64 Windows OS's? Whether there are
solutions to this problem OR some hacks|fixes?Hi,
Have you installed the language package for French or Chinese?
If no, please download the language package and install them.
To download language package, please click the link below,
http://windows.microsoft.com/en-US/windows/language-packs#lptabs=win7
Best Regards.
Steven Lee
TechNet Community Support -
AS Java sessions are not closed until they time out
Hello Experts,
we have a SAP PI system to integrate SAP R/3 with external applications and recently we are facing a problem with inactive sessions. There's a new application we are setting up that consumes a webservice published by this SAP PI system. The scenario is SOAP --> PI --> PROXY. What we have noticed is that when the application sends loads of requests sometimes the system fails. This is because we are reaching the maximum number of open sessions in AS Java (1000). Investigating a bit more we found out that the sessions are not "closed" once the communication between the application and SAP PI has finished. Those sessions are open until they are automatically timed-out by the system after 1800 sec.
We have found the notes below in SAPNet:
Note 1363751 - ICM: Java Web sessions are not terminated
Note 1307940 - New HTTP session opened for every web service call
However, none of them are applicable to our system because it is more updated:
SAP PI 7.1 EHP1 SP002
Kernel Patch Level: 87
We have tried to close connections from the application that consumes the webservice but with no success. The sessions remain in the server until they are timed-out. Could you please tell us if this is the normal behavior of an AS Java system? Is this the way it should work? If so, can you tell us how to decrease this timeout so the inactive sessions are cleaned faster? We tried to find it but we didn't manage. Is there any way to close the session once the communication has finished?
Thank you in advance.
Roger Allué i VallHi Roger,
You can do the following things to help solving your issue:
1. Decrease session timeout default value of the web container: Use the NetWeaver Administrator
Open Application Modules plugin within NWA
Configuration Management -> Infrastructure -> Application Modules
Set the desired timeout web module you are using, in minutes.
The default value 0 in the NWA means that the value is not modified
and the default value of 30 minutes timeout will be used.
2. Increase the max. no. of Sessions in Configtool
The max. number of Sessions can be set in Configtool in the Expert
mode. There is no limitation for the parameter.
Thanks,
Anderson -
When im taking a picture directly from home screen after im finished the application remain open. This app is ussing the location and if im not closing like other applications by doble click the home button the batery will finished fast. On the other IOS 5 and 6 was not neccesary to unblock the phone and bouble click the home bottom.
Reinstalling OS X Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Reinstalling OS X Without Erasing the Drive
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list. Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
Reinstall OS X: Select Reinstall OS X and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
Alternatively, see:
Reinstall OS X Without Erasing the Drive
Choose the version you have installed now:
OS X Yosemite- Reinstall OS X
OS X Mavericks- Reinstall OS X
OS X Mountain Lion- Reinstall OS X
OS X Lion- Reinstall Mac OS X
Note: You will need an active Internet connection. I suggest using Ethernet
if possible because it is three times faster than wireless. -
Outlook 2013 are not opening and showing pst files are not closed properly
Hi
Outlook 2007 has stopped working and showing close the program. Again,we re-started then outlook 2007 and it has opened and taken the backup of pst files in a separate hard drive.
The pst file was repaired in scanpst.exe and again i have tried to put the pst file back in outlook 2007.It was hanging and suddenly i have uninstalled 2007 and started installing outlook 2013.
2013 applications like word,excel,power point are opening and outlook 2013 are not able to open and showing pst files were not closed properly.
Again i have un-installed and re-installed the outlook 2013.still we are not able to open the outlook.
Need your support at the earliest to fix the issue.
ThanksHi,
What's the .pst file used for? Archive? Or you set up a POP3 account and want to import the emails from the .pst file?
Another question, you mentioned you installed Outlook 2013 and it didn't open either. Was this from the beginning right after you installed Outlook 2013, or after you did something such as create a new Profile, set up a new account and tried to import the
.pst file?
Kindly answer my questions so I can understand the situation better.
I've seen some of this issue caused by the anti-malware software, check your anti-malware software to see if it's trying to interfere with Outlook - things like real time email checking can sometimes cause these kinds of problems. To troubleshoot, we can
simply disable the anti-malware software temporarily to see the result.
Regards,
Melon Chen
TechNet Community Support
Maybe you are looking for
-
How To Handle Error Message In TCD Recording?
Hi All, I tried recording a transaction (my own transaction) by not enterring value in an obligatory field. the error message came. but when i executed the script, it showed an error. but actualy, the error message was expected right? how to handle
-
Creating & Bootstrapping a new Folder.
At our design firm, we use an inhouse naming convention for organizing jobs. jobs are found in Clients/ClientName/CN100/ CN being short for the Client's name and the job number). We make these folders a lot, and have to add the required subfolders by
-
Browser speeds in Mac and Windows
Browsers always seem to be faster using Windows than Macs. For instance, I am using a MacBook and Netscape 8.1 in Parallels runs considerably faster than any browser in Mac (Safari, Camino, Firefox, Opera, or Omniweb). The difference is greater on my
-
How to use cutom smartform instead standard?
Hi, we are under upgrade of SRM 4.0 to SRM 5.0.. For email notification of bid invitaion and acution creation..standard smartforms is calling.. If we want to use our custom smartform...wt is procedure..cany any one know please tell me.... Thanks Venk
-
Would like to buy an notebook with 16:10 screen
Hi, I would like buy a new portable computer with 16/10 screen ( and not 16/9 ! ). Where I can find these ? Thank you.