Feature with ID 15/.. has already been installed. Use the force attribute to explicitly re-install the feature
Hi everyone,
I really become desperate with this one. I know, it's mentioned hundred times in the web, and it really works when you use a force deployment, but my simple question is: Why?
To explain my issue: We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get the error (you
guessed it): A feature with ID 15/... has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
And it does really work with the force attribute, but why on earth do you have to use the force flag? Something has to be different, and if there is an already installed feature with this ID, then why can Visual Studio not uninstall or
deactivate it by itself first? This error never occurred with SharePoint 2010 and VS2012, although features are already installed.
Thanks a lot for your effort.
Best regards,
Patrick
Hi Check this
1.Double click on the feature.... ( or right click and choose properties)
2.then in the properties window make
3. ALWAYS FORCE INSTALL = false... (this should be false)
Manoj Gangwar | Sharepoint MCPD | Sharepoint MCTS |
Similar Messages
-
Hi I am getting the error
Error occurred in deployment step 'Add Solution': A feature with ID 10495515-2482-41fd-98eb-3c87f739f54b has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
when trying to deploy web parts
question 1 - how do i use the force attribute when deploying from visual studio
question 2 - am i deplying it to the right place, if i deply it to the
url:port that points to my central admin tool it deploys but i cant seem to see it in any of my webs in my site collection, if i deploy it to the
url:port that points to my site collection I get this error.
im new to all this by the way :)
thanks in advanceIf you are deploying from Visual Studio then please follow this post:
http://sharepointfordeveloper.blogspot.com/2014/03/solved-visual-studio-issue-error.html
Open the visual Studio and navigate to the feature XML file and add the bellow attribute.
AlwaysForceInstall="TRUE"
The <FeatureName>.Template.Xml output would be some think link this.
<?xml
version="1.0"
encoding="utf-8"
?><Feature
xmlns="http://schemas.microsoft.com/sharepoint/"
AlwaysForceInstall="TRUE"></Feature> -
Last time my lack of an admin password to alter the desktop interfered with the download and now it says the invitation has already been accepted so I can't retry... The team administrator says there's no resend option. What do I do?
Moving this discussion to the Adobe Creative Cloud forum.
-
Can an iPad 2 be synced on a MAC book Pro when an iPhone has already been synced to it?
How do I sync my iPad 2 to my MAC Book Pro when my iPhone has already been synced to it?
It seems to only recognise the iPhone.How to use multiple iPods, iPads, or iPhones with one computer
-
Error: "This license has already been fulfilled....."
This past week I updated my iPad to the new IOS7 software. Immediately after doing so, I tried to download a book through Overdrive...software used by most libraries. Unfortunately, two problems occurred. The Overdrive sofware was not compatible with IOS7 update (but it is NOW). Second, a pop up indicated I needed Adobe Digital to read and/or download the book. This included books I was in the process of reading and had worked fine previously, as well as a new book I tried to download. I sign up dor Adobe Digital (though I already had Adobe Reader on the iPad). Following that, each time I tried to download or read a book (even after Overdrive was made compatible) I get the message: "This license has already been fulfilled by another user." Fulfill:2004.....
I have no idea what I have done or how to correct the problem. Any suggestions would be appreciated.
Thanks,
jackbmackI'm sorry I gave the impression I thought Overdrive was an Adobe product. I know it is not. The problem I am having IS with the Adobe product and the message I receive concerning "This license has already been fulfilled....." appears to be the result of the Adobe product. I had Googled Adobe Digital and discovered what I felt were conflicting or at least ambiquus statement including: http://http://forums.adobe.com/thread/1232101.
Anyone else have any thoughts? I DID send a help request to Overdrive but have not yet heard back from them. -
I just upgraded my iPhone 4S to a 6Plus. I also have an iPad2 and an iPad Mini. I read on all 3 devices depending on where I'm going at the time. In my OverDrive settings on my iPad/Mini it says it is authorized by Adobe ID <and my email address>. On the 6Plus settings it says it is authorized by OverDrive account <and my email address>. How do I get the Adobe ID authorized on my 6Plus. Please??? and Thank you.
EllenI'm sorry I gave the impression I thought Overdrive was an Adobe product. I know it is not. The problem I am having IS with the Adobe product and the message I receive concerning "This license has already been fulfilled....." appears to be the result of the Adobe product. I had Googled Adobe Digital and discovered what I felt were conflicting or at least ambiquus statement including: http://http://forums.adobe.com/thread/1232101.
Anyone else have any thoughts? I DID send a help request to Overdrive but have not yet heard back from them. -
Batch has already been posted in stock **very urgent**
Dear all,
My user has created a delivery for excess quantities. He had to deliver only 4 where he has done the PGI for 24. I thought I would reverse it with transaction VL09, but when I click on reverse this error "Batch has already been posted in stock" pops up. What might be the reason?
Invoice is not created against this delivery **
Please anyone throw some light on this and also if any other options to reverse goods movement. And can I reverse only part quantity?
Thanks in advance and its very urgent.
RegardsHi,
well actually he is doing the partial deliveries for a order and these are all backdated entries. They havent gone live yet. The order Qty was for 40 out of which he had delivered 4 earlier and when he went to do a delivery again, he saw that stock available was only for 24 qty. and he did the PGI for whole
thats how he delivered for 24. I hope its clear now.
Thanks for the answer. will see if changing the error to warning will work.
this actually had come into my mind but was not sure as to what would be the impact.
Rish.k -
I have been trying to open itunes that has already been installed. But, the thing is it never opens and when i do right click and trouble shoot also, it doesnt open. I dont whats wrong with itunes and my comp is 64 bit windows 7. Can somebody please help
no its 64 bit version of itunes. Can you please help me. I am not able to sync my iphone.
-
Here's the situation:
Upgrading a SharePoint Server 2010 Search Service Application dB to our SharePoint 2013 SP 1 development environment, using the Management Shell
Running the following commands:
$applicationPool= Get-SPServiceApplicationPool -Identity 'SearchService_AppPool'
$searchInst = Get-SPEnterpriseSearchServiceInstance -local
Restore-SPEnterpriseSearchServiceApplication -Name 'SearchServiceApplication' -applicationpool $applicationPool -databasename 'SearchServiceApplicationDB' -databaseserver SERVERNAME -AdminSearchServiceInstance $searchInst
Creates the search dBs (crawl, links, analytics) successfully; however, in the end, I get....
"Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed."
Looking at the ULS logs, I find the following:
Inner Exception: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.FindAndFixExistingManagedProperties() at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.InstallManagedProperties(Boolean
upgrade) at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.Upgrade() at Microsoft.Office.Server.Search.Upgrade.UpdateAllOOTBProperties.Upgrade() at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed.
at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade() at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.Upgrade() at Microsoft.Office.Server.Search.Upgrade.SearchDatabaseSequence.Upgrade() at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object
o, Boolean bRecurse)
Anyone encounter anything like this during their search upgrade process? I'm not honestly even sure what duplicate value to look for at this point, if I were to run a SELECT Id, ClassId, ParentId, Name, Status, Version, Properties FROM Objects on
"SharePoint_Config" in SSMS. Any insight or opinions on the matter are welcome; and thanks to those who choose to reply to this, in advance.Hi ,
You can enable the ULS log on verbose level (note, remember to reset to default level after finished troubleshooting) for more information per the following article, then check there should be more useful message for helping solve the issue.
http://www.brightworksupport.com/enabling-verbose-logging-to-compare-against-c/
http://social.technet.microsoft.com/Forums/sharepoint/en-US/12c99279-d3aa-46de-bc57-d5d250692ff0/upgrade-of-search-service-application-from-2010-to-2013-failure?forum=sharepointadmin
https://www.simple-talk.com/blogs/2014/04/22/sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails/http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
Hi there,
I recently had the following situation, where I changed the source of my CSV file in Power Query.
Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
This is what I get from the Call Stack
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
Has anyone had this before and know how to fix it?
http://www.bidn.com/blogs/guavaqHi there
I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
Thanks
Gilbert
http://www.bidn.com/blogs/guavaq -
Crawl Error GetVirtualServerPolicyInternal - An item with the same key has already been added
Hi,
I did an index reset and now I can't start any crawl. It's complaining "An item with the same key has already been added". Exception seems to from Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal.
What should I check? Thanks.
The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: 9e69ff9c-f925-50bf-5110-d1b0e74c77bc; SearchID = 522CB441-0028-4E7D-BED4-4230D7ADD14B
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dm1k Medium Exception Type: System.ArgumentException *** Message : An item with the same key has already been added. *** StackTrace: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean
add) at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal(String strStsUrl, WssVersions serverVersion, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String&
strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL) at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicy(String
strStsUrl, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String& strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean... 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93* mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dm1k Medium ...& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL) 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
fsa0 Monitorable GetVirtualServerPolicy fail. error 2147755542, strStsUrl
http://serverurl 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvt6 High SetSTSErrorInfo ErrorMessage = Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7 hr = 80042616 [sts3util.cxx:6988]
search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvi3 High Couldn't retrieve server
http://serverurl policy, hr = 80042616 [sts3util.cxx:1865] search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvu0 High STS3::StoreCachedError: Object initialization failed. Message: "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7"
HR: 80042616 [sts3util.cxx:7083] search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvg4 High Server serverurl security initialization failed, hr = 80042616 error Message Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7
[sts3util.cxx:1591] search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dv5x High CSTS3Accessor::InitServer: Initialize STS Helper failed. Return error to caller, hr=80042616 [sts3acc.cxx:1932] search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dv3t High CSTS3Accessor::InitURLType fails, Url
http://serverurl, hr=80042616 [sts3acc.cxx:288] search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvb1 Medium CSTS3Accessor::Init fails, Url
http://serverurl, hr=80042616 [sts3handler.cxx:337] search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Connectors:SharePoint
dvb2 Medium CSTS3Handler::CreateAccessorExD: Return error to caller, hr=80042616 [sts3handler.cxx:355] search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
04/22/2015 19:37:10.93 mssdmn.exe (0x1A34) 0x225C SharePoint Server Search Crawler:FilterDaemon
e4ye High FLTRDMN: URL
http://serverurl Errorinfo is "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7" [fltrsink.cxx:566] search\native\mssdmn\fltrsink.cxx
04/22/2015 19:37:10.93 mssearch.exe (0x1118) 0x0628 SharePoint Server Search Crawler:Gatherer Plugin
cd11 Warning The start address http://serverurl cannot be crawled. Context: Application 'Enterprise_Search_Service_Application', Catalog 'Portal_Content' Details: The SharePoint item being
crawled returned an error when requesting data from the web service. (0x80042616)
04/22/2015 19:37:10.99 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search Fuzzy Name Search
ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to
load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. ab403221-f69c-43ef-a8cc-7df384f6a4b3
04/22/2015 19:37:10.99 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search Fuzzy Name Search
ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. ab403221-f69c-43ef-a8cc-7df384f6a4b3
04/22/2015 19:37:10.99 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search Fuzzy Name Search
ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. ab403221-f69c-43ef-a8cc-7df384f6a4b3
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to
load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search Fuzzy Name Search
ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to
load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. e15da110-f86d-4e3d-8d73-a67dccaa82cd
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search Fuzzy Name Search
ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. e15da110-f86d-4e3d-8d73-a67dccaa82cd
04/22/2015 19:37:11.00 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search Fuzzy Name Search
ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. e15da110-f86d-4e3d-8d73-a67dccaa82cd
04/22/2015 19:37:11.03 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to
load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 58d54385-497b-466d-9f02-aeba664bc1b6
04/22/2015 19:37:11.03 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 58d54385-497b-466d-9f02-aeba664bc1b6
04/22/2015 19:37:11.03 NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search Fuzzy Name Search
ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 58d54385-497b-466d-9f02-aeba664bc1b6Hi,
For troubleshooting your issue, please take steps as below:
1. Try to crawl your content source using farm admin account.
2.
Disable loopback check .
3.Add reference SPS3s://WEB into your content source start addresses.
For more information, please refer to these blogs:
http://sharepoint.stackexchange.com/questions/5215/crawling-fails-with-404-error-message-but-the-iis-log-tell-a-different-story
http://www.cleverworkarounds.com/2011/07/22/troubleshooting-sharepoint-people-search-101/
http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
I started with one itunes account for my iphone and ipad, and now have a second ipad linked to the same itunes. Can I set up a new itunes account for one ipad without losing what has already been downloaded on it? I want to stop my husbands downloads appearing on my ipad, and vice versa.
A much simpler solution would be to go into Settings > Store and turn off Automatic Downloads
-
how do you pay for apps with credit on your account from an itunes gift card that has already been redreemed and the credit id on the account?
jen19 wrote:
how do you pay for apps with credit on your account from an itunes gift card that has already been redreemed and the credit id on the account?
Just buy something. -
'Connection has already been closed'. Random error connecting with a pool
Hi all,
I've got a problem I cannot solve, and really hope in someone's help...
The fact is: I'm working on a webapp which doesn't made use of frameworks or patterns or similars. I introduced the DAO pattern in order to organize and speed up the work. At the core of the new classes there is the DBDAO, and this is the way it obtains the connection:
protected Connection conn = null; ... protected Connection getConnection() { try { if (conn == null || conn.isClosed()) { Context ctx = new InitialContext(); javax.sql.DataSource ds=null; ds =(javax.sql.DataSource) ctx.lookup( "agespPool" ); conn = ds.getConnection(); conn.setAutoCommit(false); } } catch (Exception ne) ...
Every new class that needs to access the db extends DBDAO and retrieves the conn with this method. In order to make things work without changing all the code, I modified the old class named 'Connessione' and made it extend DBDAO. Here is its method:
public class Connessione extends DBDAO{ ... public static synchronized Connection getConnessione() throws Exception { return new Connessione().getConnection(); }
That's all. Finished with the code.
Now, if someone uses the new classes extending DBDAO, all goes well. But for some old function that still work with Connessione.getConnessione(), connection closes suddenly with no reason.
For example, calling a page with some combo box populated with a db connection, you catch a:
java.sql.SQLException: Connection has already been closed. at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:63) at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37) at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnType(Unknown Source) at it.praxis.tim.agesp.pub.sql.PagingList.populate(PagingList.java:98) at it.praxis.tim.agesp.pub.sql.PagingList.executeSQL(PagingList.java:53) at jsp_servlet._jsp._todolist_new._richiesta.__listarichieste._jspService(__listarichieste.java:353) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
or sometimes:
- 20080417141147: <E> HtmlSelect.createHtmlSelect(4) - Errore! java.sql.SQLException: Result set already closed - 20080417141147: <E> HtmlSelect.createHtmlSelect(7) - Errore! java.sql.SQLException: Connection has already been closed. - 20080417141147: <E> ERRORE: ricercaRichieste : java.sql.SQLException: Statement has already been closed
That is, the conn is closed while used to populate the combo box. I don't understand who closes it.
Moreover, that happens randomly: 1 or 2 times over 4 hits on the page. The other times, all goes well. Most of the other pages, all goes well. So I don't think I have to search for a bug in the code.
Now, I'm working with BEA WL 8.1 sp 5 and Oracle 9.2.0.1.0 .
The error turns out even if I work locally (with Tomcat 5.5.23).
The webapp made use of a custom driver beforehand, and I replaced it with oracle's driver.
I tried to set the Connection Pool with oracle.jdbc.driver.OracleDriver and oracle.jdbc.OracleDriver .
I left the default for the connection pool, and then tried to set (BEA):
Connection Reserve Timeout: -1
Test Created Connections: On
with no changes.
The connection suddenly and randomly closes.
Any help would be appreciated...
Many thanksthe thing that you are instantiating isn't a Connection object, it's a Connessione object. That's returning one that's either been stashed from a previous call, or
acquires one from the data sourcea new Connessione object means a call to getConnection that means a new Connection object. That code is synchronized, it has to be a new object.
It is entirely possible that conn is not null if other actions have taken place in your constructor. Even assuming it is null, we don't know anything about the
connection pool you're trying to use, though it looks like it's probably weblogic's one.The contructor doesn't know of the connection. As for the pool, it is weblogic's one.
And even assuming both of these cases, we have no particular reason to believe that you're calling the getConnessione() method instead of accidentally calling
getConnection() and thus no reason to believe that you're definitely carrying out the actions that you believe you're carrying out.I wrote that the problem comes out in the old code that once worked fine. That code only uses Connessione.getConnessione() .
Conversely we have an error message that says you're closing connections elsewhere. Clearly there's a bug. It's presumably in your assumptions. You're
arguing instead of checking them.If I have a wrapper logging the close() calls, I have to see every call logged. Even if there's a bug (but remember that the code worked fine with a previous custom datasource), why do you think I shouldn't see that close() logged?
I may be wrong, but I already searched in that code. I'm arguing after all the checks.
There is no other thread that can see that connHow do you know? I have that Connessione.getConnessione() in a jsp. It's synchronized. That gives a new connection. I see it passed only to an utility class that queries the db and reads the resultset.
Who do you think can access that connection? -
I purchased a MacBook Pro in fall 2011 for College and it came with a $100 "Back to School" card. I signed up to redeem but accidentally put the wrong ending on my email and now that I try to do it over it says it has already been redeemed. Help, Please!
- You can only sync an iPod to one iTunes library/computer. You can however, manually manage music and videos among different libraries.
Go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing>Sync your device manually and follow the instructions.
- If y wnat to switch syncing libraries/computer see:
go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing>Sync your device manually and follow the instructions.
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
If all the synced media like music is in the iTunes library of the second computer it is very easy.
Maybe you are looking for
-
I have installed a new drive on my mac book and more ram but the snow leopard install asks which to install the system on but then does not show the drive. do I have to partition it and name it first. -- if so just one partition?
-
How do you create an AcrobatXI zip file in windows 8.1?
How do you create an AcrobatXI zip file in windows 8.1? from acrobat.com docs? Sorry Not sure what community to ask this in this community? The email provider I was using didn''t seem to want to accept it through Adobe Send the first time and since
-
What just happened??? iMessage situation here...
To start it off, My brother and I share the same iTunes account. Today my coworker imessaged me saying she was going to be a few mins late, I messaged her back, saying ok no problem. a few mins later she texted me saying "It's Kelly" The first thing
-
How to change shopping cart Buy Now button?
Hello All, I've been racking my brain on this one and could really use some help! Check out the "BUY NOW" button on my website here: Themes For MuseHome How do I get rid of the grey/white color behind the text? (it's grey on one browser, white on ano
-
I have to create a set of application forms using Acrobat. My problem is that there are 12 x 6 x 5 variants, so would rather not create 360 individual forms. At the moment the workflow is as follows: Choose 1 of 12 Products Open 1 of 6 applicable app