Wednesday, December 18, 2013

webclient.dll failed to open file for writing

webclient.dll failed to open file for writing

Problem :


We come across this common exception when we are trying to install Qualiy Center 10 in Internet Explorer 8 or above. I was using windows 7 operating system. Lets see how we can resolve this.

Exception I Encountered Was :


#########################################################################################
The following client components where not downloaded successfully :

1 . ExtensibilityAPI.dll :
(Error 5) Access is denied.
Failed to open file for writing

2 . OTAClient.dll :
(Error 5) Access is denied.
Failed to open file for writing

3 . WebClient.dll :
(Error 5) Access is denied.
Failed to open file for writing

4 . QCClientUI.ocx :
(Error 5) Access is denied.
Failed to open file for writing

5 . wexectrl.exe :
(Error 5) Access is denied.
Failed to open file for writing

6 . XGO.ocx :
(Error 5) Access is denied.
Failed to open file for writing

7 . OTAXml.dll :
(Error 5) Access is denied.
Failed to open file for writing

8 . OtaReport.dll :
(Error 5) Access is denied.
Failed to open file for writing

9 . SRunner.ocx :
(Error 5) Access is denied.
Failed to open file for writing

10 . TdComandProtocol.exe :
(Error 5) Access is denied.
Failed to open file for writing

11 . sr_exec_agnt.exe :
(Error 5) Access is denied.
Failed to open file for writing

12 . MercResourceLogger.dll :
(Error 5) Access is denied.
Failed to open file for writing

13 . bp_exec_agent.exe :
(Error 5) Access is denied.
Failed to open file for writing

14 . BPTreports.cab :
(Error 5) Access is denied.
Failed to open file for writing

15 . Client.cab :
(Error 5) Access is denied.
Failed to open file for writing

16 . Free_MSR_Player.exe :
(Error 5) Access is denied.
Failed to open file for writing

17 . dsoframer.ocx :
(Error 5) Access is denied.
Failed to open file for writing

18 . VugenTestType.dll :
(Error 5) Access is denied.
Failed to open file for writing

19 . QCClient.UI.Customization.dll :
(Error 5) Access is denied.
Failed to open file for writing

20 . QCClient.UI.Components.BPT.TPC.dll :
(Error 5) Access is denied.
Failed to open file for writing

21 . BuiltInPlugin.cab :
(Error 5) Access is denied.
Failed to open file for writing

22 . Plugin.cab :
(Error 5) Access is denied.
Failed to open file for writing

23 . BuiltInPlugin.dll :
(Error 5) Access is denied.
Failed to open file for writing

24 . ReportViewerForTD.dll :
(Error 5) Access is denied.
Failed to open file for writing

25 . QTGrid.dll :
(Error 5) Access is denied.
Failed to open file for writing

26 . ArgsEditor.dll :
(Error 5) Access is denied.
Failed to open file for writing

27 . Arguments.dll :
(Error 5) Access is denied.
Failed to open file for writing

28 . ConfigViewerForTD.dll :
(Error 5) Access is denied.
Failed to open file for writing

29 . ExGrid.dll :
(Error 5) Access is denied.
Failed to open file for writing

30 . CompStrgHelper.dll :
(Error 5) Access is denied.
Failed to open file for writing

31 . BuiltInScriptView.dll :
(Error 5) Access is denied.
Failed to open file for writing

32 . QAIAd.dll :
(Error 5) Access is denied.
Failed to open file for writing

33 . WITestType.dll :
(Error 5) Access is denied.
Failed to open file for writing

34 . ExtensibilityAPI.dll :
Cannot load type library 

35 . ExtensibilityAPI.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

36 . OTAClient.dll :
Cannot load type library 

37 . OTAClient.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

38 . WebClient.dll :
Cannot load type library 

39 . WebClient.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

40 . QCClientUI.ocx :
Cannot load type library 

41 . QCClientUI.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

42 . XGO.ocx :
Cannot load type library 

43 . XGO.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

44 . OTAXml.dll :
Cannot load type library 

45 . OTAXml.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

46 . OtaReport.dll :
Cannot load type library 

47 . OtaReport.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

48 . SRunner.ocx :
Cannot load type library 

49 . SRunner.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

50 . MercResourceLogger.dll :
Cannot load type library 

51 . MercResourceLogger.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

52 . BPTReportSetup.dll :
Cannot load type library 

53 . BPTReportSetup.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

54 . dsoframer.ocx :
Cannot load type library 

55 . dsoframer.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

56 . VugenTestType.dll :
Cannot load type library 

57 . VugenTestType.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

58 . Plugin.tlb :
Cannot load type library 

59 . Plugin.tlb :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

60 . BuiltInPlugin.dll :
Cannot load type library 

61 . BuiltInPlugin.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

62 . ReportViewerForTD.dll :
Cannot load type library 

63 . ReportViewerForTD.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

64 . QTGrid.dll :
Cannot load type library 

65 . QTGrid.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

