Problem with Job.
Hi, i submited the stored procedure:
{color:#000000}*create or replace*
procedure run_export
as
* hand NUMBER;*
BEGIN
* hand := Dbms_DataPump.Open(operation => 'EXPORT',*
* job_mode => 'FULL',*
* job_name => 'FULLEXPJOBXE',*
* version => 'COMPATIBLE');*
* Dbms_DataPump.Add_File(handle => hand,*
* filename => 'expdp_plsql.log',*
* directory => 'DMPDIR',*
* filetype => 3);*
* Dbms_DataPump.Add_File(handle => hand,*
* filename => 'expdp_plsql.dmp',*
* directory => 'DMPDIR',*
* filetype => 1);*
* -- Dbms_DataPump.Set_Parameter(handle => hand,*
* -- name => 'ESTIMATE',*
* -- value => 'STATISTICS');*
* /* Dbms_DataPump.DATA_FILTER(HANDLE =>HAND,*
* Dbms_DataPump.Start_Job(hand);*
END;{color}
BEGIN
* DBMS_SCHEDULER.CREATE_JOB (*
* job_name => 'FULLEXPJOBXE',*
* job_type => 'EXECUTABLE',*
* job_action => 'unilit.run_export',*
* repeat_interval => 'FREQ=DAILY',*
* enabled => TRUE*
END;
I submited the following sentence:
SELECT FROM dba_scheduler_jobs WHERE job_name = 'FULLEXPJOBXE';*
SELECT FROM dba_scheduler_job_log WHERE job_name = 'FULLEXPJOBXE';*
..the sentence 2 indicate job status_ FAILED.
Help me please.
Roberto.
Perhaps you can try this ->
BEGIN
sys.DBMS_SCHEDULER.create_job (
job_name => 'MYSCHEMUSER.FULLEXPJOBEX',
job_type => 'PLSQL_BLOCK',
job_action => 'DECLARE
hand NUMBER;
BEGIN
hand :=
DBMS_DATAPUMP.Open (operation => ''EXPORT'',
job_mode => ''FULL'',
job_name => ''FULLEXPJOBXE'',
version => ''COMPATIBLE'');
DBMS_DATAPUMP.Add_File (handle => hand,
filename => ''expdp_plsql.log'',
directory => ''DMPDIR'',
filetype => 3);
DBMS_DATAPUMP.Add_File (handle => hand,
filename => ''expdp_plsql.dmp'',
directory => ''DMPDIR'',
filetype => 1);
DBMS_DATAPUMP.Start_Job (hand);
END;',
repeat_interval => 'FREQ=DAILY;BYHOUR=7;BYMINUTE=0;BYSECOND=0',
start_date => SYSTIMESTAMP AT TIME ZONE 'US/Eastern',
job_class => 'DEFAULT_JOB_CLASS',
comments => 'Full Export Job',
auto_drop => FALSE,
enabled => FALSE
sys.DBMS_SCHEDULER.set_attribute (name => 'MYSCHEMAUSER.FULLEXPJOBEX',
attribute => 'restartable',
VALUE => TRUE);
sys.DBMS_SCHEDULER.enable ('MYSCHEMAUSER.FULLEXPJOBEX');
END;N.B.: Not Tested...
Regards.
Satyaki De.
Similar Messages
-
F150 and problem with job deleted
Hi all,
I have a problem with F150: we have made a dunning session,
but the batch job was manually stopped and than deleted.
Now I don't know how to delete the dunning run (all delete
option are unabled), and if we execute another session the customer
are blocked by this dunning run.
Someone know how to delete it?
Thanks in advance
AlessioHi,
Can u check whether Dunning Notices - Delete Dunning run disabled?
If no dunning notice has been printed - try to restart the session thru SM35.
Regards,
Sridevi
<i>Assign points, if useful</i> -
Problem with job RDDEXECL (STMS)
Hi Coleagues
The problems is that job RDDEXECL(Execution of programs for post - import processing) is canceled during execution.
with the error:
*What happened?
Error in ABAP application program.
The current ABAP program "SAPLPRGN_UTILITIES" had to be terminated because one
of the
statements could not be executed.
This is probably due to an error in the ABAP program.
In program "SAPLSUPRN ", the following syntax error occurred
in the Include "LSUPRNF3J " in line 117:
"Different number of parameters in FORM and PERFORM (routine: AUTH_NEW_"
"AUTH, number of formal parameters: 3, number of actual parameters: 2)."
Author and last person to change the Include are:
Author "SAP "
Last changed by "SAP "*
I have performed the checking of syntax for programs involved and checked if occur some change in this programs recently.
I not found nothing.
My sap is ECC 5.0 on Unix with oracle .
Could anyone let me know where is the issue please ?Hi Deepika
The version of this report is the same in the all environments. In the others environments this report works without problems.
More details about error:
A Thu Jan 5 21:57:51 2012
A *** ERROR => Syntax error in program SAPLSUPRN
A *** ERROR => > Include LSUPRNF3J line 117
A *** ERROR => > Different number of parameters in FORM and PERFORM (routine: AUTH_NEW_AUTH, numb
A *** ERROR => > er of formal parameters: 3, number of actual parameters: 2).
tks
Edited by: Marcos A. Magalhães Jr on Jan 5, 2012 10:32 PM -
When I execute that job :
VARIABLE nojob NUMBER;
begin
DBMS_JOB.SUBMIT(:nojob,'my_proc();', sysdate, 'sysdate + 15/24');
end;
the job is submitting successfully, but it can't run automatically. If I force it :
begin
DBMS_JOB.RUN(:nojob);
end;
I've the following error :
ERROR at line 1:
ORA-12011: execution of 1 Jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 394
ORA-06512: at "SYS.DBMS_JOB", line 267
ORA-06512: at line 2
Have you already seen that problem !
And do you know how resolve it?
Thanks.
nullSame Problem persists. I removed ':' from my code and tried again, No progress. Here is my code and error message again when I try to run the job manually by dbms_job.run(jobno).
DECLARE
jobno number;
BEGIN
DBMS_JOB.SUBMIT(jobno,
'dbms_utility.analyze_schema(''JHTMW_TU_KAMAL'',''COMPUTE'');',
SYSDATE, 'NEXT_DAY(TRUNC(SYSDATE), ''WEDNESDAY'') + 13/24');
COMMIT;
END;
The error code is
SQL> exec dbms_job.run(21);
BEGIN dbms_job.run(21); END;
ERROR at line 1:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 394
ORA-06512: at "SYS.DBMS_JOB", line 276
ORA-06512: at line 1
Michael
My job processes are on. I have a value 2 set for job_queue_processes and the value 10 is set for job_queue_interval in my init.ora file.
null -
Hi experts,
i have schedule a job, but it could not executed because the system was down.
like i schedule my job at 1:00 PM, but system is shutdown at that time, so the job could not executed,
so i want to execute the same job again on some event like at system start etc.
how can i do this, please suggest
regards,I believe that the link below will solve your problem ..
http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7f87505211d189550000e829fbbd/frameset.htm
For further reference you can use the book
*Job scheduling for SAP by Sap press ... *
Really good book ..
If your issue is that you want the job to happen if not at the scheduled time then at startup you can simply schedule the job twice both at the particular time as well as on Startup ..
Hope this helps ..
Regards
Manthan -
Hello, I never have had used jobs in oracle, I need create a job for my procedure, but now i have current problem:
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'BIS.PRC_FIN_ATUCREDNOTURNA(SYSDATE);'
,next_date => to_date('01/08/2011 10:27:20','dd/mm/yyyy hh24:mi:ss')
,interval => 'SYSDATE+30/1440 '
,no_parse => FALSE
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
Result: 09:57:53 Info: Job #1 could not be executed. ORA-12011: a execute job failed
ORA-06512: em "SYS.DBMS_IJOB", line 406
ORA-06512: em "SYS.DBMS_JOB", line 275
ORA-06512: em line 1how you see, the job failed, I need execute the procedure 30 minutes in 30 minutes, what is the problem?
how create a schedule? it is necessary?
Thanks!
Edited by: BluShadow on 01-Aug-2011 14:13
added {noformat}{noformat} tags. Please read {message:id=9360002} to learn to do this yourself.What's your database version?
If it's 10g or above you should be using the newer DBMS_SCHEDULER package.
First guess from me...
Add, BEGIN and END to your "what" line...
,what => 'BEGIN BIS.PRC_FIN_ATUCREDNOTURNA(SYSDATE); END;' -
Problems with Job Scheduling Monitoring
<Orignial text erased>
Solicitation not tolerated on SDN. I deleted the other posts from him, but I didn't want to loose the good responses in this thread. Mark Finnern.
Message was edited by: Mark FinnernI guess you didnt see the weblog.
Yes, it was for you although I should probably have added a
Check out the weblogs from 24th Sept. Lutz wrote one titled "All points go to Ibai" - I thought you might have read it.
/people/lutz.morrien3/blog/2004/09/24/all-points-go-to-ibai
John. -
Problem creating job steps variants
Hi Gurus!
I have a problem with job steps creation.
In my program I need to copy the exist job with some condition accords to job steps variants.
But when I create the new job and it steps and variants in SM37, I can not see the variants names, only number.
For example in template that I am copying it looks like that:
No. Program name/command Prog. type Spool list Parameters User Lang.
1 RMCVNEUA ABAP BW_TEMPLATE aaa EN
But in job that I create it is:
Program name/command Prog. type Spool list Parameters User Lang.
RMCVNEUA ABAP &0000000000271 ddd EN
How can I create steps with variant names instead of numbers/indexes? BW_TEMPLATE instead of &0000000000271.
My code:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
sdlstrtdt = lv_date
sdlstrttm = lv_time
IMPORTING
jobcount = lv_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
SUBMIT (ps_tbtcp-progname) VIA JOB pv_jobname NUMBER pv_jobcount
USING SELECTION-SET ls_cat-variant
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
direct_start = lv_imm_run
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9
Edited by: Dani_K on Oct 27, 2010 4:35 PMNo any suggestions?
-
Problem with Crystal Report Job Server Destinations
I am using Crystal Reports XI Server and I am having problems with scheduling. I believe that the problem is that I have not enabled any destinations under the Crystal Reports Job Server. The following is an observation list:
-Enabled and set up all destinations for other servers, such as the Destination Server.
-Have been able to use Infoview to directly email, inbox, and file save reports in different formats (I believe the Destination Server controls this, right?)
-All servers are enabled in the Central Configuration Manager
-Have been able to go into the Crystal Reports Job Server within the CMC, but I DO NOT FIND ANY destinations to enable (why is this?)
-Have not been able to schedule an instance of any report (neither email, nor inbox, nor file, ...nothing)
Could somebody please help me with this? Is this a limitation to the Crystal Reports XI Server vs the Enterprise edition? Is there something else I am missing? I have never been able to successfully schedule a report.Thank you for the input, but I have not yet solved my problem. Please allow me to provide some additional information which may give more hints:
I have Crystal Reports XI Server R2 installed as 5 named user license (version that comes with developer)
The following servers are enabled in CMC (which is all of them)
-Input.DomainNameSQL
-DomainNameSQL.cacheserver
-DomainNameSQL.cms
-DomainNameSQL.destinationjobserver (has all destinations enabled)
-DomainNameSQL.eventserver
-DomainNameSQL.ListofValuesJobServer (no destination tab)
-DomainNameSQL.pageserver
-DomainNameSQL.programjobserver (has all destinations enabled)
-DomainNameSQL.RAS
-DomainNameSQL.reportjobserver (has destinations tab, but there are no destination entries to enable! Object type is: CrystalEnterprise.Report and detail: IDL:omg.org/CORBA/UserException:1.0
. Details: %2.'
These are the ONLY two event IDs that appear after I schedule the report instance. No other events occur.
Are there any other logs that I can check? How do I look up what event ID 45387 and 45385 are?
Thanks! -
Hi all, ;)
First of all, sorry about my poor English.
I have a problem with Swing and Threads, I hope you help me (because I'm in the firsts two weeks in my new job)
I have two classes:
Form1: Its a JPanel class with JProgressBar and JLabel inside.
FormularioApplet: (the main) Its a JPanel class with a form1 inside.
I have to download a file from a server and show the progress of the download in the JProgressBar. To make it I do this:
In Form1 I make a Thread that update the progress bar and gets the fole from the server.
In FormularioApplet (the main) I call to the method getDownloadedFile from Form1 to get the File.
THE PROBLEM:
The execution of FormularioApplet finishes before the Thread of Form1 (with download the file) download the file. Then, when I call in FormularioApplet the variable with the file an Exception: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException is generated.
First main begins his execution, then call to Form1 (a thread) then continues his execution and when the execution is finished ends the execution os Form1 and his thread.
How can I do for main class call the function and the Thread download his file after main class assign the file of return method?
How can I pass information froma class include an a main class. Form1 can't send to main (because main class made a Form1 f1 = new Form1()) any information from his end of the execution. I think if Form1 can say to main class that he finishes is job, then main class can gets the file.
I put in bold the important lines.
Note: My level of JAVA, you can see, is not elevated.
THANKS A LOT
Form1 class:
package es.cambrabcn.signer.gui;
import java.awt.HeadlessException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.SwingUtilities;
public class Form1 extends javax.swing.JPanel {
//Variables relacionadas con la clase original DownloadProgressBar
private InputStream file;
private int totalCicles;
private int totalFiles;
private int currentProgress;
private SwingWorker worker;
private ByteArrayOutputStream byteArray;
private boolean done;
/** Creates new form prueba */
public Form1() {
initComponents();
this.byteArray = new ByteArrayOutputStream();
progressBar.setStringPainted(true);
//this.totalFiles = totalFiles;
currentProgress = 0;
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">
private void initComponents() {
label1 = new javax.swing.JLabel();
progressBar = new javax.swing.JProgressBar();
statusLabel = new javax.swing.JLabel();
setBackground(new java.awt.Color(255, 255, 255));
setMaximumSize(new java.awt.Dimension(300, 150));
setMinimumSize(new java.awt.Dimension(300, 150));
setPreferredSize(new java.awt.Dimension(300, 150));
label1.setFont(new java.awt.Font("Arial", 1, 18));
label1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
label1.setText("Barra de progreso");
statusLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
statusLabel.setText("Cargando");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, statusLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, progressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, label1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(label1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(statusLabel)
.addContainerGap(73, Short.MAX_VALUE))
}// </editor-fold>
// Declaraci�n de variables - no modificar
private javax.swing.JLabel label1;
private javax.swing.JProgressBar progressBar;
private javax.swing.JLabel statusLabel;
// Fin de declaraci�n de variables
public byte[] getDownloadedFile(String documentToSign){
//Variables locales
byte puente[] = null;
try{
//Leemos el documento a firmar
StringTokenizer st = new StringTokenizer(documentToSign, ";");
Vector<URL> fileURL = new Vector<URL>();
HttpSender sender = new HttpSender(null);
//Introducimos la lista de URLs de archivos a bajar en el objeto Vector
for(; st.hasMoreTokens(); fileURL.add(new URL(st.nextToken())));
//Para cada URL descargaremos un archivo
for(int i = 0; i < fileURL.size(); i++) {
file = sender.getMethod((URL)fileURL.get(i));
if(file == null) {
Thread.sleep(1000L);
throw new RuntimeException("Error descarregant el document a signar.");
System.out.println("Form1 Dentro de getDownloadFile, Antes de startDownload()");
//Fijamos el valor del n�mero de ciclos que se har�n seg�n el tama�o del fichero
this.totalCicles = sender.returnCurrentContentLength() / 1024;
this.progressBar.setMaximum(totalCicles);
//Modificamos el texto del JLabel seg�n el n�mero de fichero que estemos descargando
this.statusLabel.setText((new StringBuilder("Descarregant document ")).append(i + 1).append(" de ").append(fileURL.size()).toString());
statusLabel.setAlignmentX(0.5F);
*//Iniciamos la descarga del fichero, este m�todo llama internamente a un Thread*
*this.startDownload();*
*System.out.println("Form1 Dentro de getDownloadFile, Despu�s de startDownload()");*
*//if (pane.showProgressDialog() == -1) {*
*while (!this.isDone()){*
*System.out.println("No est� acabada la descarga");*
*if (this.isDone()){*
*System.out.println("Thread ACABADO --> Enviamos a puente el archivo");*
*puente = this.byteArray.toByteArray();*
*System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);*
*else{*
*Thread.sleep(5000L);*
*// throw new RuntimeException("Proc�s de desc�rrega del document a signar cancel�lat.");*
catch (HeadlessException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("UI: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (MalformedURLException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (HttpSenderException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (InterruptedException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
//System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);
return puente;
public void updateStatus(final int i){
Runnable doSetProgressBarValue = new Runnable() {
public void run() {
progressBar.setValue(i);
SwingUtilities.invokeLater(doSetProgressBarValue);
public void startDownload() {
System.out.println("Form1 Inicio startDownload()");
System.out.println("Form1 Dentro de startDownload, antes de definir la subclase SwingWorker");
System.out.println(done);
worker = new SwingWorker() {
public Object construct() {
System.out.println("Form1 Dentro de startDownload, dentro de construct(), Antes de entrar en doWork()");
return doWork();
public void finished() {
System.out.println("Form1 Dentro de startDownload, dentro de finished(), Antes de asignar done = true");
System.out.println(done);
done = true;
System.out.println("Form1 Dentro de startDownload, dentro de finished(), Despu�s de asignar done = true");
System.out.println(done);
statusLabel.setText("Completado, tama�o del archivo: " + (byteArray.size() / 1024) + "KB");
System.out.println("Form1 Dentro de startDownload, antes de worker.start()");
worker.start();
System.out.println("Form1 Dentro de startDownload, antes de salir de startDownload");
System.out.println(done);
System.out.println("Form1 Dentro de startDownload, despu�s de worker.start()");
* M�todo doWork()
* Este m�todo descarga por partes el archivo que es necesario descargar, adem�s de actualizar
* la barra de carga del proceso de carga de la GUI.
public Object doWork() {
System.out.println("Form1 doWork() this.byteArray.size(): " + this.byteArray.size());
try {
byte buffer[] = new byte[1024];
for(int c = 0; (c = this.file.read(buffer)) > 0;) {
this.currentProgress++;
updateStatus(this.currentProgress);
this.byteArray.write(buffer, 0, c);
this.byteArray.flush();
this.file.close();
this.currentProgress = totalCicles;
updateStatus(this.currentProgress);
} catch(IOException e) {
e.printStackTrace();
System.out.println("Form1 doWork() FINAL this.byteArray.size(): " + this.byteArray.size());
//done = true;
System.out.println("AHORA DONE = TRUE");
return "Done";
public boolean isDone() {
return this.done;
FormularioApplet class (main)
package es.cambrabcn.signer.gui;
import java.awt.Color;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.security.Security;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.SwingUtilities;
import netscape.javascript.JSObject;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import sun.security.provider.Sun;
import be.cardon.cryptoapi.provider.CryptoAPIProvider;
public class FormularioApplet extends java.applet.Applet {
//Variables globales
int paso = 0;
private static final String JS_ONLOAD = "onLoad";
private static final String JS_ONLOADERROR = "onLoadError";
private static final int SIGNATURE_PDF = 1;
private static final int SIGNATURE_XML = 2;
//private String signButtonValue;
private int signatureType;
private String documentToSign;
private String pdfSignatureField;
private Vector<String> outputFilename;
private Color appletBackground = new Color(255, 255, 255);
private Vector<byte[]> ftbsigned;
* Initializes the applet FormularioApplet
public void init(){
try {
SwingUtilities.invokeLater(new Runnable() {
//SwingUtilities.invokeAndWait(new Runnable() {
//java.awt.EventQueue.invokeAndWait(new Runnable() {
public void run() {
try{
readParameters();
initComponents();
catch(FileNotFoundException e){
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch(IOException e) {
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (Exception e) {
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
javascript(JS_ONLOAD, null);
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">
private void initComponents() {
this.setSize(350, 450);
appletPanel = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
jTextField1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
label = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setLayout(new java.awt.BorderLayout());
appletPanel.setBackground(new java.awt.Color(255, 255, 255));
appletPanel.setMaximumSize(new java.awt.Dimension(350, 430));
appletPanel.setMinimumSize(new java.awt.Dimension(350, 430));
appletPanel.setPreferredSize(new java.awt.Dimension(350, 430));
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
jTextField1.setFont(new java.awt.Font("Arial", 1, 18));
jTextField1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jTextField1.setText("SIGNATURA ELECTRONICA");
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
.addContainerGap())
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
.addContainerGap())
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
label.setIcon(new javax.swing.ImageIcon("C:\\java\\workspaces\\cambrabcn\\firmasElectronicas\\logo.gif"));
org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.add(label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
.addContainerGap())
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.add(label)
.addContainerGap(229, Short.MAX_VALUE))
jPanel3.setBackground(new java.awt.Color(255, 255, 255));
jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
//this.jButton1.setVisible(false);
//this.jButton2.setVisible(false);
jButton1.setText("Seg\u00fcent");
jButton1.setAlignmentX(0.5F);
//Cargamos el primer formulario en el JPanel2
loadFirstForm();
//Modificamos el texto del bot�n y el contador de pasos.
//this.jButton1.setText("Siguiente");
//this.jButton1.setVisible(true);
//this.jButton2.setVisible(true);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jButton2.setText("Cancel\u00b7lar");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap()
.add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 112, Short.MAX_VALUE)
.add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 102, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap()
.add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jButton2)
.add(jButton1))
.addContainerGap())
org.jdesktop.layout.GroupLayout appletPanelLayout = new org.jdesktop.layout.GroupLayout(appletPanel);
appletPanel.setLayout(appletPanelLayout);
appletPanelLayout.setHorizontalGroup(
appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
.addContainerGap()
.add(appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
appletPanelLayout.setVerticalGroup(
appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
.addContainerGap()
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
add(appletPanel, java.awt.BorderLayout.CENTER);
}// </editor-fold>
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
this.destroy();
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
changeForms(this.paso);
// Declaraci�n de variables - no modificar
private javax.swing.JPanel appletPanel;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JLabel jTextField1;
private javax.swing.JLabel label;
// Fin de declaraci�n de variables
* M�todo readParameters
* M�todo que inicializa los valores de los par�metros internos, recibidos por par�metro.
private void readParameters() throws FileNotFoundException, IOException {
???????????????? deleted for the forum
addSecurityProviders();
* M�tode loadFirstForm
* Aquest m�tode carrega a jPanel2 el formulari que informa sobre la c�rrega dels arxius
private void loadFirstForm(){
//Form1 f1 = new Form1(stream, i + 1, fileURL.size(), sender.returnCurrentContentLength(), appletBackground);
//Form1 f1 = new Form1(fileURL.size(), sender.returnCurrentContentLength());
Form1 f1 = new Form1();
//Lo dimensionamos y posicionamos
f1.setSize(310, 150);
f1.setLocation(10, 110);
//A�adimos el formulario al JPanel que lo contendr�
this.jPanel2.add(f1);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Descarreguem l'arxiu a signar
*System.out.println("FormularioApplet Dentro de loadFirstForm(), antes de llamar a getDownloadFile()");*
*byte obj[] = f1.getDownloadedFile(this.documentToSign);*
if (obj == null){
System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) es NULL");
else{
System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) NO es NULL");
System.out.println("obj: " + obj.length);
this.ftbsigned.add(obj);
System.out.println("FormularioApplet Dentro de loadFirstForm(), despu�s de llamar a getDownloadFile()");
//Indicamos que el primer paso ya se ha efectuado
this.paso++;
* M�tode changeForms
* Aquest m�tode carrega a jPanel2 un formulari concret segons el valor de la variable global "paso"
private void changeForms(int paso){
/*A cada paso se cargar� en el JPanel y formulario diferente
* Paso previo: Se realiza en la inicializaci�n, carga el formulario, descarga el archivo y muestra la barra de carga.
* Case 1: Se carga el formulario de selecci�n de tipo de firma.
* Case 2: Se carga el formulario de datos de la persona que firma.
this.paso = paso;
switch(paso){
case 1:
//Creamos un objeto de formulario (seleccion de tipo de firma)
Form2 f2 = new Form2();
//Lo dimensionamos y posicionamos
f2.setSize(310, 185);
f2.setLocation(10, 110);
//Quitamos el formulario 1 y a�adimos el formulario 2 al JPanel
this.jPanel2.remove(1);
this.jPanel2.add(f2);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Modificamos el contador de pasos.
this.paso++;
break;
case 2:
//Creamos un objeto de formulario (seleccion de tipo de firma)
Form3 f3 = new Form3();
//Lo dimensionamos y posicionamos
f3.setSize(310, 175);
f3.setLocation(15, 130);
//Quitamos el formulario 1 y a�adimos el formulario 3 al JPanel
this.jPanel2.remove(1);
this.jPanel2.add(f3);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Modificamos el texto del bot�n y el contador de pasos.
this.jButton1.setText("Finalizar");
this.paso++;
break;
default:
//Finalizar el Applet
//C�digo que se encargue de guardar el archivo en el disco duro del usuario
break;
private void addSecurityProviders() throws FileNotFoundException, IOException {
Security.addProvider(new CryptoAPIProvider());
if (signatureType == SIGNATURE_PDF) {
Security.addProvider(new BouncyCastleProvider());
else {
Security.addProvider(new Sun());
private File createOutputFile(String filename, int index) {
return new File((String)outputFilename.get(index));
protected Object javascript(String function, String args[]) throws RuntimeException {
//Remove
if (true) return null;
try {
Vector<String> list = new Vector<String>();
if(args != null) {
for(int i = 0; i < args.length; i++) {
list.addElement(args);
if(list.size() > 0) {
Object objs[] = new Object[list.size()];
list.copyInto(objs);
return JSObject.getWindow(this).call(function, objs);
} catch(UnsatisfiedLinkError e) {
e.printStackTrace();
throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
} catch(Throwable e) {
e.printStackTrace();
throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
return JSObject.getWindow(this).call(function, new Object[0]);
Edited by: Kefalegereta on Oct 31, 2007 3:54 AM
Edited by: Kefalegereta on Oct 31, 2007 4:00 AMLook at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Problems with stopped HP Print Jobs on Mac OS 10.5.
I have several Mac Stations with different Mac OS X versions (Mac OS X 10.5-10.7) and bought 2 HP Laser Printers:
- HP LaserJet Pro 400 M401dw
- HP LaserJet Pro 200 M276nw
After installing the HP Driver SW on all Mac Stations I changed then on the Printers the dynamic IP address to static ones. The printing didnt work anymore from the Mac Stations. I re-installed all Driver SW on every Mac Station. Then Printing worked on every Mac, except only on the Mac OS X 10.5. Station the Print Jobs were always stopped after any Print attempt.
This appeared on the Mac OS X 10.5. Machine in the Printer Spooler Job Message Window and within the error_log File content:
- can't create PictWPSDoc from `/private/var/spool/cups/xxx'.ERROR during execution of pictwpstops. Error number -9783
As it seems like problems existed with file permissions I ran a complete Disk Utility File Permission Repair. Then another reinstall of the HP Driver Packages. - Still the same failures with stopping Print Jobs.
Then I read the README file of the Installation Package. And the quite simple solution was:
DE-INSTALL the HP Driver SW FIRST (with the HP Deinstallator), BEFORE RE-INSTALLING the HP Driver SW again.
So I did this, then no Print Jobs were stopped anymore and both Printer are happily printing.
The conclusion is, I guess, Mac 10.6..10.7 does not have problem with multiple re-installation of the HP driver SW. Only the Mac OS 10.5. did NOT work anymore after another reinstall of the Driver SW Package, and without de-installing it properly. The bottom line is to de-install the driver SW (and maybe disk repair) properly BEFORE another insallation wants to be done. This however solved my printing problems on the Mac OS X 10.5. machine.Hi,
Please follow the link below :
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=...
I work for HP but my posts and replies are my own.
Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.
Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad. Pay real close attention to the outgoing server name, and port. You may need to change in on the pad.
-
Problems with ESS in "Career and Jobs" in option "Appraisal Document"
hi
My problem with ESS in "Career and Jobs" menu in the option "Appraisal Document" is not appear the appraisal documents or my my question is...
What I can customize for appear the "Appraisal Documents"?
My ESS shows the following screens:
http://img295.imageshack.us/img295/3451/appraisalportal.jpg (there is also a problem with the flash player, I marked with red rectangle)
I found looking on the internet that had to configure the Performance Management
I entered in SPRO tcode, follow these steps
http://img580.imageshack.us/img580/2598/appraisal1.jpg (Entered in "Define Templates in Performance Management")
http://img215.imageshack.us/img215/6233/appraisal2.jpg
http://img651.imageshack.us/img651/4243/appraisal3.jpg
http://img340.imageshack.us/img340/622/appraisal4.jpg
http://img52.imageshack.us/img52/1842/appraisal5.jpg (click in "End Configuration")
http://img534.imageshack.us/img534/8746/appraisal6a.jpg (Error screen part 1)
http://img4.imageshack.us/img4/1261/appraisal6b.jpg (Error screen part 2)
I hope the answers and posts, I wonder if my chosen way(configuring the Performance Managemente) is correct
thanks for posts
Ivanthanks Chris for comments,
Now I customize the "Appraisal Document"
http://img18.imageshack.us/img18/4640/uiapraisal.jpg (Here I can see the evaluation that was done in the back-end)
but, I clicked in the hiperlink of "Appraisal Document Name", I see this error:
http://img80.imageshack.us/img80/8157/uiapraisal2.jpg (Error:<b>Page not found or not avaible</b>)
even before I saw another error (<b>"There is no iView available for system "SAP_ERP_HumanResources": object "employee". For more information, contact your administrator."</b>) in others posts(questions in sap forums) mentioned, These included the following notes
1468466 Performance Management Launchpad Configuration
1463821 Performance Management Portal Configuration
1416756 OBN Configuration in Performance Management
1408243 Configuration for object-based navigation
They recommended me in the back-end include roles in the resources:
http://img401.imageshack.us/img401/8048/uiapraisala.jpg
http://img689.imageshack.us/img689/9359/uiapraisalb.jpg
The note number 1463821(especially), I recommend the following
<a href="https://websmp230.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1463821" target=nieves>note 1463821</a> (link note)
http://img88.imageshack.us/img88/7484/uiapraisal1.jpg (LPD_CUST tcode)
http://img266.imageshack.us/img266/7405/uiapraisal1b.jpg (Check in "Restricted Parameters" and "Active" - "EXT_HEAD")
but in these notes appointing a role that I could not find on my system that is:
pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.14.bp_folder/com.sap.pct.erp.mss.14.pages/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.appraisal_document_wd_ui
because, I was looking at my porta's role (With reference "Appraisals Document")
http://img97.imageshack.us/img97/5167/uiapraisal3a.jpg
http://img413.imageshack.us/img413/5643/uiapraisal3b.jpg
http://img534.imageshack.us/img534/4585/uiapraisal3c.jpg
http://img203.imageshack.us/img203/4605/uiapraisal3d.jpg
Finally, my main error is :<b>Page not found or not avaible</b> (I referred at the beginning of the post http://img80.imageshack.us/img80/8157/uiapraisal2.jpg)
Why I see this error (Page not found or not avaible)?
http://img80.imageshack.us/img80/8157/uiapraisal2.jpg (Error:Page not found or not avaible)
I hope the helps, and thaks very much.
Ivan -
SAP BW : Problem with precalculation job on WebTemplate depending on user
Hi experts,
We have a problem with the precalculation job on WebTemplate. When we schedule this job with a specific user, the job run normally and precalculation is done on step 3 :
Step 003 started (program RSRA_JOB, variant , user ID E0126831)
Start package ZBWP_SCHEDULE_TEMPLATE
- Start setting ZBWP_WAD_001 with variant -
Precalculation: initialization started
Precalculation: processing started
Precalculate data (fill DataStore)
Processing data provider DATAPROVIDER_1, query ZBWP_IS01_001
Processing data provider DATAPROVIDER_10, query ZBWPM_016
Processing data provider DATAPROVIDER_11, query ZBWPM_016
But when we change the user to a technical user (like BATCH or ALEREMOTE which have the profile SAP ALL ), the job don't do any precalculation in step 3 :
Step 003 started (program RSRA_JOB, variant , user ID ALEREMOTE)
Start package ZBWP_SCHEDULE_TEMPLATE
- Start setting ZBWP_WAD_001 with variant -
Implementing settings finished
Did you have an idea for this problem ?
Thanks in advance for your response.
Regards,
MathieuHi,
Try to trace the log files in RSRD_LOG and also check files in C:TEMP.The precal server trace files will be stored in the subdirectory of C:TEMPBWAnalyzer .
for more information look in belwo blog
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30e3d697-4ca0-2c10-4b81-c474b1490064?quicklink=index&overridelayout=true
Thanks -
The problem with Complex Job Manager in Business Connector.
Hi,
I have a problem with the service "Complex Job Manager" in Business Connector.
Sometimes this service hangs and a minus value (such as -83452 sec) appears in the column "Next run".
What can I improve?
I have BC ver. 4.7 with CoreFix 9, Java ver. 1.3.1 (46.0), system AIX.
Please help me.
Thanks,
RobertSorry, Raja.
I saw many questions about Business Connector in this category (Process Integration) and I thought that is a right place for my question.
In your opinion, where is a better place for my question?
Regards,
Robert
Maybe you are looking for
-
How do I setup ADE: multiple users / multiple devices
Hi, I'm new to this DRM stuff and totally confused as to how it works, and the implications of different setups. I've seen lots of posts suggesting if ADE is not setup correctly from the start, you end up with a cascade of problems trying to correct
-
I'd like to have web links open automatically in a new tab. How do I make this happen?
1. When I open Firefox I have it set up that my gmail page automatically opens. When I want to go to another web site a new tab does not open but replaces my gmail tab. Then I have to use "back" or "history" to return to the gmail page. This gets dif
-
Hey there, I'm having big problems with my sound recently. Basically, after some time running a game - no matter if it's an old one like Metal Gear Solid or a new one like UT3 - sound crackling will appear and not disappear until the game is shut dow
-
[solved] Some programs cause problems for sound in other programs.
Today I noticed that audio has stopped working in some applications, but not others. The programs that I know where it doesn't work are: Hotline Miami (game) VLC Dungeons of Dredmor (game) Uplink (game) Programs where I know it works are: mplayer / s
-
Executing shell script through PL/SQL
Hi, I need some help regarding execution of shell script through Oracle PL/SQL. I have a shell script present in /abc/xyz folder with name search.sh , Through a PL/SQL procedure I am creating a file to store the report data. I want to execute /abc/xy