SMS API in J2ME...does it exist??
Hi, I have been developing an application for wireless devices using J2ME and would like to incorporate SMS as part of the application.
Is there a SMS API that I can use....I can not seem to find any information.
Many Thanks.
Omar.
JSR-120 defines SMS handling (both receiving and sending).
Sun emulator supports it and has also features to simulate sending of SMSs. However, most of the cell phones manufacturers don't support it yet, except Nokia with the 3650.
You may found up to date information about these issues at Nokia forums at http://discussion.forum.nokia.com/forum/index.php?s=
Similar Messages
-
API Error: table does not exists
Hello every one,
I have a procedure to load the learning management data history through API. I get error that the table or view does not exists which I don't know why.
Here is my procedure:
CREATE OR REPLACE PROCEDURE OLM_CLASS_HISTORY
AUTHID CURRENT_USER AS
lv_BOOKING_ID NUMBER;
lv_BOOKING_STATUS_TYPE_ID NUMBER;
lv_EVENT_ID NUMBER;
lv_PERSON_ID NUMBER;
lv_DATE_BOOKING_PLACED DATE;
lv_OBJECT_VERSION_NUMBER NUMBER;
lv_FINANCE_LINE_ID NUMBER;
CURSOR C1 IS
SELECT OLM_NUMBER,
OLM_DATE_OF_CLASS,
OLM_CLASS
FROM OLM_HISTORY_CLASS;
BEGIN
FOR C1_REC IN C1
LOOP
begin
select PAF.PERSON_ID INTO lv_PERSON_ID
from PER.PER_ALL_PEOPLE_F PAF
where PAF.EMPLOYEE_NUMBER= C1_REC.OLM_NUMBER
and to_date (C1_REC.OLM_DATE_OF_CLASS, 'DD-Mon-YY HH24:MI:SS ')
between to_date(paf.effective_start_date, 'DD-Mon-YY HH24:MI:SS')
and to_date (paf.effective_end_date, 'DD-Mon-YY HH24:MI:SS');
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('PID Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
lv_DATE_BOOKING_PLACED:= C1_REC.OLM_DATE_OF_CLASS;
BEGIN
SELECT DISTINCT AOET.EVENT_ID INTO lv_EVENT_ID
FROM APPS_APPLMGR.ota_events_tl AOET
WHERE
AOET.TITLE = C1_REC.OLM_CLASS;
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('EID Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
dbms_output.put_line('Event id:'||lv_event_id);
dbms_output.put_line('Person id:'||lv_person_id);
dbms_output.put_line('Booking date:'||lv_date_booking_placed);
dbms_output.put_line('Ovn:'||lv_object_version_number);
dbms_output.put_line('Finance line id:'||lv_finance_line_id);
BEGIN
APPS_APPLMGR.OTA_DELEGATE_BOOKING_API.CREATE_DELEGATE_BOOKING (P_VALIDATE => FALSE,
P_EFFECTIVE_DATE => trunc(sysdate),
P_BOOKING_ID => lv_BOOKING_ID,
P_BOOKING_STATUS_TYPE_ID => '1016',
p_delegate_person_id => lv_PERSON_ID,
p_contact_id => NULL,
P_BUSINESS_GROUP_ID => '0',
P_EVENT_ID => lv_EVENT_ID,
P_DATE_BOOKING_PLACED => lv_DATE_BOOKING_PLACED,
P_INTERNAL_BOOKING_FLAG => 'Y',
p_number_of_places => '1',
P_OBJECT_VERSION_NUMBER => lv_OBJECT_VERSION_NUMBER,
P_SUCCESSFUL_ATTENDANCE_FLAG => 'Y',
P_FINANCE_LINE_ID => lv_FINANCE_LINE_ID);
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('API Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
END LOOP;
COMMIT;
--rollback;
END;
and now when I run this procedure,I am getting this error:
PID Error: 100 - ORA-01403: no data found
Event id:5684
Person id:12530
Booking date:14-DEC-11 00:00:00
Ovn:
Finance line id:
API Error: -942 - ORA-00942: table or view does not exist
I don't know if it is API which is making problem or my code. Please advice.
Thanks,You are creating the procedure in which schema.
does this user has permission to access the objects specified in the code.
the issue must be with your code not the ebs api -
Getting error ORA-20001: FLEX-ID DOES NOT EXIST
I am trying to load new jobs.. I have run the fnd_flex_val_api.create_independent_vset_value to load the values into the segments needed.. NREL HR Job Title and NREL HR Job Descriptor and the values are in there.
I'm getting this in the hr_job_api.create_job api. thanks, Scott
Edited by: user12036380 on Aug 26, 2010 3:18 PMHi,
What is the application release?
Please see if these docs help.
Error 'ORA-20001: FLEX-ID Does Not Exist' In HR_POSITIONS_API While Loading Positions [ID 790124.1]
HR_ASSIGNMENT_EXTRA_INFO_API.UPDATE_ASSIGNMENT_EXTRA_INFO Errors with 'ORA-20001: FLEX-ID DOES NOT EXIST' [ID 1163457.1]
HR_IN_PERSONAL_PAY_METHOD_API Error Ora-20001 Flex-Id Does Not Exist [ID 834844.1]
Cannot Create Employee Via API - FLEX-ID DOES NOT EXIST Error Occurs [ID 554850.1]
Thanks,
Hussein -
How to send picture message using J2ME sms APIs?
Hi,
I experiment with SMS APIs, i successfully send simple text message. now i want to send picture message, how to send picture message using J2ME APIs.
please guide me.
guna.I experienced in coding sending and receiving sms in J2ME. Besides, I also esperienced in coding reading a binary file in a applicaition jar. But I never done these both together. Hence Im not sure it works or not. Below is the example to open and read a binary file:
InputStream oInputStream = getClass().getResourceAsStream( "/picture.png" );
if(oInputStream == null) {
//File does not exist;
throw new Exception("File not found");
//Read the binary file and copy it to a byte array
byte[] abyPicture = new byte[oInputStream.available()];
oInputStream.read(abyPicture ); -
Azure Rest API PUT Block Blob Returns "The specified resource does not exist" CORS
I am trying to upload a file to Azure Blob storage. For some reason when I try to put a new block blob on in the storage it tells me the resource does not exist. I am sure it is something silly I am missing.
According to the documentation:
The Put Blob operation creates a new block blob or page blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the
existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List (REST API) operation.
CORS is setup and that seems okay.
When I do a preflight and get this:
Request URL:https://<account>.blob.core.windows.net/test/image.png
Request Method:OPTIONS
Status Code:200 OK
Request Headers
OPTIONS /test/image.png HTTP/1.1
Host: <account>.blob.core.windows.net
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Request-Method: PUT
Origin: http://www.<site>.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Access-Control-Request-Headers: accept, content-type
Accept: */*
Referer: http://www.<site>.com/azure/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Response Headers
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 0d372e95-1524-460a-ab9c-7973d42a7070
Access-Control-Allow-Origin: http://www.<site>.com
Access-Control-Allow-Methods: PUT
Access-Control-Allow-Headers: accept, content-type
Access-Control-Max-Age: 36000
Access-Control-Allow-Credentials: true
Date: Thu, 27 Feb 2014 22:43:52 GMT
But when I make the PUT request these are the results.
Request URL:https://<account>.blob.core.windows.net/test/image.png
Request Method:PUT
Status Code:404 The specified resource does not exist.
Request Headers
PUT /test/image.png HTTP/1.1
Host: <account>.blob.core.windows.net
Connection: keep-alive
Content-Length: 22787
Cache-Control: no-cache
Pragma: no-cache
x-ms-blob-content-dis; filename = "image.png"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Content-Type: image/png
x-ms-blob-type: BlockBlob
Accept: application/json, text/plain, */*
x-ms-version: 2013-08-15
Origin: http://www.<site>.com
x-ms-date: Thu, 27 Feb 2014 23:19:19 GMT
Referer: http://www.<site>.com/azure/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Response Headers
HTTP/1.1 404 The specified resource does not exist.
Content-Length: 223
Content-Type: application/xml
Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: d5a60c8b-356a-44ff-93af-0ea720b5591f
x-ms-version: 2013-08-15
Access-Control-Expose-Headers: x-ms-request-id,Server
Access-Control-Allow-Origin: http://www.<site>.com
Access-Control-Allow-Credentials: true
Date: Thu, 27 Feb 2014 23:22:42 GMTYour request must be authenticated to be able to upload a blob. Please see our
Windows Azure Storage: Introducing CORS blog post for more information on using Shared Access Signatures with CORS. -
Applications APIs and ORA-00942: table or view does not exist
As a low privileged user (non apps account), I am attempting to call the hr_employee_api from a wrapper pl/sql block that is owned by the account. I am receiving the "ORA-00942: table or view does not exist" error message. It would seem that the API is executing with invoker's rights. However, the API does not seem to be coded for invoker's rights.
Never mind, it IS coded for invoker's rights. DUH!
-
API error: Element link does not exist for the duration of the entry
I am trying to create an element using the API_PAY_ELEMENT_ENTRY.CREATE_ELEMENT_ENTRY API
While I am able to create many elements for years this way, for one particular non-recurring element I get the following error
ORA-20001: Element link does not exist for the duration of the entry
Cause: The link has been purged or date effectively deleted.
Action: Check the effective start and end dates on the link definitions for this element.
I have checked evertything and the Link is defined far before my element entry starts and with no end date. The assignment I want to attach this element entry is perfectly eligible.
The weirdest is that I am able to create this element entry with the values I want and the dates I want through standard User interface...
Any idea?
Message was edited by:
briardHere are the parameters I use in my call.
DECLARE
L_EFFECTIVE_START_DATE DATE;
L_EFFECTIVE_END_DATE DATE;
L_ELEMENT_ENTRY_ID NUMBER;
L_OBJECT_VERSION_NUMBER NUMBER;
L_WARNING BOOLEAN;
BEGIN
APPS.PAY_ELEMENT_ENTRY_API.CREATE_ELEMENT_ENTRY(
P_EFFECTIVE_DATE => TO_DATE('01-JUL-2008','DD-MON-YYYY'),
P_BUSINESS_GROUP_ID => 1,
P_ASSIGNMENT_ID => 122147
P_ELEMENT_LINK_ID => 233,
P_ENTRY_TYPE => 'E',
P_INPUT_VALUE_ID1 => 313,
P_ENTRY_VALUE1 => 'T',
P_INPUT_VALUE_ID2 => 314,
P_ENTRY_VALUE2 => '5',
-- out params
P_EFFECTIVE_START_DATE => L_EFFECTIVE_START_DATE,
P_EFFECTIVE_END_DATE => L_EFFECTIVE_END_DATE,
P_ELEMENT_ENTRY_ID => L_ELEMENT_ENTRY_ID,
P_OBJECT_VERSION_NUMBER => L_OBJECT_VERSION_NUMBER,
P_CREATE_WARNING => L_WARNING);
END;
François -
Javax.microedition.location does not exist
Hello everyone. I am new to J2ME development and having problems trying to compile some code. Here's the error message I keep getting:
package javax.microedition.location does not exist
import javax.microedition.location.*;
I really don't know how to correct this. I've tried to download jsr179, but don't know where to put. Please help. Thanks.WTK 2.2 looks pretty old to me (released in 2005). It does not support location (jsr 179) -- this jsr is not listed at their download page http://java.sun.com/products/sjwtoolkit/download-2_2.html
As for WTK 2.5.2, it works fine for me on WinXP with Java 5 Update 7 (jdk1.5.0_07). *) I did not try it with Java 6
Given that you're already familiar with WTK, I think the safe way to start with location is to do it with WTK 2.5.2. They even provide a reference demo ("apps/CityGuide") which uses location API and is supposed to be buildable / usable.
*) download page for JDK 1.5.0_07 is http://java.sun.com/products/archive/j2se/5.0_07/ -
Package java.servlet does not exists
I am getting this error:
c:Program Files\Java\jdk1.6.0_10\bin>javac -Xlint HelloServlet.java
HelloServlet.java:2:package java.servlet does not exists
import java.servlet.;
^
HelloServlet.java:4; cannot find symbol
symbol: class GenericServlet
public class HelloServlet extends GenericServlet
^
5 errors
i am using jdk1.6.0_10. i tried to locate the servlet.jar file in the \lib directory, but the jar file was not there. how can i download one and include it in \lib?
import java.io.*;
import java.servlet.*;
public class HelloServlet extends GenericServlet {
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter pw=response.getWriter();
pw.println("<B>Hello!");
pw.close();
}jatilau wrote:
forgive my ignorance.That's ok, we're all here to learn; but while (most) people on the forums are smart, they're (unfortunately) not all-knowing. They can't possibly know something about you or your environment unless you tell them.
it is because i have no one to look up at for help with java, except for the book (The Complete Reference, Java 2, 3rd Edition, Naughton & Schildt) and, of course, some times this forum.There's the whole Internet available to you. Remember, Google is your friend.
please, will anyone tell me how to find out what server type and version does JDK 1.6.0_10 provide? It doesn't. Java comes in three 'editions':
Micro (JME, earlier J2ME which is meant for mobiles and other similar platforms)
Standard (JSE, earlier J2SE which is what you're using, it's meant for core Java applications, like the sort you might use on your desktop.)
Enterprise (JEE, earlier J2EE which is for server side code. This includes JSPs, Servlets, EJBs etc)
i did not find any information about this in the book.Probably because it's a Java 'Standard' Edition (JSE or J2SE) book
What you need, to learn about servlets, is a JEE book. I'd suggest Head First Servlets and JSP from O'Reilly. Otherwise, follow the link I gave earlier to find tutorials.
To get started, you'll need a JDK, which you say you already have and a server. I'd suggest you get Tomcat. You will also find the servlet-api.jar after you setup Tomcat. This is an implementation of the JEE specification for servlets. This contains the javax.servlet.* packages you'll need to compile. Beyond this, the scope of what servlets are and how to deploy etc is rather large and best left to one of the afore-mentioned tutorials. -
Hi,
I have two SCCM environments under same active directory domain and one service account have been used for SCCM configurations on both the environments (QA and PRODUCTION). I am facing similar error as mentioned above while trying to fetch reports on
PRODUCTION site, but the QA site is working fine, though same service account have been used for configuring both. While looking at the reportserverservice_<date> log on my Production DB server i see the following error
"processing!ReportServer_0-3!2124!01/02/2015-09:09:30:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during
report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot read the next data row for the dataset DataSet1. ---> System.Data.SqlClient.SqlException: Conversion failed when converting the nvarchar value 'Override
Default' to data type int."
My DB and SCCM primary site are different and the reorting services point is installed on remote DB server. Please help me resolving the issue.
Troubleshooting performed:
1.Disabled the registry key 'EnableRbacReporting' from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\SRSRP to 0 and then restarted SSRS service and the reporting worked for some minutes after that the registry key reverted back to 1 automatically and
reporting started throwing errors again.
2. Checked with the permissions on DB whether or not 'sysadmin' role is assigned to the SCCM service account.
3. re-registered the SQL management Provider WMI class.
mofcomp.exe “C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof”Hi All,
Finally found exact solution to the reporting error.
Error: while launching SCCM reports (both from Console and web based) an unexpected error occured with error message as "The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: A specified logon session does not exist.
It may already have been terminated. (rsRuntimeErrorInExpression)"
Solution: This is password replication issue for the domain account used to configure reporting services point in SCCM. If your SQL SSRS reporting services instance and databse runs with local default account whereas the reporting services point on SCCM
primary site is configured with domain account, (As in My case) you need to perform the following in order to get rid of the error.
Launch 'Reporting Services Configuration Manager' from the SQL SSRS box(either Local or Remote), Connect to Report Server Instance->Go to 'Execution Account' tab->Specify the 'Execution Account' as domain account and password which is used to configure
Reporting Services Point in SCCM Primary Site, and then click apply.
Now Lauch the report either way (Web based or from Console), the error will disappear and all your default reports will execute perfectly as before. -
Package javax.servlet.http does not exist
Hello All,
A few problems here
1. My classpath doesnt seem to work.:
.;"C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
2. As a result, i get many errors in my simple code, but there are still a few that are not related to javac not recognizing the servlet api.
I also tried setting the classpath at the command line (event hough its temporary)
set classpath="C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
but the servlet package is still not recognized
I have 2 classes, one to read the database connection details from a file and another class, my servlet.
Servlet Code:
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CustomQuery extends HttpServlet
public void init() throws ServletException
EstablishDBConnetion.establishConnection();
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
response.setContentType("text/html");
PrintWriter printer = new response.getWriter();
String title = "Result from custom query";
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
ResultSet rs = stmt.executeQuery("select customerID from customer");
while(rs.next())
printer.println("<html> <head><title>" + title + "</title><br><br><table border=\"0\"> <tr><td>" + rs.getString(1));
rs.close();
stmt.close();
EstablishDBConnetion.establishConnection.con.close();
Database connection code
import java.io.*;
import java.sql.*;
import java.util.StringTokenizer;
class EstablishDBConnetion
public static void establishConnection()
try
String dbDriver = "";
String dbUrl = "";
String dbName = "";
String dbUser = "";
String dbPassword = "";
String newLine = "";
BufferedReader fileRead = new BufferedReader(new FileReader("connection.txt"));
boolean readerStatus = fileRead.ready();
newLine = fileRead.readLine();
while (readerStatus)
StringTokenizer st = new StringTokenizer(newLine, ",");
while (st.hasMoreTokens())
dbDriver = st.nextToken();
dbUrl = st.nextToken();
dbName = st.nextToken();
dbUser = st.nextToken();
dbPassword = st.nextToken();
readerStatus = fileRead.ready();
Class.forName(dbDriver);
String url = dbUrl + dbName;
System.out.print(url);
Connection con = DriverManager.getConnection(url, dbUser, dbPassword);
catch (IOException e)
System.out.println("IO exception in establishConnection()");
e.printStackTrace();
catch (java.lang.Exception ex)
System.out.println("General exception in establishConnection()");
ex.printStackTrace();
public static void main(String[] args)
//EstablishDBConnetion edbc = new EstablishDBConnetion();
establishConnection();
}also, full error list below
CustomQuery.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
CustomQuery.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
CustomQuery.java:7: cannot find symbol
symbol: class HttpServlet
public class CustomQuery extends HttpServlet
^
CustomQuery.java:10: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void init() throws ServletException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletRequest
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletResponse
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:19: package response does not exist
PrintWriter printer = new response.getWriter();
^
CustomQuery.java:24: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
^
CustomQuery.java:39: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
EstablishDBConnetion.establishConnection.con.close();
^
10 errors
I appreciate your help
Message was edited by:
paulchwd
null
Message was edited by:
paulchwdThe library is in tomcat/common/lib, not in tomcat/lib.
-
Error, package does not exist, thrown when calling jsp page
Hi
I have downloaded sample jsp pages for interaction with Crystal reports. When I compile these jsp pages in NetBeans 3.6 there are no problems. When I deploy these pages and associated libraries to Tomcat 5, I get the following error when attempting to call the jsp page, but all the jars used in NetBeans are present in the web-inf/lib directory and I have looked in the jars and found classes in the com.crystaldecisions.report.web.viewer package. I have been unable to find any information after googling and looking at the jakarta bug database. What am I doing wrong?
The error...
2004-09-22 17:40:30 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /CrystalReportsInteractiveViewer.jsp
Generated servlet error:
[javac] Compiling 1 source file
E:\Tomcat5\work\Catalina\localhost\crystal\org\apache\jsp\SimplePreviewReport_jsp.java:9: package com.crystaldecisions.report.web.viewer does not exist
import com.crystaldecisions.report.web.viewer.*;
^
E:\Tomcat5\work\Catalina\localhost\crystal\org\apache\jsp\SimplePreviewReport_jsp.java:180: cannot resolve symbol
symbol : class CrystalReportInteractiveViewer
location: class org.apache.jsp.SimplePreviewReport_jsp
CrystalReportInteractiveViewer viewer = new CrystalReportInteractiveViewer();
^
An error occurred at line: 1 in the jsp file: /CrystalReportsInteractiveViewer.jsp
Generated servlet error:
E:\Tomcat5\work\Catalina\localhost\crystal\org\apache\jsp\SimplePreviewReport_jsp.java:180: cannot resolve symbol
symbol : class CrystalReportInteractiveViewer
location: class org.apache.jsp.SimplePreviewReport_jsp
CrystalReportInteractiveViewer viewer = new CrystalReportInteractiveViewer();
^
An error occurred at line: 1 in the jsp file: /CrystalReportsInteractiveViewer.jsp
Generated servlet error:
Note: E:\Tomcat5\work\Catalina\localhost\crystal\org\apache\jsp\SimplePreviewReport_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
3 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
The offending page is ....
<%
/*==========================================================================
INSTANTIATE THE VIEWER AND DISPLAY THE REPORT THROUGH THE INTERACTIVE VIEWER
============================================================================
- Create a Viewer object
- Set the source for the viewer to the client documents report source
- Process the http request to view the report
- Dispose of the viewer object
// Create an Interactive Viewer
CrystalReportInteractiveViewer viewer = new CrystalReportInteractiveViewer();
// Set the name for the interactive viewer
viewer.setName("Crystal_Report_Interactive_Viewer");
// Set the source for the interacive viewer to the client documents report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
%>included in...
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*"%>
<%@ page import="com.crystaldecisions.report.web.viewer.*"%>
<html>
<head>
<title>Begin Here - Simple Preview Report</title>
</head>
<body>
<%
/*=================================================================
WORKING WITH THE REPORT APPLICATION SERVER AND JSP TO VIEW REPORTS
===================================================================
Authors Name: Ken Andony
Technology supported by the app: Report Application Server
ALWAYS REQUIRED STEPS
- Create a new Report Application Session
- Create a Report Application Server (RAS) Service
- Set the RAS Server to be used for the service
- Initialize the RAS Service
- Create the report client document object
- Set the RAS Server to be used for the report client document
- Open the report, and set the open type to Read Only
INSTANTIATE THE REPORT VIEWER
- Create a Viewer object
- Set the source for the viewer to the client documents report source
- Process the http request to view the report
- Dispose of the viewer object
==================================================================*/
* This line creates a string variable called reportname that we will use to pass
* the Crystal Report filename (.rpt file) to the OpenReport method contained in
* the AlwaysRequiredSteps.jsp.
String reportName ="SimplePreviewReport.rpt";
%>
<%
/* ALWAYS REQUIRED STEPS
Include the file AlwaysRequiredSteps.jsp which contains the code
for steps:
- Create a new Report Application Session
- Create a Report Application Server (RAS) Service
- Set the RAS Server to be used for the service
- Initialize the RAS Service
- Create the report client document object
- Set the RAS Server to be used for the report client document
- Open the report, and set the open type to Read Only */
%>
<%@ include file="AlwaysRequiredSteps.jsp"%>
<%
/* INSTANTIATE THE REPORT VIEWER
There are three Report Viewers:
1. Crystal Reports Interactive Viewer
2. Crystal Reports Viewer
3. Crystal Reports Parts Viewer
The choices are CrystalReportsInteractiveViewer.jsp, CrystalReportsViewer.jsp,
CrystalReportsPartsViewer.jsp
Note that to use this include you must have the appropriate .jsp file in the
same virtual directory as the main jsp page.
=============================================================================
DISPLAY THE REPORT
- display the report using one of the Thin Client DHTML viewers
Include one of the DHTML Viewers.
- Crystal Reports Interactive Viewer = CrystalReportsInteractiveViewer.jsp
- Crystal Reports Viewer = CrystalReportsViewer.jsp
- Crystal Reports Parts Viewer = CrystalReportsPartsViewer.jsp
Note** - To use the report parts viewer successfully you are required to
choose and name three objects in the report to Node0, Node1 and Node2.
You can access an objects name by using the Format Editor dialog box.
For more information on the Format Editor Dialog Box and setting objects
names, please refer to the Help Contents (Help Menu->Crystal Reports Help)
or by pressing F1
=============================================================================*/
%>
<%@ include file="CrystalReportsInteractiveViewer.jsp" %>
</body>
</html>Thanks Tien-Chih Wang. It worked...well I'm getting a new set of errors, but progress has been made!
I understand that if placed in the common directory the jar will be available to all webapps but why does it make a difference whether a jar file is placed under the $TOMAT_HOME/common/lib or $TOMAT_HOME/webapps/appname/web-inf/lib directory if I only need to access the jar from one webapp? -
[Solved]Unable to boot /sbin/init does not exist.
When I boot, I get this message: ERROR: Root device mounted successfully, but /shin/init does not exist. This is an installation that was working fine for me before. I went into Windows to free up disk space, and when I booted Arch later, this is what came up. I have already tried using the live disk as a rescue, but I am unable to chroot into it. I have checked my partitions with a live disk and my files are still there. Is there any way that I can fix this without reinstalling Arch? I have a lot of things that I cannot reinstall right now as I don't have access to the internet currently, and I am using my phone to access the forum.
Last edited by LGG42 (2013-11-27 02:43:47)My bootloader is Syslinux. Yes, I am able to mount the file systems. The partitions are in ext4 format. I boot from legacy BIOS, as I have had EFI problems in the past. arch-chroot gives me this: ==> ERROR: failed to setup API filesystems in chroot /mnt. I should have been clear about what I did in Windows. I was running out of space in Windows, and I had some unallocated disk space, and so I extended my Windows partition.
The output of frisk -l is:
Disk /dev/sda: 500.1 GB, 500107862016 sectors
Units = sectors of 1* 512
I/O size (minimum/optimal): 4096 Bytes/4096 bytes
disk label type: got
#1 start: 2048 End 821247 size 400M type windows recovery 2 start 821248 End 1353727 Size 260M type ms basic 3 start 874614784 End 916559871 Size 128M ms reserved 4 start 1615872 End 874614783 Size 416G ms basic. 5 start 874614784 End 91655781 Size 20G ms basic. 6 start 916561920 End 916756479 Size 95M type EFI system. 7 start 916758528 End 928495615 8 start 928495616 end 928499711 Size 2M type ms basic. 9 start 928499712 End 976773119 size 23G type ms basic. Sorry about the mess that is in. As a note, my / partition is #5, and my home is #9. Thank you for helping. -
Table does not exist odbc -2004
Hi,
I'm updating a UDO in SBO 9. PL11 by GeneralService via DI API
The code worked without problems, but I activated the option LOG from customizing options and get the following error:
"Table does not exist odbc -2004 "
sCmp = AccCommon.Main.Company.GetCompanyService
oGeneralService = sCmp.GetGeneralService(LocalConstants.UDO_Colegiados)
oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
oGeneralData = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)
oGeneralParams.SetProperty(LocalConstants.CAB_Colegiados.cCode, sNumCol)
oGeneralData = oGeneralService.GetByParams(oGeneralParams)
oGeneralData.SetProperty(LocalConstants.CAB_Colegiados.cEstado, LocalConstants.Colegiados.Keys_Estado.cInactivo)
oGeneralService.Update(oGeneralData)
Any Idea?
Thanks!Thanks,
We delete the UDO and returned to generate. We assume that there were changes in the structure that was not reflected.
Without changing the code works
Regards -
Package javax.servlet does not exist - settings appear to be correct
laugh as I write this post...it's hardly a "new topic."...but everything seems set just as it should be...
Okay...I'm a seasoned programmer in every language but JAVA. Here's the issue...every time I try to use the Core Servlets book/website by Marty Hall and Larry Brown I get hung up on the packages. This time, I downloaded and followed step by step what the website said to do...it was even preconfigured for me! Alas...I am getting the following compliation errors on a "simple packagless" program with NetBeans:
Compiling 1 source file to C:\Servlets+JSP\HelloServlet\build\classes
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:2: package javax.servlet does not exist
import javax.servlet.*;
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:13: cannot find symbol
symbol: class HttpServlet
public class HelloServlet extends HttpServlet {
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:14: cannot find symbol
symbol : class HttpServletRequest
location: class HelloServlet
public void doGet(HttpServletRequest request,
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:15: cannot find symbol
symbol : class HttpServletResponse
location: class HelloServlet
HttpServletResponse response)
C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:16: cannot find symbol
symbol : class ServletException
location: class HelloServlet
throws ServletException, IOException {
6 errors
BUILD FAILED (total time: 0 seconds)
These are my environment settings (note that the JAVAX package is located under the src folder in Java)
Catalina Home:
C:\apache-tomcat-6.0.10
CLASSPATH:
C:\apache-tomcat-6.0.10\lib\servlet-api.jar;
C:\apache-tomcat-6.0.10\lib\jsp-api.jar;
C:\apache-tomcat-6.0.10\lib\el-api.jar;
C:\Servlets+JSP;..;..\..;
C:\Program Files\Java\jdk1.6.0_03\src
JAVA_HOME
C:\Program Files\Java\jdk1.6.0_03
Path:
C:\Program Files\Java\jdk1.6.0_03\bin;%PATH%
Any ideas (excluding the one that maybe I should let my hair grow out, put on some tackey shorts and sandles and start palying an instrument in the streets of Austin for living?)cabkats wrote:
You are then suggesting that I make the corrections directly to the files in apache using notepad instead of using the envir. variables?No I am not suggesting that. I am suggesting that you need to read the documentation about the product(s) and set them up the way they require, rather than blindly think that the CLASSPATH environment variable is some magical entity.
I will try this, but I was hoping that since my IDE auto configured (with exception to java_home) that I would not have to do this. I wil give it try....thanks for the suggestion.See, you're using an IDE. Like I mentioned, IDEs do not use the CLASSPATH environment variable. You need to set up your project in your IDE in such a way that it knows what the dependent jars are. I'm sure there's a way to add jars to your project's dependencies.
Maybe you are looking for
-
Feedback for SAP TechEd, SDN Day, SDN Clubhouse - Las Vegas
Please give us your feedback and thoughts on the event, Clubhouse and SDN Day.
-
Hi! I just can`t get started? My new IPad is connected with my computer. On the IPAD I only see a cord with an arrow pointing at a circle with ITunes. The IPad is online via a mobile (3G) sim card. Nothing happens? How do I find the preinstalled Safa
-
I will post this one again in desperation, I have had a SUN support call open on this subject for some time now but with no results. If I can't get a straight answer soon, I will be forced to port the application over to Windows, a desperate measure.
-
"Show Photo Settings" not always active window in "Media"
I am trying to change the viewing time of photo clips in my movie. When I click on Media, sometimes the "show Photo settings" tab is active, but sometimes not! very frustrating...any iaeas? I have saved the project, closed imovie, reopened...it's ver
-
Photoshop CS5 quits unexpectedly when I print
I have been printing from Photoshop CS5 and never had a problem until last night. My printer job stopped in the middle of a job and an error showed with my printer. I fixed the error and successfully printed the file from WORD and Preview, but when I