Custom webdynpro to read / write on R3 using rfc
Hello all ,
I have implemented a web dynpro that retrieves data from the R/3 through an RFC , using the documentation and examples . At the beginning, there is an iView with a List, the user selects a line and then a second iView shows the line he chose in a form .
What i know need to know, is how to extend this dynpro so that the user can make some changes and then press a button eg "SAVE" and his changes pass to the R/3 .
If possible, I am looking for a "best practice", so I don't have to improvise .
Thank you in advance .
Overall the process remains the same whether you want to read data or post the data to R/3.
As you must have understood for retreiving data from R/3 you need a BAPI and create a model in Web Dynpro to display the data.
Now similarly to write the data you will require a BAPI which will make these changes in the backend. So
1. Create a submit BAPI which posts the data in backend and test it completely.
2. Make the BAPI Remote Fucntion Enabled.
3. Import the BAPI as model in your Web Dynpro application and make the necessary JCo connections.
4. Use elements from the rich Web Dynpro library and design your screens.
5. Create context elements to hold your input data and place a button where you create a custom action where you will implement the logic of calling the Submit BAPI.
6. Deploy the application.
You may check these tutorials
[Accessing ABAP Functions in Web Dynpro Java|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3&overridelayout=true].
[Handling Transactions with BAPIs in Web Dynpro|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c&overridelayout=true]
Chintan
Similar Messages
-
Read&write Excel file using java
Hi everybody,
I have an assignment about methods that read and write an excel file using java (Eclipse SDK), so if anyone know about that please post the solution as soon as possible.
Thanks
Sendbadhttp://onesearch.sun.com/search/onesearch/index.jsp?qt=read+write+excel&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums
-
Not able to read/write Clobdomain when using weblogic server.
Hi,
We have a view and one of its attribute is ClobDomain. Earliar we were using OC4J and had no problems in reading/writing this attribute using the entity object. Now we have migrated to Weblogic and the same clobdoamin is written empty. Also two records are inserted in the database. I thought it might be jdbc driver problem and tried to use ojdbc6 driver instead of default driver which is used by Weblogic. But still the same problem
We are using,
Jdev version- 10.1.3.4
Weblogic 10.3
I did lots of google but not find any solution.
Below is the error we are getting.
oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "null".
at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:5892)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5747)
at com.sungard.entegrate.bc4j.base.BaseEntityImpl.doDML(BaseEntityImpl.java:230)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4542)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3000)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2811)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1975)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2177)
at com.sungard.entegrate.bc4j.base.EntDBTransactionImpl2.commit(EntDBTransactionImpl2.java:130)
at com.sungard.entegrate.bc4j.com.opr.UserJclientFormSettingsModuleImpl.saveSetting(UserJclientFormSettingsModuleImpl.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:6279)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:6503)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:4744)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:4995)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:4176)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2255)
at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7551)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
at oracle.jbo.server.remote.ejb.NestedApplicationModuleImpl.doMessage(NestedApplicationModuleImpl.java:34)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:6279)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:6503)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:4744)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:4995)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:4176)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2255)
at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7551)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
at oracle.jbo.server.remote.ejb.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:79)
at oracle.jbo.server.ejb.SessionBeanImpl.doMessage(SessionBeanImpl.java:477)
at com.sungard.entegrate.etm.bc4j.base.system.server.ejb.beanmanaged.ContactsModuleBMBean_cm55ac_EOImpl.doMessage(ContactsModuleBMBean_cm55ac_EOImpl.java:69)
at com.sungard.entegrate.etm.bc4j.base.system.server.ejb.beanmanaged.ContactsModuleBMBean_cm55ac_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
## Detail 0 ##
java.lang.NullPointerException
at oracle.jbo.domain.ClobDomain.writeCharsToLob(ClobDomain.java:1219)
at oracle.jbo.domain.ClobDomain.saveToDatabase(ClobDomain.java:364)
at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:5867)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5747)
at com.sungard.entegrate.bc4j.base.BaseEntityImpl.doDML(BaseEntityImpl.java:230)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4542)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3000)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2811)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1975)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2177)
at com.sungard.entegrate.bc4j.base.EntDBTransactionImpl2.commit(EntDBTransactionImpl2.java:130)
at com.sungard.entegrate.bc4j.com.opr.UserJclientFormSettingsModuleImpl.saveSetting(UserJclientFormSettingsModuleImpl.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:6279)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:6503)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:4744)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:4995)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:4176)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2255)
at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7551)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
at oracle.jbo.server.remote.ejb.NestedApplicationModuleImpl.doMessage(NestedApplicationModuleImpl.java:34)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:6279)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:6503)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:4744)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:4995)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:4176)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:2255)
at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7551)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:2221)
at oracle.jbo.server.remote.ejb.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:79)
at oracle.jbo.server.ejb.SessionBeanImpl.doMessage(SessionBeanImpl.java:477)
at com.sungard.entegrate.etm.bc4j.base.system.server.ejb.beanmanaged.ContactsModuleBMBean_cm55ac_EOImpl.doMessage(ContactsModuleBMBean_cm55ac_EOImpl.java:69)
at com.sungard.entegrate.etm.bc4j.base.system.server.ejb.beanmanaged.ContactsModuleBMBean_cm55ac_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Please help.On line 37 of your server code don't use available.
-
Read / Write Excel file using package dbms_util and util_files
hi,
i am beginner to this so please elaborate the answer more conciselythere's a ton of reading on this subject on google my friend.
http://www.google.co.uk/search?hl=en&source=hp&biw=954&bih=517&q=plsql+read+write+excel&btnG=Google+Search&aq=f&aqi=&aql=&oq=plsql+read+write+excel
and check the forum faq, there's a topic on excel in here:
SQL and PL/SQL FAQ
Edited by: smon on Mar 2, 2011 3:39 AM -
Possible to read/ write word files using Java?
I'm planning to write a Java application that can read an MS word document, extract something (including mathematics equations created with the equation editor) from the document and write it to another word document.
Is it possible to do this?
Can anyone give me some idea?
Any idea is much appreciated :)I think I may have misunderstood your question, but in case I didn't and you find this helpful, following is the code to read a word doc, replace certain strings, then write it out as a new doc.
import java.io.*;
public class Copy {
public static String endResult;
public static void main(String[] args) {
String oldAuthor = "Samuel Foote";
String newAuthor = "New Author";
String oldDate = "1720-1777";
String newDate = "1975 -- ";
try {
File inputFile = new File("C:\\document.doc");
BufferedReader input = null;
input = new BufferedReader(new FileReader(inputFile));
StringBuffer contents = new StringBuffer();
String line = null;
while ((line = input.readLine()) != null){
contents.append(line);
contents.append(System.getProperty("line.separator"));
String text = contents.toString();
// Replace the author and the dates
Copy y = new Copy();
y.replace(text, oldAuthor, newAuthor);
text = endResult;
y.replace(text, oldDate, newDate);
// Copy the new, improved text to another file //
Copy z = new Copy();
z.finalReplace(text);
input.close();
catch (FileNotFoundException ex) {
ex.printStackTrace();
catch (IOException ex){
ex.printStackTrace();
String replace(String text, String oldSubstring, String newSubstring) {
// Search the text for a string, then replace it //
int fromIndex = 0;
int e = 0;
StringBuffer sb = new StringBuffer();
while ((e = text.indexOf(oldSubstring, fromIndex)) >= 0) {
sb.append(text.substring(fromIndex, e));
sb.append(newSubstring);
fromIndex = e + oldSubstring.length();
sb.append(text.substring(fromIndex));
endResult = sb.toString();
System.out.println("final string = " + sb);
return sb.toString();
String finalReplace (String args) throws IOException {
// Move the altered text to a new file //
File outputFile = new File("C:\\copied document.doc");
FileWriter out = new FileWriter(outputFile);
Writer output = null;
try {
output = new BufferedWriter(new FileWriter(outputFile));
output.write(endResult);
finally {
if (output != null) output.close();
return endResult; -
How to read/write Excel sheets using java
Hello,
I have downloaded poi-2.5.1-all-bin and it has
poi-2.5.1-final-20040804 , poi-contrib-2.5.1-final-20040804, poi-scratchpad-2.5.1-final-20040804 jar Files
i am unable to configure POI which i have downloaded, when i do
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
it gives error while compilation saying cannot find Sheet class, Workbook class
should i use ant to build it or which jar file path should i specify in the classpath, because i have downloaded the POI package on to my desktop and included the specified the entire path of all the jar files in the classpath but still the same problem.
Please guide me.dvrsandeep wrote:
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
it gives error while compilation saying cannot find Sheet class, Workbook class
Either it isn't in your class path or you are using the wrong names. Simple as that.
Just as a possibility since you didn't import a "Sheet" class but rather a "HSSFSheet" that certainly suggests something is wrong. -
Why I am unable to read/write thermocouple data using FIFO
I like get data using 9213 module. I used example VI for this. And to get the data according to my desired samling rate, I used FIFO.
The problem is, if I use FIFO, I do not get any data when run the real time VI.
But, if I like to get data using cluster, then it is OK.
Also, can you tell me why the error comes when I use FIFO and run the program?
My sampling desired rate is 1200 sample/sec. I like to acquire data for 30 seconds after the trigger.
Attachments:
Error_50400.jpg 34 KB
FPGA.jpg 201 KB
realtime_temp.jpg 249 KBGood Afternoon,
I would suggest lowering the number of elements into the invoke node in your real time VI. You only need the number fo samples times the sampling rate for the number of elements input. Hope this helps!
-Cody C -
NFC tags read/write operations on low level
Hi,
I know this is little bit offtopic question - but since you are experts in the area I will try to ask you probably a pretty simple question:
1/ I would like to know which protocol is used for the read/write operations to the NFC tags are used. According to my understanding after the tag is placed on the NFC reader (NFC phone, USB reader), it is powered and set to the ready state. Then the application protocol for read/write operation is used. As I think the exact format and the content of commands used for read/write is not specified in ISO 14443 and it is dependent on a tag hardware/manufacturer and will be different for FeliCa/Mifare/Innovision/etc. tags, so there is no way how to handle NFC tags read/write operations with the single implementation. Is that assumption correct?
2/ Are there any tags, which supports the APDU 7816-4 commands for read/write operations?
Thank you for reply
Kind regards,
STeNhello,
you have to read the NFC forum specs. all of this will be better explained than by me.
more than one protocol are used according the the contactless front end configuration and abilities. It includes ISO14443-A, ISO14443-B and Felica. Sometimes other protocols are also available, for example Innovatron (not Innovision lol)
Mifare is not a protocol, it is a line of NXP products. These products use the lower layers of the ISO14443-A protocol specification.
There are 4 types of tags
1) using the lower layers of ISO14443-A
2) using the lower layers of ISO14443-B
3) something related to felica?
not sure exactly about these 3, you have to read the specs. Everything is clearly understandable, not like ETSI.
4) something using ISO7816-4 commands on top of ISO14443 A or B or others. You have SELECT, READ BINARY, UPDATE BINARY. You can implement that using javacard, I did it and it works. You need two binary files, that can be hardcoded.
Regards
Sebastien -
Unable to read/write CDs/DVDs
I have a Sony DVD RW DW-U10A combo drive. I have been unable to write CDs for a few weeks now, but manage with my MacBook. Now however, the drive in the iMac doesn't see either blank or written CDs, or professionally produced CDs. This also applies to all DVDs.
The only, but major, change that I have made is to upgrade to Tiger. I cannot categorically link the problem with the upgrade.
Could this be the cause of the problem? What can I do to be able to read/write CDs while using Tiger?
How can I clean the CD lense if that is also contributing to the problem?
Thanks in advance
PGHello and Welcome to Apple Discussions.
You really need to repost over in the MacBook forums. The hardware is very different.
http://discussions.apple.com/forum.jspa?forumID=1172
regards
mrtotes -
G710 hard drive read/write speed
Hello,
I have a brand new Ideapad G710 with 1TB Serial ATA 2, 5400rpm with advertised speed of 3 Gb/s (= 384MB/s).
I am running Windows 7 ultimate x64 with SP1.
When I test hard drive read/write speed (I used CrystalDiskMark) I get results of about 100MB/s, which is 3-4 times slower than it should be.
I am not running any resource heavy applications (Resource monitor reports Disk I/O to be 0 most of the time in idle state). I have 3 partitions, each with 16-32GB paging file size and all are >90% empty. All partitions have been defragmented before testing.
Is this normal? Are there any lenovo drivers or utilities than I might be missing or that can slow/speed this?
Solved!
Go to Solution.hi Daew,
Welcome to the Lenovo Forums.
The results that you got while running CrystalDiskMark is normal. The SATA 2 (3Gb/s) that you mentioned is actually the SATA interface support, not the actual read/write performance.
If you have a Seagate HDD (eg. ST10000LM024), check these specs
From the above specs, the unit has a cache that has a read/write max speed of 145 MB/s but there are environmental factors and power requirements to get this speed (eg. read/write speed on AC power is differente from battery power).
AFAIK, if this is the specs that is design for this drive, there's no way to speed it up.
If you're planning to upgrade in the future though, you can get an SSD for faster read/write.
Regards
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
Transportable tablespace (metadata export with READ WRITE tablespace set)
Is it possible to use transportable tablespace backup for import if data files for tablespace set has been copied when tablespaces were READ ONLY but the metadata export (or a part of it) is taken after tablespaces has been set to READ WRITE?
Actually the size of datafile(s) are too huge so unable to test the same on test box with TTS export backup.
But my question is if there were no structural changes (DML might be there on tablespace objects) even after making tablespaces to READ WRITE till the time metadata export is completed(data files are copied to staging location already before tablespaces has been set READ WRITE), Shall I use these backup for import? -
Unable to read "read/write" OPC tags through datasockets
I am having problems reading tags from an OPC server that are "read/write" access. Reading "read-only" tags works good. I am using the Datasocket Open.vi and Datasocker Read.vi and I have tried to set the mode input of the Datasocket Open to "read/write" follow by a Datasocket Read without any success. I am constantly getting the 1179 error as return.
I have tried to read the same tags with an OPC Client software and it works fine.
Anyone that have successfully read a "read/write" OPC tag using Datasockets?Are you watching these variables in another program as well? I have seen this error pop up before when variables were on the watch list and variable manager was open. Make sure you have nothing else grabbing the resource at the same time.
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video -
Reading/Writing .xlsx files using Webdynpro for Java
Dear All
I have a requirement to read/write excel files in .xlsx format. I am good in doing it with .xls format using jxl.jar. The jxl.jar doesn't support .xlsx format. Kindly help me in understanding how do I need to proceed on reading/writing .xlsx files using Webdynpro for Java.
Thanks and Regards
Ramamoorthy Di am using jdk 1.6.22 and IBM WebSphere
when i use poi-3.6-20091214.jar and poi-ooxml-3.6-20091214.jar to read .xlsx file. but i am getting following errors
The project was not built since its classpath is incomplete. Cannot find the class
file for java.lang.Iterable. Fix the classpath then try rebuilding this project.
This compilation unit indirectly references the missing type java.lang.Iterable
(typically some required class file is referencing a type outside the classpath)
how can i resolve it
here is the code that i have used
public class HomeAction extends DispatchAction {
public ActionForward addpage(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
String name = "C:/Documents and Settings/bharath/Desktop/Book1.xlsx";
FileInputStream fis = null;
try {
Object workbook = null;
fis = new FileInputStream(name);
XSSFWorkbook wb = new XSSFWorkbook(fis);
XSSFSheet sheet = (XSSFSheet) wb.getSheetAt(0);
Iterator rows = sheet.rowIterator();
int number=sheet.getLastRowNum();
System.out.println(" number of rows"+ number);
while (rows.hasNext())
XSSFRow row = ((XSSFRow) rows.next());
Iterator cells = row.cellIterator();
while(cells.hasNext())
XSSFCell cell = (XSSFCell) cells.next();
String Value=cell.getStringCellValue();
System.out.println(Value);
} catch (IOException e) {
e.printStackTrace();
} finally {
if (fis != null) {
fis.close();
return mapping.findForward("returnjsp"); -
Read/write from OBIEE repository data using API
Hi, I need to create a my own application that could read/write from the repository data, the same as I can do using the BI Admin user interface (like creating dimensions, hierarchies, levels, etc.).
Are there any API's to do that?
I'm usually working with .NET/C# technology but I can also programming in Java, the important is that I could be able to write metadata in the repository, and simply read them, I'm not interested in complex report functions... any suggestion will be appreciated!I've looked for it before, but I didn't find anything about BI Server accessing, so I requested on this forum. After that I've looked for another kind of API and I've found these about web services!
In the PDF I linked says:
"Oracle BI Web Services allows external applications such as J2EE and .NET to use Oracle Business
Intelligence as an analytical calculation and data integration engine. It provides a set of Presentation
Services that allow external applications to communicate with Oracle BI Presentation Services. You
can use Oracle BI Web Services to extract results from Oracle BI Presentation Services and deliver
them to external applications and Web application environments. You can reference a saved report
or send the criteria for the report to Oracle BI Web Services."
without talking about Metadata, but in this another tutorial http://oraclebizint.wordpress.com/2007/07/31/customizing-obi-ee-soap-api/ talks about "metadata"... is it only about Presentation Service? Has Presentation Service metadata too? Are they like Dimensions and hierarchies?
Excuse me but although I've read the documentation I can't understand what kind of metadata it refers to... -
Bonuses of EJB creating server that uses TCP/IP to read/write to hosts
I have created just Java application(not EJB) that uses Socket classes to communicate(read/write) via TCP/IP with connected clients.
I'm new in EJB technology. I have read about 150 pages of different EJB and AppServer manuals but haven't yet found any bonus of EJB for my task. What bonuses could I get if I will remake application as EJB? Please describe advantages in good explained examples.You can make an empty server only with tpsvrinit that starts your client
listeners and a tpsrvdone that stops them. Be carefull with sharing ipcs
between processes, or your clients may get puzzled!!!
Another choice can be builting a custom WSL/WSH but I haven't done
this yet and I don't know exactly the troubles related with making them.
R.G.
Travis Ward wrote:
How would you interface a tuxedo app with another application that
uses tcp/ip socket messaging? I have a vendor product that offers
a tcp/ip message interface, and would like to know how best to
integrate it into a tuxedo application. I could write a C application
that listens and accepts incoming request from the vendors application,
and then make a tuxedo client call to a service. But this doesn't
allow me to control the listen thread through tuxedo. The C application
would have to be started seperately and would not take advantage
of the tuxedo restart facilities etc of a tuxedo service.
Maybe you are looking for
-
Itunes won't let me download the latest version of itunes to my pc
I have been trying to download the latest version of iTunes from the Apple website to my PC. When I click on the Download icon, it goes to the page saying thank you for downloading iTunes, but it hasn't download anything. I've tried downloading in
-
Plug-in development standard or professional?
Hi all, Our company develops plugins for Acrobat X professional. We are planning to upgrade multiple machines to Acrobat XI. The SDK documentation states "Plug-ins for Acrobat Standard do not have access to some APIs". But we are unable to find out
-
Interface mapping Object _Doesn't exist in RuntimeCache_Error_SXMB_MONI
Hi EXperts , Issue in XI --Dev System I have an simple IDOC (DESADV.DELVRY03) ->Flat File Scenario . Mapping is done as per the Line of Business requirements . I have tested mapping and I get the response as expected. We released the IDOC (Outboun
-
Check a number range with date range.
i have table test which is having column Start Range End Range Start Date End date how can i check start range and end range does not exists b/w existing record also with date range of this record. end date can be blank also.
-
I use Adobe CS 6 to edit and I use Sony NX 3 to record. Every time I import my clips. It has a yellow line on the timeline sequence, even when I make new clip from the sequence.. My question is, does this affect my video quality output if i did not r