66 . ArgsEditor.dll :
Cannot load type library 

67 . ArgsEditor.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

68 . Arguments.dll :
Cannot load type library 

69 . Arguments.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

70 . ConfigViewerForTD.dll :
Cannot load type library 

71 . ConfigViewerForTD.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

72 . ExGrid.dll :
Cannot load type library 

73 . ExGrid.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

74 . CompStrgHelper.dll :
Cannot load type library 

75 . CompStrgHelper.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

76 . QAIAd.dll :
Cannot load type library 

77 . QAIAd.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

78 . WITestType.dll :
Cannot load type library 

79 . WITestType.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

80 . test_type.ini :
(Error 5) Access is denied.
Failed to open file for writing

Close all connections to Server and try again.

#########################################################################################

Solution :


This exception was caused when i tried to install quality center 10 in internet explorer 10. You should have admin rights to install it. Just right click and say run as administrator and it should install fine.



Example :


Right click the file and select run as administrator.


Similar Exception :

     

- ArgsEditor.dll :
Cannot load type library 

- ArgsEditor.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

- Arguments.dll :
Cannot load type library 

- Arguments.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 



Thursday, January 24, 2013

Failed to load Main-Class manifest attribute from ...


Problem :


We come across this common exception when we are trying to execute a packaged jar file. Lets see how we can resolve this.

Exception I Encountered Was :


#########################################################################################
Failed to load Main-Class manifest attribute from /nfs/home/mrahamatullah/StaleContentProj.jar #########################################################################################

Solution :


This exception was caused when i compiled the jar file without the manifest file and was executing it.
The exact way to compile the jar file is to run :
From the jar files location > jar cvfm *.*
Where ManifestFile includes the classpath and main class definition.


Example :


jar cvfm StaleContentProj.jar manifest.txt *.*


Similar Exception :

     
- Failed to load Main-Class manifest attribute from


Monday, October 15, 2012

package com... does not exist


Problem :


We come across this common exception when we are compiling java programs at command line or thru build. There are few scenarios where you might face this common exception. Lets see how we can resolve this.

Exception I Encountered Was :


#########################################################################################
compile:
[echo] cmp_cb_cda_ext compile: Start
[unzip] Expanding: M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\lib\vgn\vgn-ext-links.jar into M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\tmp_build\classes
[javac] Compiling 35 source files to M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\tmp_build\classes
[javac] M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\java\com\collegeboard\cda\listener\render\EndEventListener.java:22: package com.collegeboard.cda.site.redirect does not exist
[javac] import com.collegeboard.cda.site.redirect.CBHTMLRedirectPublisher;
[javac] ^
[javac] M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\java\com\collegeboard\cda\listener\render\EndEventListener.java:23: package com.collegeboard.cda.site.redirect does not exist
[javac] import com.collegeboard.cda.site.redirect.CBHTMLRedirectUtil;
[javac] ^
[javac] M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\java\com\collegeboard\cda\listener\render\EndEventListener.java:24: package com.collegeboard.cda.site.redirect does not exist
[javac] import com.collegeboard.cda.site.redirect.RedirectVO;
[javac] ^
[javac] M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\im
plementation\src\cmp_cb_cda_ext\java\com\collegeboard\render\link\printer\CBRenderLinkPrinter.java:6: package com.collegeboard.cda.site.redirect does not exist [javac] import com.collegeboard.cda.site.redirect.CBHTMLRedirectUtil;
[javac] ^
[javac] ^
[javac] Note: M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\java\com\collegeboard\cda\render\CPRenderXmlPrinter.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: M:\build_rpsgenbldd40_wcm_r1.32.0\wcmvob\implementation\src\cmp_cb_cda_ext\java\com\collegeboard\cda\site\sat\CBSystemRelatedVideoes.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 14 errors
#########################################################################################

Solution :


Lets talk about this exception in three scenarios:

1) Thru Command line :
When we have few java programs in different packages which we are trying to compile, we often see this exception. When we are importing a java class file from different package we must make sure that the imported java class file is compiled and already availbe before the current java class file is being compiled. Please look at the examples below for a complete explanation

2) Thru build :
In companies to compile the complete project related classes we use build. Build.xml file takes care of building the files accordingly to our choice. When build throws this error, make sure the java source files are properly placed in respective projects and the build output folder is properly assigned for each project. Make sure the dependable class files are compiled first and then the dependent class files. Please take a look at the next section for examples.

3) When CVS is involved :
When we are trying to build the class files from CVS, we come across this issue often. Build fails and complains that the required project isnt availble. The actual issue will be the java source files will not be checkin properly or there might be a issue with the CVS checin. Generally when a complete folder is being checkin with files, the folders gets checkedin but the files dont. When you see the status it shows as files are checkedin. So make sure when you are checkingin the files under folder, make sure you checkin the folder first seperately and then the files individually. Many a times this results in successful compiling and happy smiles :)

I just hope this resolved your exception and has brought a smile on your face :)

