Is this threadSAFE ??? plz help
25 threads keeps entering a method to check some stuff.. it is not synchronized...
This is just a similar example..
public checkme(Somestuff abc) {
long time1 = System.currentTimeMillis(); // timers around method to check how much time it takes
callmetoCheck(abc);
long recordTime = System.currentTimeMillis() - time1; // would this time be accurate even if multiple threads are trying to access it..
recordcheckingTime(recordTime);
i have a method to accumulate all values of time taken to process callmetoCkeck() method... How can this be thread safe when different threads enter this method. is variable time1 thread safe ??
public synchronized void recordcheckingTime(long time){
accumulator += time;
plz help guys...my last 4 months work is in jeopardy...
Thank you..
Edited by: javanewbie83 on Sep 23, 2008 8:47 PM
time1 is local to each thread so it doesn't need to be thread safe.
Similar Messages
-
Hi iam using IPHONE4 , when i coonect it to my PC , itunes get hang and don't detect my iphone , how i can sort out this issue plz help me
iPhone, iPad, or iPod touch not appearing in iTunes
-
i m a new user plz give me icloud account bt previous owner she dead and i dont know about this information this phone. plz Help me icloud account as early as possible
Apple is not here and will NOT give you the information. Contact the relatives of the "dead" owner.
-
How to write code for this logic, plz help me very urgent
Hi All,
i am new to sap-abap, i got this work and i m working on this can any body help me in writing code, plz help me, this is very very urgent.
here i m giving my logic, can anybody send me the code related to this logic.
this is very urgent .
this program o/p should be in ALV format and need to create one commond 'SAVE" on this o/t list if user clicks save processedon and processedby fields in ZFIBUE should be updated automatically.
i am creating one custom table zfibue having fields: (serialno, bukrs, matnr,prdha,hkont,gsber,wrbtr,budat, credate, cretime,processed, processedon, processedby,mapped)
fields of zfibue:
serailno = numc
bukrs = char
matnr = char
prdha = char
hkont = char
gsber = char
wrbtr = char
budat = date
credate = date
cretime = time
processed= char
processedon = date
processedby = char
mapped = char are belongs to above type data types
and seelct-optionfields: s_bukrs for bseg-bukrs
s_hkont for bseg-hkont,
s_budat for bkpf-budat,
s_processed for zfibue-processed,
s_processedon for zfibue-processedon,
s_mapped. for zfibue-mapped
parameters: p_chk1 as checkbox,
p_chk2 as checkbox.
p_filepath type rlgrap-filename.
1.1 Validate the user inputs (S_BUKRS and S_HKONT) against respective check tables (T001 and SKB1). If the validation fails, provide respective error message. Eg: Invalid input for Company Code.
1.2 Fetch SERIALNO, BUKRS, MATNR, PRDHA, HKONT, GSBER, WRBTR, BUDAT, CREDATE, CRETIME, PROCESSED, PROCESSEDON, PROCESSEDBY, MAPPED from table ZFIBUE into internal table GT_ZFIBUE where BUKRS IN S_BUKRS, HKONT IN S_HKONT, BUDAT IN S_BUDAT, PROCESSED IN S_PROCESSED, PROCESSEDON IN S_PROCESSEDON, and MAPPED IN S_MAPPED.
1.3 If P_CHK2 = X, go to step 1.11. Else continue.
1.4 If P_CHK1 = X, continue. Else go to step 1.9
1.5 Fetch MATNR, PRDHA from MARA into GT_MARA for all entries in GT_ZFIBUE where MATNR = GT_ZFIBUE-MATNR.
1.6 Sort and delete adjacent duplicates from GT_MARA based on MATNR.
1.7 Loop through GT_ZFIBUE where PRDHA = blank.
Read Table GT_MARA based on MATNR = GT_ZFIBUE-MATNR.
IF sy-subrc = 0.
Move GT_MARA-PRDHA to GT_ZFIBUE-PRDHA.
Modify Table GT_ZFIBUE. Update Product Hierarchy
Endif.
Fetch PRDHA, GSBER from ZFIBU into GT_ZFIBU for all entries in GT_ZFIBUE where PRDHA = GT_ZFIBUE-PRDHA.
Read Table GT_ZFIBU based on PRDHA = GT_ZFIBUE-PRDHA.
IF sy-subrc = 0.
Move GT_ZFIBU-GSBER to GT_ZFIBUE-GSBER.
Move X to GT_ZFIBUE-MAPPED.
Modify Table GT_ZFIBUE.
Endif.
Endloop.
1.8 Modify database table ZFIBUE from GT_ZFIBUE.
1.9 Fill the field catalog table GT_FIELDCAT using the details of output fields listed in section Inputs/Outputs (above).
Eg: LWA_ FIELDCAT -SELTEXT_L = 'Serial Number.
LWA_ FIELDCAT -DATATYPE = NUMC.
LWA_ FIELDCAT -OUTPUTLEN = 9.
LWA_ FIELDCAT -TABNAME = 'GT_ZFIBUE'.
LWA_ FIELDCAT-FIELDNAME = 'SERIALNO'.
Append LWA_FIELDCAT to GT_FIELDCAT
Note: a) The output field GT_ZFIBUE-PROCESSED will be editable marking INPUT = X in field catalog (GT_FIELDCAT).
b) The standard ALV functionality will be used to give the user option for selecting all or blocks of entries at a time.
c) The PF-STATUS STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN will be copied to the program and modified to include a SAVE button.
1.10 Call the function module REUSE_ALV_GRID_DISPLAY passing output table GT_ZFIBUE and field catalog GT_FIELDCAT. Additional parameters like I_CALLBACK_PF_STATUS_SET (= ZFIBUESTAT) and I_CALLBACK_USER_COMMAND (=HANDLE_USER_ACTION) will also be passed to handle user events. Go to 2.14.
1.11 Download the file to P_FILEPATH using function module GUI_DOWNLOAD passing GT_ZFIBUE.
1.12 Exit Program.
Logic to be implemented in routine Handle_User_Action
This routine will have the following interface:
FORM Handle_User_Action USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
ENDFORM.
Following logic will be implemented in this routine:
1. If r_ucomm = SAVE, continue. Else exit.
2. Loop through GT_ZFIBUE where SEL_ROW = X. Row is selected
a. IF GT_ZFIBUE-PROCESSED = X.
i. GT_ZFIBUE-PROCESSEDON = SY-DATUM.
ii. GT_ZFIBUE-PROCESSEDBY = SY-UNAME.
iii. MODIFY ZFIBUE FROM work area GT_ZFIBUE.
Endif.
Endloop.Hi Swathi,
If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop. -
I keep getting this error plz help
Every time that i download the new iphone version 3.1 it gets towards the end and then i get an error. "could not finish transferring to iphone. Network connection failed". I dont know why it keeps giving me this problem when i have internet and i can connect to the itunes store perfectly and also download applications. Can somebody plz help me its driving me nuts. thanks for your time.
*i have itunes 9(the new one) and my firewall is offbump. plz hlep
-
HT4623 Im so lost on this ipod plz help plz
Someone plz help this lost gurl i jus bought this ipod touch an its used an the sad thing is everyone i kno is not smart enough to help me update it. when i go into general settings under the about op there is not a op for updates ive done what i kno but mayb someone could help me please
The option to update without the computer (Over the air) was made available with iOS 5. If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
http://support.apple.com/kb/HT4972
Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
http://support.apple.com/kb/HT4623
Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
http://support.apple.com/kb/ht1848
NOTE: A 2nd generation can not be upgraded beyond 4.2.1. -
TS2446 when i want download any app from appstore i cant cus this message plz help me apple
i have big proplem plz help me apple pl
when i down anything from appstore iphone
your apple id has been disabled
help me i cryYou'll need to contact support and ask them why my friend.
https://expresslane.apple.com/GetproductgroupList.action -
''duplicate = locking - https://support.mozilla.com/en-US/questions/897627''
more examples..
typing GOOGLE LANG in the address bar wd take me to GOOGLE LANGUAGE TOOLS.
SGS SE in the in the address bar would take me to SGSSTUDENTBOSTADER.SE.
even WRONGLY TYPED or truncated keywords would take me to a proper and logical URL as a result. for example, GAMIL used to take me to GMAIL.
i did not have to set ANY KEYWORDS. this feature was there by DEFAULT. PLEASE help me restore it. it is frustrating to type the whole url.''duplicate = locking - https://support.mozilla.com/en-US/questions/897627''
more examples..
typing GOOGLE LANG in the address bar wd take me to GOOGLE LANGUAGE TOOLS.
SGS SE in the in the address bar would take me to SGSSTUDENTBOSTADER.SE.
even WRONGLY TYPED or truncated keywords would take me to a proper and logical URL as a result. for example, GAMIL used to take me to GMAIL.
i did not have to set ANY KEYWORDS. this feature was there by DEFAULT. PLEASE help me restore it. it is frustrating to type the whole url. -
While doing scd2 with ikm oracle slowly changing get this error plz help me
ODI-1217: Session INT_EMP1_SCD2 (574001) fails with return code 936.
ODI-1226: Step INT_EMP1_SCD2 fails after 1 attempt(s).
ODI-1240: Flow INT_EMP1_SCD2 fails while performing a Integration operation. This flow loads target table ODI_EMP1_SCD2_TGT.
ODI-1228: Task INT_EMP1_SCD2 (Integration) fails on the target ORACLE connection DS_DEV_TGT.
Caused By: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:722)Hi Cnu
Let me work through an example. A table named EMPLOYEE may have a natural key of EMPLOYEE_ID. When loading this table as a target in ODI, you will need to define the key that will be used by the KM for Updates and Deletes. This key will be defined on the Datastore as a constraint.
If you expand the Model, expand the EMPLOYEE Datastore, you will find the Constraints section under the Datastore. Create a new constraint. In the case of an SCD integration type, you should have a surrogate key as well as the natural key. EMPLOYEE_ID, being the natural key for EMPLOYEE, would most likely need to be setup as an Alternate Key constraint. So, set the constraint type as such and add the column EMPLOYEE_ID to the list of key columns. Save the constraint.
Open the Interface that loads the EMPLOYEE table, click on the Target Datastore (EMPLOYEE), and in the Property Inspector you should find a property named Update Key. This dropdown will list all of the available constraints from the Target Datastore. You will want to choose the constraint that the Interface will use to perform updates and deletes on in the Target (depending on your KM). In this case, the Alternate Key constraint setup based on the EMPLOYEE_ID should be chosen.
A long answer, but I hope it explains it well for you.
Regards,
Michael Rainey -
Plz help me to design the system......Its very urgent
Hi all members
I have a problem and i am not able to start with the solution of this
if all of u can help me to move with the solution of this problem
I have to send the Java interfaces, and a brief write-up with assumptions and class-design.
Challenge
Your challenge is to begin development of a back-end system for the Galactic Census.
You will be designing and implementing a Java API;
you will not be building the user interface.
The specifications have been written on a stack of white index cards.
Each card has a title at the top and a few sentences describing what is desired.
Your customer, the Galactic Government,
has also communicated to you some idea of the value of each card.
Card Title Description Value
Person Data Entry Several persons may be entered into the system.
Each person has a full name, date of birth, planet of residence,
local address (on that planet), and annual income.
Being able to enter this data is critical to the Census.
Person Data Report All the person data in the system may be retrieved at once.
The data should be grouped by planet,
and ordered alphabetically by full name within each planet.
This report will be needed in the future,
but is less immediately valuable than the various statistics.
Statistic: Galactic Total The total number of persons in the Galaxy may be retrieved
from the system. This statistic is one of the primary goals of the Census.
Statistic: Planetary Total The total number of persons on any given planet
may be retrieved from the system.
This statistic is one of the primary goals of the Census.
Statistic: Galactic Per Capita Income The average income per person in the
Galaxy may be retrieved from the system.
This statistic is required by Government economists.
Statistic: Planetary Per Capita Income The average income per person on
any given planet may be retrieved from the system.
Some university researchers have asked for this statistic.
plz help me to start with this problem
Thanksplz help me to start with this problemRead the problem description and make a class design based on which class needs to do what. Take these "white cards" as basis. Think about the services your system has to offer. Make interfaces for those.
-
Plz help me from the error - "org.apache.jasper.jasperException"
I am getting error with this code ,plz help me out ,i wanna correct this urgently
I've set the Environment variables JAVA_HOME and
CATALINA_HOME and here is my coding and error report
hello.html
<head><title>Database</title></head>
<body>
<form method="get" action="add.jsp">
<pre>
<center>Enter ur Name :<input type="text" name="nam" >
<br><input type="submit" value=" Add ">
</center></pre>
</form>
</body>
</html>
add.jsp
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>JSP</title></head>
<%! String name;
Connection con=null;
Statement st=null;
%>
<body>
<% name=request.getParameter("nam");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//I have created a User DSN sjp
con = DriverManager.getConnection("jdbc:odbc:sjp");
st = con.createStatement();
st.executeUpdate("insert into detail values('"+name+"')");
catch(Exception e)
con.close();
st.close();
%>
<h1> Name Added</h1>
</body>
</html>
Error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NullPointerException at org.apache.jsp.add_jsp._jspService(add_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31hi,
when i use the code
if(st != null)st.close();
if(con != null ) con.close();
that works good ,the old error has been corrected.
but it's now throwing an SQLException[b] "datasource name not found and default driver not specified" why this occurs and also can u give me the explanation for the old error????
I am sure that i have created an user DSN, i am 100% sure about it .even though there is an error.
Deepak.
Deepak.C -
Plz help me, no display output during boot up of 715 workstation
now i have a HP 715 model workstation,today, conneted hp monitor..but can't display output during system boot up so i tried solve this problem,1)changed battery2)removed HDD after reboot system and press ESC key => now can't use Keyboard..not working key board3)Press Tap key.. Just i think, this problem is system configulation problem. not monitor problem..so i found internet website..but now i can not change configulation who know this problem.plz help me
one question in html submit the reslut stored jdbc that value shows barchartAll your base are belong to us!
You know, while I understand that English isn't your first language (neither is it mine) and there's no need to be perfect: if you can't write an understandable post yourself, consider asking someone to do it for you. -
In IMG, activities for which SAP cannot deliver default settings?
2 At what level the regulation of employees are defined in SAP?
3 To integrate the PA and OM we use a switch, specify?
4 In which feature T-Code's are maintained?
5 What is the use of a feature? A feature can be used to determine the default values & the screen sequence when HR Master Data is maintained in the Infotypes.
6 The employee subgroup grouping for CAP allows you to assign different employees to different
7 Employee subgroup grouping for PCR is done to
8 In which feature, default wage type is defined for Basic Pay Infotype
9 The wage type that starts with'/' is known as TECHNICAL WAGE TYPES
10 Permissible check for wage type is performed for each
11 In SAP one can control the initiation of actions when maintaining an infotype by
12 How to know the user authorizations ; ORG KEY
13 Position inherits the task of which object
14 How do you transfer data from PA to PD?
15 RHINT30 Used for what?
16 Feature PACTV performs
17 What is the use of Feature NUMKER?NUMBER RANGES
18 What is the use of control record
19 Are you able to perform more than one action in the same day? YES
20 Whether System will allow the Hire and Terminate actions on the same day?NO
21 While performing the hire action, Customer don't want to go further with out entering
22 the data into the Infotype i.e few Infotype data's are mandatory .how to proceed?hi pavani i thought u have very good knowlege in sap hr and u r answering very good questions.as i'm attending interviews i asked to reply fr these questions. then u r saying that peers dont have any work.when sai ushasri gave 100 questions u answerd the questions. i think u should feel shy fr this . plz help the freshers ,dont irritate.
hope u understand
regards
kishore -
Adding "window to a container:illegal argument exception".error plz help
Thanks to Mr.Andrew and sun for developing the following code for a
mediaplayer which is implemented in jmf.This is working in core java. But
when i have converted it to Applet it compiles but an error adding "window
to a container:illegal argument exception".code is given below plz point
me where is the error;
import javax.media.*;
import java.text.DecimalFormat;
import java.awt.*;
import java.awt.FileDialog;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import java.net.*;
import java.util.*;
class nwa extends WindowAdapter{
frameclass frame;
public nwa(frameclass frame){
this.frame=frame;
public void windowClosing (WindowEvent e)
//User selected close from System menu.
//Call dispose to invoke windowClosed.
frame.dispose ();
public void windowClosed (WindowEvent e)
//if (player != null)
//player.close ();
System.exit (0);
class frameclass extends JFrame
frameclass(){
nwa n=new nwa(this);
this.addWindowListener(n);
public class PlayerApplet extends JApplet
implements
ActionListener,ControllerListener,ItemListener, KeyListener
frameclass frame=new frameclass();
Player player;
Component vc, cc;
JProgressBar volumeBar;
JButton fastRewind;
JButton fastForward;
JButton play;
int sizeIncrease = 2;
boolean invokedStop = false;
/** Big */
int progressFontSize=30;
boolean first = true, loop = false;
String currentDirectory;
public void init(){
JMenu m = new JMenu ("File");
JMenuItem mi = new JMenuItem ("Open...");
mi.addActionListener (this);
m.add (mi);
m.addSeparator ();
JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
cbmi.addItemListener (this);
m.add (cbmi);
m.addSeparator ();
mi = new JMenuItem ("Exit");
mi.addActionListener (this);
m.add (mi);
JMenuBar mb = new JMenuBar ();
mb.add (m);
frame.setJMenuBar (mb);
setSize (200, 200);
final JPanel p = new JPanel(new GridLayout(1,0,5,5));
p.setBorder(new EmptyBorder(3,5,5,5) );
fastRewind = new JButton("<html><body><font size=+"+
sizeIncrease+ "><<");
fastRewind.setToolTipText("Fast Rewind");
fastRewind.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
skipBack();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file
first!"));
fastRewind.addKeyListener(this);
p.add(fastRewind);
JButton stop = new JButton("<html><body><font size=+"+
sizeIncrease+ ">■");
stop.setToolTipText("Stop");
stop.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
invokedStop = true;
//player.stop();
sp();
stop.addKeyListener(this);
p.add(stop);
play = new JButton("<html><body><font size=+"+
sizeIncrease+ ">>");
play.setToolTipText("Play");
play.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
player.setRate(1);
st();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file
first!"));
play.addKeyListener(this);
p.add(play);
fastForward = new JButton("<html><body><font size=+"+
sizeIncrease+ ">>>");
fastForward.setToolTipText("Fast Forward");
fastForward.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
skipForward();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file
first!"));
fastForward.addKeyListener(this);
p.add(fastForward);
p.addKeyListener(this);
frame.add(p,BorderLayout.CENTER);
add(frame);
// pack ();
setVisible (true);
public void start(){
st();
public void stop(){
sp();
public void destroy(){
player.stop();
player.deallocate();
public void actionPerformed (ActionEvent e)
if (e.getActionCommand().equals("Exit"))
// Call dispose to invoke windowClosed.
frame.dispose ();
return;
FileDialog fd = new FileDialog (frame, "Open File",
FileDialog.LOAD);
fd.setDirectory (currentDirectory);
fd.show ();
// If user cancelled, exit.
if (fd.getFile() == null)
return;
currentDirectory = fd.getDirectory ();
if (player != null)
player.close ();
try
player = Manager.createPlayer (new MediaLocator
("file:" +
fd.getDirectory() +
fd.getFile()));
catch (java.io.IOException e2)
System.out.println (e2);
return;
catch (NoPlayerException e2)
System.out.println ("Could not find a player.");
return;
if (player == null)
System.out.println ("Trouble creating a player.");
return;
first = false;
frame.setTitle (fd.getFile ().toString());
player.addControllerListener (this);
player.prefetch ();
public void controllerUpdate (ControllerEvent e)
if (e instanceof ControllerClosedEvent)
if (vc != null)
remove (vc);
vc = null;
if (cc != null)
remove (cc);
cc = null;
return;
if (e instanceof EndOfMediaEvent)
if (loop)
player.setMediaTime (new Time (0));
player.start ();
return;
if (e instanceof PrefetchCompleteEvent)
player.start ();
return;
if (e instanceof RealizeCompleteEvent)
vc = player.getVisualComponent ();
if (vc != null)
add (vc);
cc = player.getControlPanelComponent ();
if (cc != null){
this.add (cc, BorderLayout.SOUTH);
this.show();
public void keyReleased(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
public void keyTyped(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
public void keyPressed(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
}else if (keycode==KeyEvent.VK_UP) {
st();
}else if (keycode==KeyEvent.VK_DOWN) {
sp();
public void skipForward() {
double secs=5;
double playersecs = player.getMediaTime().getSeconds();
Time settime = new javax.media.Time(playersecs + secs);
player.setMediaTime(settime);
public void skipBack() {
double secs1=5;
double playersecs1 = player.getMediaTime().getSeconds();
Time settime1 = new javax.media.Time(playersecs1 - secs1);
player.setMediaTime(settime1);
public void st() {
player.start();
public void sp() {
player.stop();
public void itemStateChanged (ItemEvent e)
loop = !loop;
When i comment add(frame) this error goes but i got a null poiter
exception
Plz help
manuHi Andrew,
Thanks for ur reply.Sorrry that my code not included in the code block.
My problem have been solved partly.Now playerapplet is working properly.It can play files from local machine(through open menuitem from file menu) as well as local network (through url menuitem from file menu).
There is no requirement to play file from internet at present.
I have given arrow keys to forward/backward/open/close.
I have now completed my first part of project.Now i have to start the second part ie Controlling arrow keys using a joystick like instrument.The instrument and driver will be provided by my co. and the user is using only this device.Plz help me how to do that.
The code is given below
import javax.media.*;
import java.text.DecimalFormat;
import java.awt.*;
import java.awt.FileDialog;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import java.net.*;
import java.util.*;
<APPLET CODE=PlayerApplet.class
WIDTH=320 HEIGHT=300>
</APPLET>
class nwa extends WindowAdapter
frameclass frame;
Player player;
public nwa(frameclass frame,Player player)
this.player=player;
this.frame=frame;
public void windowClosing (WindowEvent e)
//User selected close from System menu.
//Call dispose to invoke windowClosed.
frame.dispose ();
public void windowClosed (WindowEvent e)
if (player != null)
player.stop();
player.close ();
player.deallocate();
System.exit (0);
class frameclass extends JFrame
Player player;
frameclass(Player player)
nwa n=new nwa(this,player);
this.addWindowListener(n);
public class PlayerApplet extends JApplet
implements ActionListener,ControllerListener,ItemListener, KeyListener
Player player=null;
frameclass frame=new frameclass(player);
Component vc, cc;
Container f;
JProgressBar volumeBar;
JButton fastRewind;
JButton fastForward;
JButton play;
int sizeIncrease = 2;
boolean invokedStop = false;
/** Big */
int progressFontSize=30;
boolean first = true, loop = false;
String currentDirectory;
public void init()
f=frame.getContentPane();
JMenu m = new JMenu ("File");
JMenuItem mi = new JMenuItem ("Open...");
mi.addActionListener (this);
m.add (mi);
m.addSeparator ();
mi = new JMenuItem ("URL");
mi.addActionListener (this);
m.add (mi);
m.addSeparator ();
JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
cbmi.addItemListener (this);
m.add (cbmi);
m.addSeparator ();
mi = new JMenuItem ("Exit");
mi.addActionListener (this);
m.add (mi);
JMenuBar mb = new JMenuBar ();
mb.add (m);
frame.setJMenuBar (mb);
setSize (500, 500);
JPanel p = new JPanel(new GridLayout(1,0,5,5));
p.setBorder(new EmptyBorder(3,5,5,5) );
fastRewind = new JButton("<html><body><font size=+"+ sizeIncrease+ "><<");
fastRewind.setToolTipText("Fast Rewind");
fastRewind.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
skipBack();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file first!"));
fastRewind.addKeyListener(this);
p.add(fastRewind);
JButton stop = new JButton("<html><body><font size=+"+ sizeIncrease+ ">■");
stop.setToolTipText("Stop");
stop.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
invokedStop = true;
sp();
stop.addKeyListener(this);
p.add(stop);
play = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>");
play.setToolTipText("Play");
play.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
player.setRate(1);
st();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file first!"));
play.addKeyListener(this);
p.add(play);
fastForward = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>>");
fastForward.setToolTipText("Fast Forward");
fastForward.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae) {
if (player!=null) {
invokedStop = false;
skipForward();
} else {
JOptionPane.showMessageDialog(play,
new JLabel("Open a sound file first!"));
fastForward.addKeyListener(this);
p.add(fastForward);
frame.getContentPane().add(p,BorderLayout.CENTER);
frame.setVisible (true);
frame.pack();
frame.setResizable(false);
public void stop(){
sp();
public void destroy(){
player.stop();
player.deallocate();
public void actionPerformed (ActionEvent e)
if (e.getActionCommand().equals("Exit"))
// Call dispose to invoke windowClosed.
player.stop();
player.close();
player.deallocate();
frame.dispose ();
return;
if (e.getActionCommand().equals("Open..."))
FileDialog fd = new FileDialog (frame, "Open File",
FileDialog.LOAD);
fd.setDirectory (currentDirectory);
fd.show ();
// If user cancelled, exit.
if (fd.getFile() == null)
return;
currentDirectory = fd.getDirectory ();
if (player != null){
player.close ();
player.deallocate();
try
player = Manager.createPlayer (new MediaLocator
("file:" +
fd.getDirectory() +
fd.getFile()));
catch (java.io.IOException e2)
System.out.println ("file not found :"+e2);
return;
catch (NoPlayerException e2)
System.out.println ("Could not find a player.");
return;
if (player == null)
System.out.println ("Trouble creating a player.");
return;
first = false;
frame.setTitle (fd.getFile ().toString());
player.addControllerListener (this);
player.prefetch ();
return;
if (e.getActionCommand().equals("URL"))
FileDialog fd = new FileDialog (frame, "Open File",
FileDialog.LOAD);
fd.setDirectory (currentDirectory);
fd.show ();
// If user cancelled, exit.
if (fd.getFile() == null)
return;
currentDirectory = fd.getDirectory ();
if (player != null){
player.close ();
player.deallocate();
try
URL url = new URL ("file://"+fd.getDirectory()+fd.getFile());
MediaLocator mediaLocator = new MediaLocator (url);
player = Manager.createPlayer (mediaLocator);
catch (java.io.IOException e2)
System.out.println ("file not found :"+e2);
return;
catch (NoPlayerException e2)
System.out.println ("Could not find a player.");
return;
if (player == null)
System.out.println ("Trouble creating a player.");
return;
first = false;
frame.setTitle (fd.getFile ().toString());
player.addControllerListener (this);
player.prefetch ();
return;
public void controllerUpdate (ControllerEvent e)
if (e instanceof ControllerClosedEvent)
if (vc != null)
frame.getContentPane().remove (vc);
vc = null;
if (cc != null)
frame.getContentPane().remove (cc);
cc = null;
return;
if (e instanceof EndOfMediaEvent)
if (loop)
player.setMediaTime (new Time (0));
player.start ();
return;
if (e instanceof PrefetchCompleteEvent)
player.start();
return;
if (e instanceof RealizeCompleteEvent)
if (vc != null)
remove (vc);
vc = null;
if (cc != null)
remove (cc);
cc = null;
vc = player.getVisualComponent ();
if (vc != null)
frame.getContentPane().add(vc,BorderLayout.NORTH);
cc = player.getControlPanelComponent ();
if (cc != null){
frame.getContentPane().add (cc, BorderLayout.SOUTH);
frame.setVisible(true);
frame.pack();
public void keyReleased(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
public void keyTyped(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
public void keyPressed(KeyEvent ke) {
int keycode = ke.getKeyCode();
if (keycode==KeyEvent.VK_LEFT) {
skipBack();
} else if (keycode==KeyEvent.VK_RIGHT) {
skipForward();
}else if (keycode==KeyEvent.VK_UP) {
st();
}else if (keycode==KeyEvent.VK_DOWN) {
sp();
public void skipForward() {
Time settime;
double secs=5;
double playersecs = player.getMediaTime().getSeconds();
double duration = player.getDuration().getSeconds();
if((playersecs+secs) < duration){
settime = new javax.media.Time(playersecs + secs);
player.setMediaTime(settime);
}else {
player.setMediaTime(new Time(duration));
public void skipBack() {
double secs1=5;
double secs2=0;
double playersecs1 = player.getMediaTime().getSeconds();
Time settime1;
if((playersecs1 - secs1) > secs2){
settime1 = new javax.media.Time(playersecs1 - secs1);
player.setMediaTime(settime1);
}else {
player.setMediaTime(new Time(0));
public void st() {
player.start();
public void sp() {
player.stop();
public void itemStateChanged (ItemEvent e)
loop = !loop;
With Thanks
manuEdited by: mm_mm on Nov 27, 2007 11:09 PM -
Plz help my external drive isn't being mounted
I have a WD external hard drive, and it stopped mounting on my MAC. I think it happened when I tried to delete the alias in Mac HD/Volumes/. Now when I plug in my drive it only mounts the alias in Volumes but not the actual drive. When I click on the alias it says that the original can't be found. Anybody know how to fix this? Plz help.
Thought you could use this info about getting FireWire to work!
First, you should always Repair Permissions in Disk Utility before and after any update; I would do that now. If you installed your update with FireWire plugged in, your Mac may not recognize it anymore.
Try resetting your FireWire ports by disconnecting all FW devices, shut down your Mac and unplug it from AC power (wall socket) for 30 minutes. plug it back in and try FW.
If that did'nt work, download the combo update from this site (yours may be corrupt), not Software Update, disconnect all firewire + USB devices except keyboard + mouse, Repair Permissions, re-install update, Repair Permissions again + try. Yours is the 10.4.6 Combo update. Others reading, download the Combo that applies to your system.
If that still did'nt get it Zap the PRAM. While restarting Mac hold down the following key combo Command-Option-P-R. Keep holding those keys down till you hear the second start-up chime, then release.
For those of you with Macs that are not PowerBooks or iBooks, a bad internal battery can cause FireWire to not be recognized, so make sure it's good! Also, here is Apple doc.#88338 on getting FireWire to work.
Good Luck!
Cheers!
DALE -
PLZ HELP SAP SCRIPT ISSUE (DYNAMIC BOX)
Hi all
I want to include a dynamic text (means number of lines can vary) inside a box .
please guide me how i can create this box whose size would be dynamic according to this text.
plz help i am not able to find ne solution
Thanx in advance
Edited by: SARABPREET CHADHA on Mar 14, 2008 11:33 AMFollowing things to be done in Driver program.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = TEXT_ID
LANGUAGE = PRINT_LANGUAGE
NAME = TEXT_NAME
OBJECT = TEXT_OBJECT
IMPORTING
HEADER = TABLE_HEADER
TABLES
LINES = TABLE_LINES
EXCEPTIONS
ID = 01
LANGUAGE = 02
NAME = 03
NOT_FOUND = 04
OBJECT = 05
REFERENCE_CHECK = 06.
then
CALL FUNCTION 'WRITE_FORM_LINES'
EXPORTING
HEADER = TABLE_HEADER
WINDOW = WINDOW
IMPORTING
FROMPAGE = FROMPAGE " not interested ?
TABLES
LINES = TABLE_LINES
EXCEPTIONS
FUNCTION = 01
TYPE = 02
UNOPENED = 03
UNSTARTED = 04
WINDOW = 05.
and then in sap script.
/: INCLUDE &THEAD-TDNAME& OBJECT &THEAD-TDOBJECT& ID &THEAD-TDID&
/: PARAGRAPH T6 LANGUAGE
Your text will apper in sapscript.
Award points if useful...
Maybe you are looking for
-
Can't connect to itunes with my iPod (touch).
My IPod is disabled (I haven't used it in quite awhile, don't know why it's disabled) and is asking me to connect to itunes. When I try to, I get an error on itunes saying "iTunes could not connect to the iPod "Nathan's IPod" because it is locked wit
-
HI, What will be the sales flow in other countries in comparision to india( Say india scenario: s0-deli-biling-excise invoice-Register updation.) 1. sales flow 2 taxation/registers etc what will be the major difference.
-
Burning large QT .mov file to DL-DVD for backup
Hello To be clear. I am not interested in creating a DL-DVD for playback on a set top DVD player connected to a television. Rather, I haver a 6+GB .mov file that I would prefer to keep intact and burn to a DL-DVD. I need to do this mainly for backup
-
Is it possible to apply service packs to NW04s ABAP Sneak Preview?
Service Pack 7 to NW04s contains the DEMO_REGEX_TOY, which I'd like to install in my ABAP sneak preview system. I have some questions about that: 1. Is it possible to apply maintenance to the Sneak Preview? 2. What service packages need to be isnt
-
Hi, My Lenovo s90 wont boot. Stuck on lenovo logo. Me device's still rebooting until the battery drains. Also tried to wipe and format data in recovery, but it still reboots. I 've found a guide how to solve this, but I'm not able to install USB Driv