Using data source in adf application.
Hi ,
JDev version : 11.1.1.6.0
I am planning to use data source in the application , but there is an issue facing while running with data source.
Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.cisco.complianceutil.WizardDataSourceUtil.main(WizardDataSourceUtil.java:42)
Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
So I used "Weblogic.jar" once and "wlfullclient.jar" . By using one of these jars issue fixed but because of it while loading the application it is throwing the below error .
<Sep 10, 2013 2:42:05 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "ComplianceWizard".
javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)
at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)
For this I observed that solution is removing the wlfullcient.jar or weblogic.jar from the libraries. But If I do not use any one of them then data source does not work. Please guide me with your suggestions.
This is configured in your database access layer - if it is using ADF BC then in the Application Module go to the configuration tab and edit the local configuration to see the information about which DB you are accessing.
Similar Messages
-
Tomcat error when using data source.
Hello,
I have a problem in that Tomcat does not seem to be recognising my DB Driver. I have tried linking a global data source to my application as well as adding a project specific one with no luck. Here is some of my files:
//Web.xml
<?xml version='1.0' encoding='UTF-8'?>
<web-app
version="2.4"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
>
<display-name>DataSourceExample</display-name>
<servlet>
<display-name>welcome</display-name>
<servlet-name>welcome</servlet-name>
<jsp-file>/welcome.jsp</jsp-file>
</servlet>
<servlet>
<display-name>DataSourceExample</display-name>
<servlet-name>DataSourceExample</servlet-name>
<jsp-file>/DataSourceExample.jsp</jsp-file>
</servlet>
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<res-ref-name>jdbc/DataSourceExample</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
//server.xml
<?xml version="1.0" encoding="UTF-8"?>
<Server>
<Listener className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<GlobalNamingResources>
<Environment
name="simpleValue"
type="java.lang.Integer"
value="30"/>
<Resource
name="jdbc/DataSourceExample"
type="javax.sql.DataSource"
maxActive="4"
maxIdle="2"
username="hr"
maxWait="5000"
driverClassName="oracle.jdbc.driver.OracleDriver"
password="secret"
url="jdbc:oracle:thin:@127.0.0.1:1521:xe"/>
<Resource
auth="Container"
description="User database that can be updated and saved"
name="UserDatabase"
type="org.apache.catalina.UserDatabase"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"/>
</GlobalNamingResources>
<Service
name="Catalina">
<Connector
port="8084"
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="20000"
maxThreads="150"
maxSpareThreads="75">
</Connector>
<Connector
port="8009"
redirectPort="8443"
protocol="AJP/1.3">
</Connector>
<Engine
defaultHost="localhost"
name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
<Host
appBase="webapps"
name="localhost">
<Context
path="/DataSourceExample"
<ResourceLink
global="jdbc/DataSourceExample"
name="jdbc/DataSourceExample"
type="javax.sql.DataSource"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
//A java snippet I am using to access the DB
InitialContext context = new InitialContext();
DataSource dataSource =
(DataSource) context.lookup("java:comp/env/jdbc/DataSourceExample");
Connection conn = null;
Statement stmt = null;
ResultSet rset = null;
try {
conn = dataSource.getConnection();
stmt = conn.createStatement();I also have my DB drivers in the commons/lib file. I know the connect string works fine because I can access the DB from Eclipse when writing standard Java code.
This is a common problem and I have been searching Google for the last 3 hours but nothing I have tried has fixed my problem.
I am using Tomcat 5.5 and J2EE 5. I am creating the links and resources in Tomcat manager.
I don't get any logs or stacktrace, the only error I get is as follows in the returned JSP page:
DataSource Example
Cannot create JDBC driver of class '' for connect URL 'null'What am I doing wrong?
Cheers
EDIT:
Actually there was some output from the shell. Here it is:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
ss '' for connect URL 'null'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:780)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
urce.java:540)
at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
p.java:61)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:773)
... 22 more
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
ss '' for connect URL 'null'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:780)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
urce.java:540)
at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
p.java:61)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:773)
... 22 moreI am using ojdbc14.jar driver and as I mentioned it is in commons/lib
Message was edited by:
helloWorld
Message was edited by:
helloWorldPutting the driver into [TOMCAT]/common/lib is sufficient.
The error I think is not related to finding the driver, but actually not retrieving the correct connection string info.
I never had much luck putting this definition info into server.xml
I have had success putting it into a custom context.xml file for a web app as described [url http://tomcat.apache.org/tomcat-5.5-doc/config/context.html]here
in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml.
eg [TOMCAT]/conf/catalina/localhost/DataSourceExample.xml
Hope this helps,
evnafets -
How to use data-sources tag in struts-config.xml
hi all,
I am doing programs in sturts. My program purpose is to retrieve data from the database.My database is MySql. I know that we can write connection code in Action Class, it is ok for some less prog's if i want to use the sane connection code in more Action Classes it is vasting time and so.
So i want to use <data-sources> tag that is available in struts-config.xml. I know that thre is tag with this name, but the problem is i don't know how to use this tag. If any budy know how to use this please tell me the syntax or any example.
plese... reply soon..hi all,
I am doing programs in sturts. My program
My program purpose is to retrieve data from the
database.My database is MySql. I know that we can
write connection code in Action Class, it is ok for
some less prog's if i want to use the sane connection
code in more Action Classes it is vasting time and
so.I don't think it's a good idea to put database code in Action classes. (That's one of the biggest drawbacks of Struts - it's completely tied to Actions, HTTP, and the Web.) Better to move that code into plain old Java objects and let the Actions call them.
You'll be able to test them without the container or Struts, and you'll be able to reuse those objects in other, non-Web contexts.
So i want to use <data-sources> tag that is available
in struts-config.xml. I know that thre is tag withThis is the wrong place to configure a connection pool, too. Struts should have nothing to do with it. What if you change Web frameworks to WebWork or Spring? The connection pool should be configured in the container that hosts your app, not Struts.
this name, but the problem is i don't know how to use
this tag. If any budy know how to use this please
tell me the syntax or any example.
plese... reply soon..Don't do it. Think about doing it in your container, not Struts.
% -
Adhoc Reporting using Data Sources instead of Report Model
Hi Gurus,
I'm working on SSRS 2008. I'm trying to create Adhoc Report using Report Builder 3.0. To select Data Source, both *.rsds and *.smdl are listed. I selected a Data Source which points to a SQL database. When I add New datasets, I'm able to add the fields and
it automatically detect relationships (Joins) using Primary Key and Foreign Key defined in the tables. I'm also able to edit the query. I ran the report and it ran successfully.
My question is I couldn't find any documentation regarding using Data Source for Adhoc Reporting. MS SQL documentation and forums insists that Report Model is required for Adhoc Reporting.
Please let me know if someone tried to create Adhoc Report using Data Source instead of Report Model. While I understand there are more benefits using Report Model (define entities/attributes, show/hide entity/attributes, organize entities/attributes etc.),
I just want to know if this is possible.
Are there any known limitation using this method?
Thanks In Advance!Hi Ereswaran,
Yes, we can create ad hoc report using report using data source instead of Report Model. Ad hoc reports typically are used to answer a specific question at appoint in time, so consequently people don’t spend a lot of time arranging and formatting the data
in a precise way. Other report development tools are available in Reporting Services to support more sophisticated reporting requirements.
Using Report Builder, we can build a simple report that display data form a single data source as defined by a report model. This tool is most useful for business users who need access to information but lack the skills to write a SQL query. If we have full
experience of SQL query, of course we can use data source instead of Report Model.
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
Charlie Liao
TechNet Community Support -
Using UCM data controls in ADF application
Using *.6 Jdeveloper/UCM/Protal Application/UCM
Calling all the experts in Webcenter/Spaces/UCM/ADF.
We have a requirement to design search inteface for Documents stored in UCM for Webcenter Portal and Spaces application.
Our approach is
Design simple ADF application (no security/templates)
Bounded task flows using fragments.
Framents to use UCM data controls (provided by oracle)
UCM data control definition is extended to use custom metadata.
package the application.
Added as ADF library jar to portal application
Added as Shared Library to Spaces application.
Question.
Is this approach sound?
Does UCM data controls provide all the functionality, for example if we want to read a option list for custom metadata or need custom metadata in return table?
Can we add other methods to UCM data control provided by Oracle or should we create different one?
Is there good documentation for such requirements. We have acces Webcenter developers guide which throws some light on UCM data controls.
Let me know if more clarity is needed...
RegardsHi.
One of my last components was a custom "Document Explorer" and I used for first time JCR Data Control (Custom UCM Data Control provided by Oracle).
Sharing my experience I did something similar to you:
1) Create a ADF Bounded Task Flow and test it individually.
2) Add generated ADF JAR Library to WebCenter Spaces shared-lib.
3) Add your Task Flow to Resource Catalog.
Challenges that I found using custom Data Control:
1) When items retrieved are content/files all custom metadata can be retrieved OOTB.
2) When retrieving folders don't provide custom metadata like files. I used RIDC with JCR Data Control to provide all the information relative to folders. If you don't need more information about folders than the name, URI and icons then is OK :).
3) Using JCR Data Control registers in DataControls.dcx UCM Connection name used when generate JCR Data Control. After deploy your ADF JAR Library in WebCenter Spaces you'll have problems if you don't have a WebCenter Content Connection created with the same name. (Not talking about export UCM Connection with ADF JAR Library, Data Control uses a Connection name by itself :)).
I added extra functionallity with RIDC (not extending JCR Data Control).
I hope this help you.
Regards. -
XML data source from Java application
Hello everyone,
I want to use BI Publisher reports from my Java application.
1. I have generated xml from database query in Java application.
2. I have created BIP template sampleReport.rtf
3. I need to generate PDF report using sampleReport.rtf and generated xml data source.
How this (step 3) can be achieved using BI publisher web service? If someone has sample code, this would be great.
Thanks.Hello everyone,
I want to use BI Publisher reports from my Java application.
1. I have generated xml from database query in Java application.
2. I have created BIP template sampleReport.rtf
3. I need to generate PDF report using sampleReport.rtf and generated xml data source.
How this (step 3) can be achieved using BI publisher web service? If someone has sample code, this would be great.
Thanks. -
JDBC runtime error using data source (Oracle 9i server & Oracle 8i client)
Hi,
Wud someone help me with this? Why am I getting this run-time error?
D:\shilpa\javaprogs>java -classpath %classpath%;.; CreateMovieTables
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at CreateMovieTables.initialize(CreateMovieTables.java:18)
at CreateMovieTables.main(CreateMovieTables.java:101)
This is how I have created the data source:
public void initialize() throws SQLException, NamingException
Context initialContext = new InitialContext();
DataSource dataSource = null;
dataSource = (DataSource) initialContext.lookup("jdbc/Oracle");
connection = dataSource.getConnection();
I have set the classpath to: C:\j2sdk1.4.2_08\jre\lib where the jndi.properties file exists.
Here's the jndi file:
datasource.name=jdbc_1
datasource.url=jdbc:oracle:thin:@10.119.5.98:1521:sea77db0
datasource.classname=oracle.jdbc.driver.OracleDriver
datasource.username=tr1
datasource.password=tr1
What am I doing wrong? Cud someone help me with this? It's working fine when I don't use the data source. Maybe I am doing something wrong.
Regards,
Shipf1After reading your posts, I noticed that my eyes were bleeding...
Wud someone help me with this?
Cud someone help me with this?
Thanks. It worked. BUt, IF i wanna ...
I don't[b] wanna...
what shud i do then?
Thought I should return the favor encapsulating the essence of this writing style:
So, IF i cud, I wud, but If i don't wanna shud i anyway?
Just funnin around... Good luck on your problem though.
Darn it, my eyes are bleeding again! -
How make connection using data source with db2
hiiiiii,
please tell me the procedure to connect with db2 through data source (driver should support updatable ResultSet)Read the documentation of the application server used how to create a datasource. Once done that, you can obtain it in your Java code by JNDI. After retrieving the DataSource instance from JNDI, you can just use DataSource#getConnection() to acquire a connection from that datasource.
-
Logical column using data source from 2 generations of same hierarchy
Hi experts,
I'm using Essbase as my data source in CEIM physical layer,
and I have a hierarchy called "Entity" which contains different level of companies,
in Generation 2 I have only one member called "group totals" and in Generation 3 are 5 members representing 5 different industries,
I need to use these total 6 members as slider on the top of the view(a Dial),
and the measure I want to show is scaled in rate, which I can't simply sum up those five members in Gen3 to get Gen2 measurement.
I tried to create a logical column using Entity-default(the alias table) as datasource, it worked but was not sorted in outline style.
I tried to sort them using calculate items in selection steps, but calculate items seemed cannot be shown as section or slider.
So I wonder if I can simply create a logical column that sourced from different generations(in this case, my Gen2 and Gen3) of same hierarchy,
is it possible to do such things?
Thanks for reply.You could try General Database Discussions the main db foum.
What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
Barry -
Advice using workspace in custom ADF application
Submitted on behalf of Mike Rooney (who cannot access this forum):
We are analyzing Oracle BPM 11g beta and would like to understand existing resources for building worklist views, task status, bpm reports, etc, into our custom ADF 11g application. We want to create components on our ADF application pages that mimic these features provided by Oracle Workspace. Are there APIs, libraries or rich components that exist? We have reviewed Chapter 29 of the Oracle SOA 11g Developer Guide which discusses a programmatic solution for building a custom worklist client. We are wondering if there are any alternative rich components or declarative solutions for this functionality.
Any help or advice is appreciated!
-- Becky KellingerSorry for the delay on this one.
Our 11g api is completely backward compatible with 10g. So the source we provide for the JSP based worklist app in 10g still works with 11g.
Starting with BPM PS1, we are also providing reusable taskflows for customers to create their own ADF app and reuse our worklist regions in that app.
Heidi. -
Problem in data loading in 0PM_DS05 using data source 0PM_MEASUREMENT
Hi Gurus,
I have to load data in OPM_DS05 ODS using 0PM_MEASUREMENT data source.
Now the problem what I am facing is, there is a field equipment number which was there in data source but not mapped to infoobject then I mapped that field
EQUNR(R3 field) to 0EQUIPMENT(BI infobject) after this when I try to load data error is comming and when I check the dump I understand that there is some routine written in update rules which refers master data of 0EQUIPMENT thus what I got is I have to load master data first then the ODS but when I load master data then request is not comming in the ATTRIBUTES 0EQUIPMENT.
I am using 0EQUIPMENT_ATTR data source to load data to 0EQUIPMENT.
Please help me out from the situation what should I do and also suggest whether it is necessary to load master data for 0EQUIPMENT.
Your efforts will be appreciated.Hi,
in generally it is always a good idea to load the master data first. In your case there are still some questions.
a) did you activate the master data after loading?
b) what kind of short dump are you getting while loading the transactional data?
c) what is the routine doing?
I guess your loading issues are more related to the routine than anything else.
regards
Siggi -
Using data source to update user defaults
I have a default entry in my user defaults that is a list. Each item of the list is a list of records. I use the following code to delete an entry.
on deletePlaylist()
set tableView to table view "Playlist" of scroll view "Playlist" of window "Schedule Window"
set selectedDataRows to selected data rows of tableView
if (count of selectedDataRows) > 0 then
delete (item 1 of selectedDataRows)
set contents of default entry "specialList" of user defaults to contents of data source "Specials"
register
end if
end deletePlaylist
This code seems to work; when I open my plist the entry looks just as it should. The problem is that the next time I open my program, I get a 1728 error when I try to read that default entry.I'm not using pipes anyplace in my program.
I'm reading my user defaults like this
set theList to contents of default entry "specialList" of user defaults
tell data source "Specials"
set update views to false
delete every data row
repeat with a from 1 to length of theList
set theRow to make new data row at end of data rows
tell theRow
set contents of data cell "thisDay" to thisDay of item a of theList
set contents of data cell "thisTime" to thisTime of item a of theList
set contents of data cell "thisFinalPlay" to thisFinalPlay of item a of theList
set contents of data cell "thisPlaylist" to thisPlaylist of item a of theList
end tell
end repeat
set update views to true
end tell
I'm writing my user defaults like this in my delete routine.
delete (item 1 of selectedDataRows)
set theList to content of data source "Specials" --I think this is the problem line
set contents of default entry "specialList" of user defaults to theList
When I open my plist in Property List editor, the pipes do not show. The entries are identical to those in the plist before it is screwed up. I think that when my program asks for user default thisList it is actually finding |thsList|. Does that make sense?
When I add to the data source, I make the changes to theList and then rebuild the data source and write theList to user defaults. This works fine.
If I could get the line number of the selected data row in the table view, I could use that index to delete the appropriate item from theList and then write theList directly to user defaults like I do when I add to the data source. -
Add Data Source on the Application Server
Does anyone know how I can add a data source to be defined on the application server that hosts the LiveCycle ES server.
Thanks,
JohnIn my datasource location for my jdbc service in workbench I am getting the following error when trying to do a test connection:
Exception: kingorads not bound. Cause: kingorads not bound
kingorads is what I named the jndi name. Here is what I have in the adobe-ds.xml file:
--------------Begin Code
KINGORADS
jdbc:oracle:thin:@kingora:1521:prod
oracle.jdbc.driver.OracleDriver
X
Y
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
Oracle9i
--------------End Code -
How can I use Data Source Explorer to connect soap service with my work manager project?
Hello,
I am new in Agentry and I want to Consume soap service in work manager project.For that I add my service in data source explorer but I dont have any Idea that how can I go further in that to use this service in my project.Are you consuming OData service or SOAP service ? Your heading says something but looking at screen it is OData service.
I have not worked on OData service in Agentry but hopefully you can figure out rest of the steps:-
Here are some high level steps you can follow depending on what your trying to do.
1. Open "Data Source Explorer" view->Eclipse, select "Window/Show View/Other->"Data Management/Data Source Explorer"
2. On "Data Source Explorer" view, ->"OData Connections"->right click and select "New...
3. Enter name of the connection profile.
4. Enter Service URI of in OData Connection Details
5. After "Test Connection", press "Finish" or click "Next" to view Summary.
6. Right click "Yourproject" node under "OData Connection", select connection. You will see "Entities"
7. Expand "ODataEntities", right click "Entityset", select "Agentry: Connector Studio\Object Wizard for OData".
8. Select a module to add odata connection, click "Next"; and click "Next"; and click "Next"
9. Check "Add", "Edit" and "Delete" on "Transaction Selection" screen.
10. Create your own screenset and platform as required.
11. Test the changes.
Thanks
Manju -
Cannot Use JaxB classes in ADF application.
Hi
I am using JDeveloper 11.1.1.6
I am trying to call the Oracle Business Rules (OBR) Ruleset from the frontend.
When I call a simple rule only using Java facts (facts are object references of classes which are used in OBR) as input, the Rules are verified and executed correctly.
After that I tried to give XML Facts as input the application is facing ClassNotFoundException.
To access the XML facts I had to add the XML Fact class known as JAXB_CLASSES into the Libraries and Classpath of Project Properties.
First I tried to call the OBR rules containing the XML Facts / Jaxb_classes from the page and it throwed ClassNotFoundException while deploying the application.
Next I tried to invoke the Jaxb_classes from main method and it worked fine.
My Question is : How can I access JAXB Classes in an ADF View Controller Project/ Application?
Thanks,
Nigel.I am adding the JAXB_classes into the application in the Backend and the code for intialising is also written in the Backens.
Still, the application is throwing a exception like
<RuleSession> <logIt> The symbol 'generated.ParametersType' is undefined.
at line 7 column 14 in main
<RuleSession> <logIt> UndefinedException: The symbol 'generated.ParametersType' is undefined.
at line 7 column 14 in main
<RuleSession> <logIt> The symbol 'generated.ParametersType' is undefined.
at line 7 column 14 in main
<RuleSession> <logIt> UndefinedException: The symbol 'generated.ParametersType' is undefined.
at line 7 column 14 in main
oracle.rules.sdk2.exception.SDKException: RUL-05186: error setting up rule session pool for decision point
Maybe you are looking for
-
HT3819 How do you transfer purchased music from one apple id to another?
I have a different Apple ID on my ipad than my macbook and macbook pro, I have most music on the macbooks but some on ipad how do I combine? This happend because when I was at the apple store buying my ipad I could not remember my other ID, so we mad
-
Hi i have purchased a lightning to sd card but i cannot get the photos to open can you help please.
-
[SOLVED] Kernel panic when using external USB hard drive
I have a desktop PC with a 64 bit arch install, on a Core2 Duo 6320 CPU. I have been using (and continue using right now) a 500 GB "Iomega Desktop Hard Drive" external USB hard disk without problems. But I have just bought a 3 TB "Seagate Expansion"
-
I am considering buying a mac mini, yet cannot afford the cost of a new monitor. I have plenty of spare portable DVD players (gifts), so I was wondering if the player is able to be used as a monitor for the mac mini. If so can anyone tell me how to d
-
Row level security.... yes or no in HTMLDB???
Hi Guys, This is just a little confusing... in the application developer of HTMLDB, it has a section to implement VPD features, but when I come round to doing pete finnigans (http://www.securityfocus.com/infocus/1743) RLS tutorial, i get the followin