ClassCastException: Unable to cast class atg.repository.content.GroupQueryBuilder to class atg.adpater.gsa.query.Builder
Hii people!
I am having the following exception when doing the full deployment in bcc:
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
java.lang.ClassCastException: Unable to cast class atg.repository.content.GroupQueryBuilder to class atg.adpater.gsa.query.Builder. This means that the repository item descriptor 'promotion' in the repository 'ProductCatalog-ver' is transient but was expected to be persistent. This can occur when a repository item is removed or renamed and subsequent layers (e.g. liveconfig or localconfig) continue to reference the old repository item name to define caching configuration. The item becomes transient because the base item descriptordefinition that defines the primary table no longer exists.
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.gsa.GSAItemDescriptor.getBuilder(GSAItemDescriptor.java:10520)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionItemDescriptor.getLineFilter(VersionItemDescriptor.java:3622)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionItemDescriptor.getLineFilter(VersionItemDescriptor.java:3578)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionItemDescriptor.getVersionIDsInLine(VersionItemDescriptor.java:2963)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionRepository.getVersionIDsInLine(VersionRepository.java:6396)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionRepository.getVersionItemsInLine(VersionRepository.java:6260)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionRepository.getVersionItemsInLine(VersionRepository.java:6225)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.adapter.version.VersionRepository.getCurrentVersionItemsInLine(VersionRepository.java:6098)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.versionmanager.impl.DevelopmentLineRepositoryImpl.get(DevelopmentLineRepositoryImpl.java:542)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.versionmanager.impl.DevelopmentLineRepositoryImpl.getCurrentAssetVersions(DevelopmentLineRepositoryImpl.java:319)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.versionmanager.impl.DevelopmentLineRepositoryImpl.getCurrentAssetVersions(DevelopmentLineRepositoryImpl.java:288)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.deployment.server.Deployment.createSourceAssetStates(Deployment.java:5883)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.deployment.server.Deployment.getDeploymentAssetStates(Deployment.java:5826)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.deployment.server.Deployment.getDeploymentMetaData(Deployment.java:2220)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.deployment.server.Deployment.updateStatusWithAffectedDestinations(Deployment.java:2061)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at atg.deployment.server.Deployment.run(Deployment.java:1909)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
at java.lang.Thread.run(Thread.java:662)
**** Error
Ter Nov 19 16:09:05 BRST 2013
1384884545293
/atg/epub/DeploymentServer
If you could help please.
Thanks!
The exception is caused because an item descriptor in the repository is "transient",
meaning that it has no primary table. This situation results in the use of a
different QueryBuilder class that isn't compatible with the Builder interface that is
required, which causes the ClassCastException.
Have you modified the promotion item descriptor?
Similar Messages
-
Unable to retrieve data from repository
Hi All
I am new to ATG. I want to create small application where I need to retrieve all the user's first name and last name and display that in index.jsp. I am using MySQL database server. Till date I have created one userRepository.xml file which contains table name and all the column name. One UserRepository.properties file which contains following code.
$class=atg.adapter.gsa.GSARepository
definitionFiles=/repositories/userRepository.xml
repositoryName=UserRepository
Now in index.jsp page I am using following code to display user details.
<dsp:droplet name="/atg/dynamo/droplet/RQLQueryForEach">
<dsp:param name="repository" value="/test/services/userRepository"/>
<dsp:param name="itemDescriptor" value="users"/>
<dsp:param name="queryRQL" value="ALL"/>
<dsp:oparam name="outputStart">
<table width=100% cellpadding=0 cellspacing=0 border=0>
</dsp:oparam>
<dsp:oparam name="output">
<tr><td>
<dsp:valueof param="element.firstName"/>
<dsp:valueof param="element.lastName"/>
</td></tr>
</dsp:oparam>
<dsp:oparam name="outputEnd">
</table>
</dsp:oparam>
<dsp:oparam name="error">
*** Error occurred *** <p><p>
<dsp:valueof param="rqlException"/>
</dsp:oparam>
</dsp:droplet>
I am getting error like "das_id_generator does not exist". Similiarly I am getting error for other table which is not there in my schema.
So Please tell me how to resolve this issue and exact procedure to retrieve the data from repository.
Thanks in Advance
PrasannaHi Shaik,
when i run the following command:
startSQLRepository -m Store.Storefront -export user user.xml -repository/atg/dynamo/service/SampleRepositoryTest/SampleRepositoryTest
error log:
**** Error Thu Mar 02 13:51:15 PDT 2012 1325519475432 / atg / dynamo / service / IdGenerator --- CONTAINER: atg.service.idgen.IdGeneratorException; SOURCE: CONTAINER: atg.service.idgen.IdGeneratorException: atg . service.idgen.IdGenResources-> ERR_QUERY_TABLE: Unable to query table "das_id_generator." Please make sure That table exists and is accessible before starting this service.; SOURCE: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.das_id_generator' does not exist
which means this error?
Why adds "test." on table name?
how to proceed??
tanks. -
Unable to cast object of type ?
Hi ,
i try to compile sample aspx page using plugin but it throws the error
Unable to cast object of type 'asp.catalog_sample_aspx' to type 'netpoint.classes.NPbasepage'
why this type error shows?
pls guide me.here is an example of a page that inherits NPBasePage.
<%@ Page Language="C#" MasterPageFile="~/masters/common.master" Inherits="netpoint.classes.NPBasePage" %>
<%@ Import Namespace="netpoint.classes" %>
<%@ Import Namespace="netpoint.api.account" %>
<asp:Content ContentPlaceHolderID="mainslot" runat="server" ID="main">
<asp:PlaceHolder ID="phMainSlot" runat="server">
<scrip t language="c#" runat="server">
protected void Page_Load(object sender, System.EventArgs e)
NPBasePage bp = (NPBasePage)Page;
NPUser u = new NPUser(bp.UserID);
txtBox.Text = u.FirstName + " " + u.LastName;
</script>
<div>
<asp:TextBox ID="txtBox" runat="server"></asp:TextBox>
</div>
</asp:PlaceHolder>
</asp:Content> -
UNABLE TO CAST OBJECT OF TYPE 'PROFILECOMMON' TO TYPE 'PROFILECOMMON'
I have four web application configured on the IIS with .Net Framework 2.0
All the applications are working fine except one.
If the system / server, restarted. The Application throws an error message "UNABLE TO CAST OBJECT OF TYPE 'PROFILECOMMON' TO TYPE 'PROFILECOMMON'"
When I searched for the issue, they have mentioned that the temporary
Profile class clashes with your ProfileCommon class.
By setting <profile enabled="false"> you are telling it to NOT generate the dynamic, temporary Profile
class and use your own instead.
On every restart, I need to change the attribute value to make it work.
Can you please let me know, why it crashed on server restart? How it can be resolved ?
Root cause???
Please help on this.
MJ - Man of Joy (Rajkumar) Techno GeekHello,
Try located at c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\<your app name>\87f549dc\aa62540\Sources_App_Code\profile.cdcab7d2.cs
This temporary Profile class clashes with your ProfileCommon class. By setting <profile enabled="false"> you are telling it to NOT generate the dynamic, temporary Profile class and use your own instead.
if the reply help you mark it as your answer.
Free Managed C#
Word, PDF , Excel Component(Create,
Modify, Convert & Print) -
Unable to full text index the contents in Oracle 11g UCM
Hi,
I am new to the Oracle UCM 11g.
i am unable to full text index the content files that are check-in into the Oracle UCM.
I have added the below entries in config.cfg file:
SearchIndexerEngineName=OracleTextSearch
IndexerDatabaseProviderName= SystemDatabase
AdditionalEscapeChars=-;#
While performing the indexing operation using Repository Manager only, metadata of the content files are indexed, but full text is not getting indexed.
What is missing here in Oracle UCM for not fulltext indexing the contents? What configurations do i need to do for this so that i can search perform the full text search on the Contents in Oracle UCM?
Thanks in Advance
DipeshHi Srinath,
Collection rebuild cycle runs perfectly fine. After enabling tracing for Indexer and systemdatabse, i got the below info in the log:
"Finished rebuilding the search index with a total of 123 files successfully indexed. A total of 0 files had a full text index."
The below is the details of the activeindex.hda:
<?hda version="11gR1-11.1.1.3.0-idcprod1-100505T121221" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
UseImplicitZonedSecurityField=true
blFieldTypes=
ActiveIndex=index1
blDateFormat=M/d{yy}{ h:mm[:ss]{ a}}!mAM,PM!tGMT+05:30
@end
@ResultSet SearchCollections
7
sCollectionID
sDescription
sVerityLocale
sProfile
sLocation
sFlag
sUrlScript
TestHost
!csSearchDefaultSearchCollection
English-US
local
index1
enabled
<$URL$>
@end
Is it possible that OracleTestSearch Component is missing in Oracle UCM?
Thanks
Dipesh -
Unable to initialize socket connection to Content Server
Hi,
Webcenter installed on linux, content server installed on windows. Here is the error I see in the log files. I did added the ip address of the linux machine in windows host file but in Spaces I see JCR Connection problem. Any idea on what might be wrong. Here ar the settings I have Repository Connection:
User Name: sysadmin
CIS Socket Type: Socket
Server Host: windowsmachine
Server Port: 5444
Authntication Method: Identity Propagation
javax.jcr.RepositoryException: oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize socket connection to Content Server
at oracle.jcr.impl.ExceptionFactory.repository(ExceptionFactory.java:161)
at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:177)
at oracle.jcr.impl.OracleRepositoryImpl.login(OracleRepositoryImpl.java:444)
at oracle.vcr.jam.LoginTask.call(LoginTask.java:68)
at oracle.vcr.jam.LoginTask.call(LoginTask.java:29)
at oracle.webcenter.concurrent.Submission$2.run(Submission.java:495)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:509)
at oracle.webcenter.concurrent.Submission.run(Submission.java:436)
at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:792)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.stellent.ridc.protocol.ProtocolException: Unable to initialize socket connection to Content Server
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:23)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:10)
at oracle.stellent.ridc.protocol.impl.SimpleConnectionPool.acquireConnection(SimpleConnectionPool.java:35)
at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:130)
at oracle.stellent.jcr.IdcPersistenceManagerFactory.createPersistenceManager(IdcPersistenceManagerFactory.java:163)
... 15 more
Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.net.ConnectException: Connection refused
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:41)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnectionManager.initializeConnection(SocketConnectionManager.java:21)
... 19 more
Caused by: 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:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.createSocket(SocketConnection.java:111)
at oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection.connect(SocketConnection.java:38)
... 20 moreThis error usually occurs because you have not authorized the client's IP address in UCM. The steps to add the WebCenter host to the list of authorized clients are detailed in section [4.3.1.3.1 of the Installation Guide|http://download.oracle.com/docs/cd/E12839_01/install.1111/e12001/webcenterservice_install.htm#sthref161].
Regards,
Nicolas -
Unable to connect to the repository for this domain
Hi,
on the Application Server Control interface of my ContentDB Middle-Tier instance, I have the following error on top of the "Content" Domain :
Error: Unable to connect to the repository for this domain
Due to this error, I'm not able to start the default Node (OC4J_Content is started) and I don't see any Domain properties, Node Configurations, Service Configurations within the Administration of the domain. This means that I cannot change any of these properties, but ContentDB is up and running...
When I try to start the Node, I have the following error in the opmn log:
2007/04/12 18:47:32 [oracle.ifs.management.domain.NodeManager] [10] INFO: Initialize: starting service IfsDefaultService
2007/04/12 18:47:32 [oracle.ifs.management.domain.NodeManager] [10] SEVERE: Node Manager, unable to start service, throwing
oracle.ifs.common.IfsException: IFS-45083: Unable to start service (IfsDefaultService)
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefaultService)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (SmallServiceConfiguration)
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-02248: invalid option for ALTER SESSION
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.GetCharSetError.processError(T2CConnection.java:3260)
at oracle.jdbc.driver.T2CConnection.getCharSetIds(T2CConnection.java:2966)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:318)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:433)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:141)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.ifs.beans.LibraryService.getServiceConfigurationProperties(LibraryService.java:812)
at oracle.ifs.beans.LibraryService.startServiceUsingDatabaseUrl(LibraryService.java:607)
at oracle.ifs.beans.LibraryService.startService(LibraryService.java:520)
at oracle.ifs.management.domain.NodeManager.startService(NodeManager.java:2486)
at oracle.ifs.management.domain.NodeManager.bootstrapServices(NodeManager.java:3201)
at oracle.ifs.management.domain.NodeManager.run(NodeManager.java:1012)
at oracle.ifs.management.domain.NodeManager.main(NodeManager.java:594)
Does anyone have an idea on how to solve this ?
Regards,
Nicola
PS:
I have OracleDB, ASInfrastructure and ContentDB (only one instance) installed on the same Windows 2003 server with the following versions:
- Oracle Database 10.2.0.1 + Oracle Database Companion CD (for Ultra Search) + Patch 10.2.0.2
- Oracle Metadata Repository Creation Assistant 10.1.2.0.2
- Oracle Application Server Infrastructure 10.1.2.0.2
- Oracle Content Database 10.2.0.0I called Apple support at 5 pm, it is now 10:30 pm. I am STILL getting the SAME error, saying it is unable to connect to the iphone restore (for upgrading to iOS 4), they said to wait and try every thirty minutes, but it's getting old...
-
Unable to connect to DVM Repository
Hi,
we are having difficulties creating domain value maps in the ESB control. When we try to save a new map or import an existing one we get the following error in ESB control: "Unable to connect to DVM Repository. Please verify if the DVM Repository is accessible."
In the OPMN log we found the following error:
09/05/25 10:09:07 oracle.tip.esb.dvm.exception.RepositoryNotFoundException: Unable to connect to DVM Repository.
Please verify if the DVM Repository is accessible.
09/05/25 10:09:07 at oracle.tip.esb.dvm.DVMCache.writeToRepository(DVMCache.java:221)
09/05/25 10:09:07 at oracle.tip.esb.dvm.DVMCache.addDVM(DVMCache.java:103)
09/05/25 10:09:07 at oracle.tip.esb.dvm.DVMManagerImpl.createDVM(DVMManagerImpl.java:89)
09/05/25 10:09:07 at oracle.tip.esb.dvm.DVMManagerImpl.createDVM(DVMManagerImpl.java:81)
09/05/25 10:09:07 at oracle.tip.esb.dvm.DVMManagerImpl.createDVM(DVMManagerImpl.java:77)
09/05/25 10:09:07 at oracle.tip.esb.dvm.configuration.servlet.command.CreateDVMCommand.execute(CreateDVMCommand.java:33)
09/05/25 10:09:07 at oracle.tip.esb.configuration.servlet.CommandServlet.doJob(CommandServlet.java:109)
09/05/25 10:09:07 at oracle.tip.esb.configuration.servlet.CommandServlet.doPost(CommandServlet.java:76)
09/05/25 10:09:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
09/05/25 10:09:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
09/05/25 10:09:07 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
09/05/25 10:09:07 at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
09/05/25 10:09:07 at java.security.AccessController.doPrivileged(Native Method)
09/05/25 10:09:07 at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
09/05/25 10:09:07 at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
09/05/25 10:09:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
09/05/25 10:09:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
09/05/25 10:09:07 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
09/05/25 10:09:07 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
09/05/25 10:09:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
09/05/25 10:09:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
09/05/25 10:09:07 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
09/05/25 10:09:07 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303
09/05/25 10:09:07 at java.lang.Thread.run(Thread.java:595)
In the diagnostics log of the oc4j_soa instance we noticed this:
"Attempt to use an invalid handle : 'oracle_jdbc_driver_LogicalConnection_Proxy@11b0af'". Not sure if this has anything to do with the DVM problem but I'm mentioning it because it pops up many times in the diagnostics log.
We are using the following stack:
Oracle SOA Suite 10.1.3.4.0
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
Can anyone point us in the right direction? We've also logged an SR with Metalink:7586496.992.
Thanks!
StevenThe oracle_jdbc_driver_LogicalConnection_Proxy@11b0af is probably unrelated, this probably caused by some java you have implemented importing the wrong java class.
You may have imported oracle.jdbc.driver.OracleConnection which is wrong. the class you should use is
oracle.jdbc.OracleConnection
This could be any deployed java on you app server.
Can you check that the esb datasource is valid.
cheers
James -
Unable to cast object InfoObject to Report
Post Author: tony.xu
CA Forum: .NET
Dear all,
I'm testing blow code in BOXI,VisualStdio2005, Net2.0, Windows2003, but one error output in runtime.
Unable to cast object of type 'BusinessObjects.Enterprise.Desktop.FullClient' to type 'CrystalDecisions.Enterprise.Desktop.Report'.
All code is here:
using System;using CrystalDecisions.Enterprise;using CrystalDecisions.Enterprise.Desktop;namespace PEI.POAutoGenerate.Test{ public class Program { public static void Main(string[] args) { try { SessionMgr sessionMgr = new SessionMgr(); EnterpriseSession enterpriseSession = sessionMgr.Logon("myaccount", "mypassword", "BOServer", "secWinAD"); EnterpriseService enterpriseService = enterpriseSession.GetService("InfoStore"); InfoStore infoStore = new InfoStore(enterpriseService); string query = "Select * From CI_INFOOBJECTS Where SI_INSTANCE=0 and SI_ID=1798"; InfoObjects infoObjects = infoStore.Query(query); if (infoObjects.Count > 0) { InfoObject infoObject = infoObjects[1]; Report report = (Report)infoObject; Console.WriteLine(report.ToString()); } else { Console.WriteLine("not found"); } } catch (Exception ex) { Console.WriteLine(ex.Message); } } }}
Anyone help me? Thank you!Post Author: Ted Ueda
CA Forum: .NET
The error in the original post was that the referenced object was a Desktop Intelligence document, and not a Crystal Report. I would check the SI_KIND value for the object that you're retrieving - if it's a different kind, but originates from a Crystal Report SI_KIND, then you can create a Report object via:report = new Report(infoObject.GetPluginInterface("Report"));Sincerely,Ted Ueda -
Hi friends,
Can anyone tell the difference btw hibernate and ATG Repository .
Thanks & regards,
DinuvBoth are data access models. They are same in everything except that repository is weakly typed and hibernate is strongly typed. That is because repositories work on the concept of dynamic beans ( repository items), wherein you access any value of the item-descriptor using getPropertyValue() giving property name.
Hibernate on the other hand is strongly typed, it will convert into appropriate POJO's. When you code to atg repositories, you always work on repository items and each property you access is again type casted to String or Int or Boolean, whereas in hibernate, its already taken care.
In terms of end user, it doesn't make any difference.
-karthik -
Error While Creating Repository Content at the time of Installation
Hi Guys,
When i'm trying to create repository content at the time of informatica installation i'm getting error "Cannot create repository content or restore".
I'hve attached the log file below
ONE')
INSERT INTO REP_CARD_TYPE VALUES (4, 'MANY TO MANY')
CREATE TABLE REP_TARG_TYPE
TARGET_TYPE integer,
TYPE_NAME varchar(20)
INSERT INTO REP_TARG_TYPE VALUES (0, 'NONE')
INSERT INTO REP_TARG_TYPE VALUES (1, 'DIMENSION')
INSERT INTO REP_TARG_TYPE VALUES (2, 'FACT')
CREATE VIEW REP_DATABASE_DEFS AS SELECT
DISTINCT
DBDNAM DATABASE_NAME,
SRCNAM DEF_SOURCE,
SUBJ_NAME SUBJECT_AREA,
NULL VERSION_ID,
OPB_DBD.VERSION_NUMBER DATABASE_VERSION_NUMBER
FROM OPB_DBD, OPB_SUBJECT, OPB_SRC
WHERE OPB_DBD.SUBJ_ID = OPB_SUBJECT.SUBJ_ID AND
OPB_SRC.DBDID = OPB_DBD.DBDID AND
OPB_SRC.VERSION_NUMBER = OPB_DBD.VERSION_NUMBER AND
OPB_SRC.IS_VISIBLE = 1
ORA-01031: insufficient privileges
Database driver error...
Function Name : executeDirect
SQL Stmt : CREATE VIEW REP_DATABASE_DEFS AS SELECT
DISTINCT
DBDNAM DATABASE_NAME,
SRCNAM DEF_SOURCE,
SUBJ_NAME SUBJECT_AREA,
NULL VERSION_ID,
OPB_DBD.VERSION_NUMBER DATABASE_VERSION_NUMBER
FROM OPB_DBD, OPB_SUBJECT, OPB_SRC
WHERE OPB_DBD.SUBJ_ID = OPB_SUBJECT.SUBJ_ID AND
OPB_SRC.DBDID = OPB_DBD.DBDID AND
OPB_SRC.VERSION_NUMBER = OPB_DBD.VERSION_NUMBER AND
OPB_SRC.IS_VISIBLE = 1
Oracle Fatal Error
Database driver error...
Function Name : ExecuteDirect
Oracle Fatal Error
Error occurred while creating the repository
An error has occurred while creating contents. Dropping repository tables...
Create Contents operation on repository [Oracle_BI_DW_Base] ended at 08/10/2009 11:50:49. Elapsed time is 0:00:10.
[[REP_57106] Repository operation error. See repository service log for detailed information.]
Failed to execute create.
Completed at Mon Aug 10 11:50:49 2009
Error:
ExitCode: 1
Installation Complete
======================Hi Rama,
You don't need to give your etl_ram user a dba role.
Please refer to the Oracle® Business Intelligence Applications - Installation Guide for Informatica PowerCenter Users, especially to chapter +4.4.1 Create Databases for Oracle BI Applications and Informatica PowerCenter Components+
Quoting:
Make sure that the Oracle Business Analytics Warehouse instance is granted the SSE_ROLE. For more information, see Section 4.4.1.1, "How to Create the SSE Role."
This role would typically get more privileges than just CONNECT and RESOURCE.
Hope it helps,
Michal -
How to load binary content of a .class file?
Hello everyone,
I want to load the binary content of a .class file in a dynamic approach. In more detail, I want it to work in the following approach. When given the name of a class, I can retrieve the binary content of the .class file. I have written the following sample but it does not work. Can anyone help to find what is wrong with my sample? How to achieve my goal?
String className = this.getClass().getName();
InputStream inputStream = this.getClass().getResourceAsStream (className);When executing the above code, the inputStream is always returned as "null".
Thanks in advance,
GeorgeThanks ruthf104,
I haven't tested this, but I think you will need to
transform the class name
"test.Foo"
into the resource path
"/test/Foo.class"
ie change '.' to '/', append '/' at the beginning
and ".class" at the end.
See the following paragraph from the
Class.getResourceAsStream specification:
"This method delegates the call to its class loader,
, after making these changes to the resource name: if
the resource name starts with "/", it is unchanged;
otherwise, the package name is prepended to the
resource name after converting "." to "/". If this
object was loaded by the bootstrap loader, the call
is delegated to
ClassLoader.getSystemResourceAsStream."
By these rules, the method will not be able to
automatically transform the class name into a
resource path for you (it doesn't append the
".class"), so you'll have to do it yourself.I have verified that your approach is working!
regards,
George -
Hi all,
I have the following code:
Dim oProdOrders As SAPbobsCOM.Documents
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}
If I change document to eg oQuotations it proceeds normally.
Any Idea?
Thanks in advance,
Vangelistry it as
Dim oProdOrders As SAPbobsCOM.ProductionOrders
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders) -
I have some Oracle Tables with sequences for primary key and stored procs in packages to wrap up the insert commands. The sequences field are all declared as NUMBER.
I also have Datasets based on the tables and a DataAdapter for each package. The Datasets see the primary keys as System.Decimal. The DataAdapter sees the output primary key parameter to the stored procs as OracleDecimal.
tmp.Parameters.Add(new OracleParameter("P_ID", Oracle.DataAccess.Client.OracleDbType.Decimal, ParameterDirection.Output));
tmp.Parameters["P_ID"].SourceColumn = "ID";
When I call the Update on the DataAdapter the update happens on the DB and then I get the following error
System.ArgumentException : Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.Couldn't store <231> in ID Column. Expected type is Decimal.
----> System.InvalidCastException : Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.
If I change the Oracle parameter to Oracle.DataAccess.Client.OracleDbType.Int32 or Oracle.DataAccess.Client.OracleDbType.Int64 it works fine - any ideas why that would be ? I would expect System.Decimal to map to Oracle.DataAccess.Types.OracleDecimal.Hi,
If I change the Oracle parameter to Oracle.DataAccess.Client.OracleDbType.Int32 or Oracle.DataAccess.Client.OracleDbType.Int64 it works fine - any ideas why that would be ? I would expect System.Decimal to map to Oracle.DataAccess.Types.OracleDecimal.
I'm trying to do the same, but no matter what I do, I get the OracleDecimal error. Parameter is defined as:
bq. this._adapter.InsertCommand = new global::Oracle.DataAccess.Client.OracleCommand(); \\ this._adapter.InsertCommand.Connection = this.Connection; \\ this._adapter.InsertCommand.CommandText = "INSERT INTO PERSON\r\n (ID, SURNAME, NAME, BIRTHCITY, EMSO)\r\nV" + \\ +"ALUES (:ID, :SURNAME, :NAME, :BIRTHCITY, :EMSO) RETURNING ID INTO :ID";+ \\ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; \\ param = new global::Oracle.DataAccess.Client.OracleParameter(); \\ param.ParameterName = "ID"; \\ param.DbType = global::System.Data.DbType.Int32; \\ param.OracleDbType = global::Oracle.DataAccess.Client.OracleDbType.Int32; \\ param.Direction = global::System.Data.ParameterDirection.Output; \\ param.IsNullable = true; \\ param.SourceColumn = "ID"; \\ this._adapter.InsertCommand.Parameters.Add(param);
But no luck... -
Unable to cast object of type OracleXmlType to type XmlDocument
Hello All:
I have an Oracle Procedure that is taking an XML Document as an output parameter.
oCommand.Parameters.Add("errorrecord", OracleDbType.XmlType).Value = System.DBNull.Value;
oCommand.Parameters["errorrecord"].Direction = System.Data.ParameterDirection.Output;
When I try to cast this as an XmlDocument so I can set it to my ErrorRecord variable (defined as XmlDocument) and pass it back out of the Web-Service
ErrorRecord = (XmlDocument)oCommand.Parameters["p_errorrecord"].Value;
I get the following error: "Unable to cast object of type 'Oracle.DataAccess.Types.OracleXmlType' to type 'System.Xml.XmlDocument'"
How do I cast / convert the Oracle XMLType back to a .Net XMLDocument to pass out of the function?
ThanksNo, I have not tried that yet, but I admit I don't fully understand the syntax in the document posted.
oCommand.Parameters.Add("p_errorrecord", OracleDbType.XmlType).Value = System.DBNull.Value;
ErrorRecord = GoCommand.Parameters["errorrecord"].Value; (this is returned as XmlType)
I don't quite understand the syntax in the posted URL:
Declaration
// C#
public XmlDocument GetXmlDocument();
How am I to use this to get the XMLDocument?
Maybe you are looking for
-
I have over 1200 songs in my iTunes library that have always synced fine, I have added a new album to my list from one of my CD's, synced to add it to my library but less that 100 songs are now showing on my device and no matter how many ways I try i
-
Hi guys~ I have a question about MC46 for slow moving item. When I run this program, it shows two type of results. The one is only showing the number and the other is showing number with '(No usage)'. What is different between two of them. I have no
-
How do u set a signature for text messages
how do u set a signature for ur text mesages
-
Why my iphone6 doesn't have FaceTime ?
Why my iphone6 doesn't have face time in home display ?
-
Impossible d'envoyer des mails depuis mon compte du travail
Bonjour, j'ai deux adresses sur mon iPad une perso, une pour le travail, et je reçois bien mes mails mais impossible d'envoyer des mails de la boite de mon travail