Example :


Let us see the above scenarios in exmaples :

1) Command Line :
You have two packages one com.home.page and com.home. In com.home.page you have a file called one.java and in com.home you have two.java. One.java imports com.home.two.java. When you try to compile com.home.page.one.java file before com.home.two.java you will get "package com.homepage does not exist" exception. You need to make sure that you have compiled the com.home.two.java and the directory path matches with the import path you have mentioned.

2) Build :
In build make sure the dependent files are compiled before the dependable files so that the build doesn throw exception like "package com.collegeboard.cda.site.redirect does not exist". Make sure the build.xml files is wellformed and package output is properly organised.

3) CVS :
You have created three news files called one.java,two.java,three.java under a new folder called redirect. You want to checkin the complete folder redirect in CVS. You have first checin the folder redirect and then the three files one.java, two.java and three.java. If you tru to checkin at the folder level then the CVS will not checin the files properly and you will end up with "package com.collegeboard.cda.site.redirect does not exist" exception. So make sure you have properly checkedin the files.


Similar Exception :

     
- package com.collegeboard.cda.site.redirect does not exist
- cannot find symbol
- fileName.java uses unchecked or unsafe operations.

Monday, June 11, 2012

Exception occured in SQL. : java.sql.SQLException: ORA-00972: identifier is too long

Error : Exception occured in SQL. : java.sql.SQLException: ORA-00972: identifier is too long Solution : "select * from where REF_ID = " + Id

Thursday, October 27, 2011

java.net.ConnectException: Connection refused



Problem:
This is one of the Common Exceptions which we come across daily in our lives. I encountered this issue when trying to publish few content instances of a particular type in CMS.

Exception i encountered was:
"ERROR | ting.cache.LogCacheProxyPolicy | 999-999-0706: Encountered Exception while expiring Object Cache in CacheWorker thread: "http://vda-02:8443/vgn-ext-templating", During job: "" [Cache Worker Thread_http://vda-02:/vgn-ext-templating] []
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.vignette.ext.templating.cache.CacheWorker.run(CacheWorker.java:159)

{http://xml.apache.org/axis/}hostname:"

Solution:
The error was because, the CMS content was trying to invoke vda-01 server where as it had to invoke vda-02. Tried different possibilities with testing like making vda-01 down and running the code, which went fine and then made vda-02 down which triggered the error again. Since the vda servers where load balanced we had to go with single node server test and found the fault with vda-01 server. Notified the same to the network team eventually they rectified and resolved it :).

Please let me know if you still encounter this issue, mail me @ rahamat_234@yahoo.com

Similar Exceptions:

- java.net.ConnectException: Connection refused
- java.net.ConnectException: Connection timed out
- java.net.ConnectException: Connection refused: no further information


Monday, October 24, 2011

java.net.MalformedURLException: no protocol:



Problem:
This is one of the Common Exceptions which we come across daily in our lives. I encountered this issue when trying to create a xml out from a xsl template.

Exception i encountered was:
"ERROR | board.common.xml.CBXMLDocument | 999-999-0001: createTransformer: MalformedURLException: Error=java.net.MalformedURLException: no protocol: ; Message=no protocol: [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] []
2011-10-23 17:41:59,564 | ERROR | .cda.render.CBRenderXmlPrinter | 999-999-0001: CBRenderXmlPrinter.getObjectInXMLFormat(): Exception: Error=java.lang.NullPointerException; Message=null [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] []"

Solution:
The error was because i wasnt passing the protocol with the url. I appended the file protocol with the url and it worked fine. Do let me know if you too faced the same issue.
Please let me know if you still encounter this issue, mail me @ rahamat_234@yahoo.com


Similar Exceptions:

- java.net.MalformedURLException: no protocol:
- java.net.MalformedURLException: unknown protocol: ntp
- java.net.MalformedURLException



Saturday, August 27, 2011

java.sql.SQLException: ResultSet.next was not called



Problem:
This is one of the Common Exceptions which we come across almost daily in our lives. I encountered this issue when trying to iterate from a resultset.

Exception i encountered was:
"java.sql.SQLException: ResultSet.next was not called
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:208)
at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.jav
a:511)
at oracle.jdbc.driver.OracleResultSet.getInt(OracleResultSet.java:1563)
at TestingVCMIDChannel.getChannelVCMIDwithChannelName(TestingVCMIDChanne
l.java:111)
at TestingVCMIDChannel.main(TestingVCMIDChannel.java:217)"

Solution:
I did a terrible mistake of calling the results method out of the while loop where i was iterating the results set. Do check the results.getValue() here, do let me know if you too faced the same issue.
Please let me know if you still encounter this issue, mail me @ rahamat_234@yahoo.com


Similar Exceptions:

- java.sql.SQLException: ResultSet.next was not called
- oracle.jdbc.driver.DatabaseError.throwSqlException
- oracle.jdbc.driver.OracleResultSetImpl.getInt