JAR file does not get uploaded to client for my SERVLET generated APPLET
Some help please...
I have a servlet that generates the HTML code that contains an APPLET. This APPLET needs a JAR file that is listed under its ARCHIVE property. The SERVLET is in a JAR file that is in the same directory as the other needed JAR file. If I create a static HTML with the output of the SERVLET it works fine. But if go through Weblogic the needed JAR file does not get uploaded to the client so I get a java.lang.NoClassDefFoundError:and my APPLET does not load.
Q1: I am not sure what to put under the CODEBASE tag. I tried "." and I also tried "http://mymachine" but both did not work. I also tried without the CODEBASE tag. No luck. The SERVLET is bound to http://mymachine/servlet.
Q2: Does anyone have any suggestions on how to do this? Is there a way to force the browser to upload a certain JAR file?
Thanks...
It works!!
This is what I did:
The jar file in question was the weblogic.jar. I tried putting it under the lib directory of my war file but I had problems because the weblogic.jar contains other war files inside so when I tried to deploy my war file it also tried to deploy the inner war files which for some reason did not work. So I tried removing the war files from the weblogic.jar and this time I had no problems deploying my war file but I still could not find the classes I needed. So I tried moving the weblogic.jar to the root dir of my war file and it worked!! Now the trick here was: I did not set the CODEBASE AND I had the ARCHIVE paramenter set in TWO places like below:
<APPLET CODE = "marketmap.client.MarketMapApplet"
ARCHIVE = "weblogic.jar"
WIDTH = "657"
HEIGHT = "382"
ALIGN = "BOTTOM"
ALT = "APPLET tag not recognized">
</XMP>
<PARAM NAME = CODE VALUE = "MyApplet" >
<PARAM NAME = "type" VALUE="application/x-java-applet;version=1.2.2">
<PARAM NAME = "scriptable" VALUE="false">
<PARAM NAME = ARCHIVE VALUE="weblogic.jar">
</APPLET>
Actually if you do not place a parameter named ARCHIVE (at the end) it wil NOT work. I tried with multiple jar files listed and it works great too.
Anyway I figure I'd share. Thanks for the help too.
Lastly for people who choose not to upload the jar files to clients, you should look at the bea documentation on applets. It lists a classpath servlet that allows you to provide classes to the clients without having to force them to download the jar file.
Similar Messages
-
New to the System Center world. We are using a fresh install of Server 2012 R2 and System Center R2 with everything working until Server 2012 R2 Update 1 was installed. Now we are getting the following:
Site type: Primary Site or CAS SMS_STATUS_MANAGER
6/4/2014 1:35:21 PM 10996 (0x2AF4)
Resolved the "Status Manager" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
Resolved the "Site Control Manager (Master Site Control File)" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
Parsed the master site control file, serial number 1551209029.
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
This site is the central site. SMS_STATUS_MANAGER
6/4/2014 1:35:21 PM 10996 (0x2AF4)
ERROR: The master site control file does not contain a component item for SMS_STATUS_MANAGER.
SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
10996 (0x2AF4)
Sleeping for 60 seconds... SMS_STATUS_MANAGER
6/4/2014 1:35:21 PM 10996 (0x2AF4)
Any thoughts on how to fix this? Seen a few references to a "site reset" for SCCM 2007 but wanted to make sure there wasn't anything else to try before heading down that road with 2012R2.A site reset can also be done in CM12 so it's worth a try.
Torsten Meringer | http://www.mssccmfaq.de -
When I click PDF file, the file does not open and installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.
Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.
-
It looks like whenever one specifies Column default values at a library level then the content organizer routing goes a bit awry SPECIFICALLY FOR NON OFFICE FILES [e.g. PDF] . Below are the observations and issues
1. Column level default value set on a record library with auto declaration of records turned on. The content organizer routes the document to the library but also keeps a copy of the document in the drop off library. It does not remove it from the drop
off library. The instant we clear the default value settings at the library level of the target library the content organizer works as expected again.
2. If default value settings are specified on a column in the target library then the PDF file gets routed to the document library but all the metadata is blanked out. The copy of the file that remains in the drop off library has all the correct metadata but
the target library has blanked out metadata.
Are the 2 observations described above by design or are they bugs? If so is there any documentation that is available that proves this because this does not make logical sense and proving this to a client in the absence of any documentation is a challenge.
The problem goes away if we shift the default value to the site columns directly at the site collection level. It's just the library level defaults that the pdf files do not seem to agree withHi Lisa,
Thanks for responding. This can be replicated in any environment but is only replicable for a specific combination of content organizer settings . The combination of settings I am referring to can be seen in the screenshot below. If you turn off redirect
users to the drop off library for direct uploads to libraries and if you turn on sharepoint versioning then you should be able to replicate the issue. Also we are using managed metadata site columns. I simplified this use case to a custom content content type
with just 2 custom managed metadata columns and can still replicate the issue in several environments. Also note the issue does not occur if the default values are set at the site or site collection level. It only occurs if you set the column value default
at a library level. I was able to replicate this on a completely vanilla Enterprise records site collection freshly created just to test this. Also note that the issue is not that the file does not reach the destination library. The issue is the
document does not get removed from the drop off library after it is transfered to the destination library which technically should have gotten removed. -
Executing jar file does not work
i am using net beans 4.1, jdk 1.4.2_09 and jre 5.0 update 4.
i create a jar in netbeans, exit netbeans, go to the directory where the jar has been placed and double click the jar file to run it. when i do so i get an hour glass momentarily and then nothing. the program does not execute. i hope i am not missing something very basic here. i assume i can run the program by double clicking the jar file ....
i have checked in netbeans to insure that all classes are in the jar, the manifest looks good, etc, etc. it looks like all the pieces of the jar are in place but the program will not run. please help.
thanks,
dave ...Directory of C:\JAVA\PROJECTS\DIST
10/04/2005 10:09 AM <DIR> .
10/04/2005 10:09 AM <DIR> ..
10/04/2005 10:09 AM 25,203 gift_email.jar
1 File(s) 25,203 bytes
2 Dir(s) 124,456,144,896 bytes free
C:\JAVA\PROJECTS\DIST>echo %CLASSPATH%
c:\java\projects\dist;c:\Program Files\netbeans-4.1\ide5\modules\ext
C:\JAVA\PROJECTS\DIST>java -jar gift_email.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
at giftrecpt.email.gift_email_gui.initComponents(gift_email_gui.java:38)
at giftrecpt.email.gift_email_gui.<init>(gift_email_gui.java:24)
at giftrecpt.email.gift_email_gui.main(gift_email_gui.java:142)
C:\JAVA\PROJECTS\DIST>
i added the location of the absolutelayout method to the classpath but still get the error. i also included this same reference in netbeans to the project under run-time libraries. so it seems that i have added the necesary references but still no luck. what could i be missing? the manifest makes no mention of class path. here it is below:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2_09-b05 (Sun Microsystems Inc.)
Main-Class: giftrecpt.email.gift_email_gui
X-COMMENT: Main-Class will be added automatically by build
thanks,
dave ... -
Jar file is not getting executed from commandline
Hi ,
this is the weired problem i had.
i have created a executable jar file.When i double click that file it is getting executed without any problem but when i go to command prompt and tries to run this jar by using folowing command
java -jar myjar.jar
it is giving me the error as
Exception in thread "main" java.lang.UnsupportedClassVersionError:com/build/deploy/Deploy (Unsupported major.minor version 49.0)
i am not getting why it is giving me this version error.
can any body answer my question.
i am using version JDK1.5 also program is running perfesctly from ecllipse IDE.I believe that something in your system is set up so that when you double click the jar, the correct java or javaw version is being used, but when you use the command line, an older version of java is being used.
-
File does not get updated in document library
I'm encountering weird behavior which I hope you can suggest on how to further troubleshoot. There are some document libraries that whenever I upload a new version of a file, the file's contents do not get updated (when I open the file after check-in,
it still shows the old content) but the Modified By and Modified fields get updated.
Remote Blob Storage is turned on for our site; could it be RBS-related? However, only a few document libraries exhibit this kind of behavior.Hi Kev,
There's no particular pattern in the differences between libraries exhibiting the behavior and those that do not. If it matters, the Style Library is experiencing this kind of behavior. We also have a document library renamed to "Images" (its URL
is /Images) that also exhibits this behavior. I also tried disabling and enabling versioning, still the same behavior. I even tried deleting the file and reuploading with the same file name, still the same behavior! -
Jms.jar file does not exist
hi dear
can anybody help me..
I m using CMD. I have problem in using jms.jar file, i have jms.jar file in my ...\lib\jms.jar. But i m not able to use that jar file. i set the class path from system property and that showing in class path of CMD but my program is not ruuning Error is...
CSV2XML1.java:13: package javax.jms does not exist
import javax.jms.Connection;
^
CSV2XML1.java:14: package javax.jms does not exist
import javax.jms.ConnectionFactory;
^
CSV2XML1.java:15: package javax.jms does not exist
import javax.jms.Destination;
^
CSV2XML1.java:16: package javax.jms does not exist
import javax.jms.MessageProducer;
^
CSV2XML1.java:17: package javax.jms does not exist
import javax.jms.Session;
^
CSV2XML1.java:18: package javax.jms does not exist
import javax.jms.TextMessage;
^
CSV2XML1.java:255: cannot find symbol
symbol : class ConnectionFactory
location: class com.firm58.getCo.CSV2XML1
ConnectionFactory connectionFactory = (ConnectionFactory
) initialContext.lookup("weblogic.jms.XAConnectionFactory");
^
CSV2XML1.java:255: cannot find symbol
symbol : class ConnectionFactory
location: class com.firm58.getCo.CSV2XML1
ConnectionFactory connectionFactory = (ConnectionFactory
) initialContext.lookup("weblogic.jms.XAConnectionFactory");
^
CSV2XML1.java:256: cannot find symbol
symbol : class Connection
location: class com.firm58.getCo.CSV2XML1
Connection connection = connectionFactory.createConnecti
on();
^
CSV2XML1.java:257: cannot find symbol
symbol : class Session
location: class com.firm58.getCo.CSV2XML1
Session session = connection.createSession(false, Sessio
n.AUTO_ACKNOWLEDGE);
^
CSV2XML1.java:257: cannot find symbol
symbol : variable Session
location: class com.firm58.getCo.CSV2XML1
Session session = connection.createSession(false, Sessio
n.AUTO_ACKNOWLEDGE);
^
CSV2XML1.java:260: cannot find symbol
symbol : class Destination
location: class com.firm58.getCo.CSV2XML1
Destination queue = (Destination) initialContext.lookup(
"jms/customerInputQ");
^
CSV2XML1.java:260: cannot find symbol
symbol : class Destination
location: class com.firm58.getCo.CSV2XML1
Destination queue = (Destination) initialContext.lookup(
"jms/customerInputQ");
^
CSV2XML1.java:261: cannot find symbol
symbol : class MessageProducer
location: class com.firm58.getCo.CSV2XML1
MessageProducer producer = session.createProducer(queue)
^
CSV2XML1.java:262: cannot find symbol
symbol : class TextMessage
location: class com.firm58.getCo.CSV2XML1
TextMessage messageJMS = session.createTextMessage();
^
Thanks for help
bimleshTo me it looks like CLASSPATH is not set in your environment. When type echo %CLASSPATH% you should see something like /opt/sun/mq/share/lib/jms.jar:/opt/sun/mq/share/lib/jaxm-api.jar:/opt/sun/mq/share/lib/imqxm.jar:/opt/sun/mq/share/lib/imqservlet.jar:/opt/sun/mq/share/lib/imq.jar:/opt/sun/mq/share/lib/fscontext.jar
(sorry but I don't have windows machine) and not %CLASSPATH%. Adding your jar files to PATH variable won't help. When you start your cmd type "set" you should see if CLASSPATH is set when your environment is printed. If it's not set try setting it byt typing set CLASSPATH=your_path_to\jms.jar;your_path_to\imq.jar;. .Then run your application. -
Executable Jar file - Does not open
Hi,
I have an executable jar file. The icon of that executable jar is that of an unknown file instead of the normal java icon. So when I try to run that executable jar it shows 'open with'. What is the reason for this? What should be done in order that I can run this executable jar?
AneesAssociate .jar files with java -jar in your OS. I didnt get you.
Normally it should open with these softwares installed, rt? -
Profit Center not getting uploaded through BAPI for MM01. Pls help
Hello all,
I am getting an errror while uploading a file through BAPI for MM01 , The error says
Error:
Profit center 1000/sslcommon does not exist
for material: AC2
*& Report ZBAPI_DUMMY
REPORT ZBAPI_MM01.
*& Report ZBAPI2
TABLES
FLAGS *
DATA: F_STOP. " Flag used to stop processing
DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
STRUCTURES & INTERNAL TABLES
*--- BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2, " Return Parameter
BAPI_MARDL LIKE BAPI_MARD,
BAPI_MARDX LIKE BAPI_MARDX.
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
SPART(2), " Division
EKGRP(3), " Purchasing group
PRCTR(10), " Profit Center
VPRSV(1), " Price control indicator
BKLAS(4), "Valuation Class
*stprs(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
LGORT(4) , " storage location
DISMM(2) , "MRP TYPE
VERPR(23), " Moving Average Price
MTVFP(2) , " Availability Check
DISLS(2) , "Lot Size
DISPO(3) , "MRP Controller
BESKZ(1) , "Procurment Type
FHORI(3) , "SCHEDMARGIN KEY
PERKZ(1) , "Period Indicator
END OF IT_DATA.
SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY " Input File
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 2 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
Form : validate_input_file
Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS> .
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS> .
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS> .
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
Header
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
BAPI_HEAD-storage_view ='X'.
bapi_head-mrp_view = 'X'.
bapi_head-COST_view ='X'.
Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
bapi_mara1-unit_of_wt = it_data-gewei.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARC1-PROFIT_CTR = IT_DATA-PRCTR.
BAPI_MARC1-MRP_TYPE = IT_DATA-DISMM.
BAPI_MARC1-AVAILCHECK = IT_DATA-MTVFP.
BAPI_MARC1-LOTSIZEKEY = IT_DATA-DISLS.
BAPI_MARC1-MRP_CTRLER = IT_DATA-DISPO.
BAPI_MARC1-PROC_TYPE = IT_DATA-BESKZ.
BAPI_MARC1-SM_KEY = IT_DATA-FHORI.
BAPI_MARC1-PERIOD_IND = IT_DATA-PERKZ.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-AVAILCHECK = 'X'.
BAPI_MARCX-PROFIT_CTR = 'X'.
BAPI_MARCX-MRP_TYPE = 'X'.
BAPI_MARCX-MRP_CTRLER = 'X'.
BAPI_MARCX-SM_KEY = 'X'.
BAPI_MARCX-LOTSIZEKEY = 'X'.
Storage Location.
BAPI_MARDL-PLANT = IT_DATA-WERKS.
BAPI_MARDL-STGE_LOC = IT_DATA-LGORT.
BAPI_MARDX-PLANT = IT_DATA-WERKS.
BAPI_MARDX-STGE_LOC = IT_DATA-LGORT.
Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-VAL_CLASS = IT_DATA-BKLAS.
BAPI_MBEW1-MOVING_PR = IT_DATA-VERPR.
bapi_mbew1-std_price = it_data-stprs.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA = BAPI_MARDL
STORAGELOCATIONDATAX = BAPI_MARDX
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,
IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
ENDLOOP.
ENDFORM. " UPLOAD_MATMASthe Profit center 1000/sslcommon not created. first create the profit center and then upload your data.check tcode KE52 for created profit centers...
-
Files does not get sorted from Windows
I have OSX server (7 years old) using as a file server getting connected by many Windows clients. It did not happen in the beginning, but lately, I cannot sort the files by file names or file types from Windows client computer. It was all in good order even when I looked from Windows client computer, but in the past couple of years, it can never sort in good order either by file name or file types. Does anyone have the same experience like this or know what is going on?
Hi, I got reboot problem on W2k3 as well. Any time it came out, there were lots of java.nio exceptions. I really wonder if the NIO package will crash the OS? Btw, the JVM version is 1.4.2.008
One more: I found that there are exceptions which tells me "the establish connection has been terminated by the program hosted in your computer". Can any of you help? Thx... -
Jar File Does Not Overwrite?
Hi Guys,
I created an application which can be downloaded from a url let's say - http://www.abc.com/downloads/midler.jar
I am using Nokia 2630.
When I have previously installed midlet.jar into my phone and when I download new application with the same file name it allow another application to be saved without asking "Midlet.jar already exists , Replace existing?"
When I try to download commercial games from Nokia.com and redownload the same game it display a message "Replace existing file with ....".
Is there something I forgot upon building / packaging the application?
Or should I adjust in the phone settings?
Please I need your help... Thanks in advance.Hi ccheneson,
Thanks for the reply... Actually I saved the same file on the same directory on the default directory "Games".
I was expecting that the device would prompt me to "Replace the existing file with my downloaded application"
since downloading a commercialized jar while would prompt me the message.
I don't know if the problem occurs because of the phone settings or do I missed out with the code / packaging in WTK.
Thanks -
Both iPhone 4 and iPhone 5 in same plan can't place calls or when call goes thru the other person can't hear me. I went to the Verizon store and they are replacing the iPhone 4 but suggested I go to Apple store(ugh!) to get replacement of whic I know they won't have. So I want to know what the heck is going on that both phones have this problem after attempting other phones, in-network, out of network,landlines, etc. I can do my apps, sometimes the texts don't go thru for non-verizon or non-iPhones. I can recieve most emails, twitter but at times even they lag for a day behind. I reboot and that helps.
RLites22,
I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
KevinR_VZW
Follow us on Twitter @VZWSupport -
File does not exist: /servlet/f60servlet
Hi,
We have a Developer 2000 application which is running on 9ias.
Till last week the UAT system was working ok. Since i re-started, it stopped working. The apache error log displays the following error messages:
[Tue Jan 25 15:53:08 2005] [error] [client 3.248.176.44] File does not exist: e:/uat/oracle/806/forms60/java/sun/applet/AppletViewer.class
[Tue Jan 25 15:53:08 2005] [error] [client 3.248.176.44] Filename is not valid: e:/uat/apps/forms_icons/http:
[Tue Jan 25 15:53:08 2005] [error] OPM:Can not find one alive process
[Tue Jan 25 15:53:08 2005] [error] [client 3.248.176.44] File does not exist: /servlet/oracle.forms.servlet.ListenerServlet
[Tue Jan 25 15:53:26 2005] [error] OPM:Can not find one alive process
[Tue Jan 25 15:53:26 2005] [error] [client 3.248.176.44] File does not exist: /servlet/f60servlet
Please help!
Note: Developemtn and Productions systems with the same setting are working ok.
Thanks,
NaveenI am currently using OracleAS 10g and is using mod_oc4j to mount the Forms Servlet.
It seems that you use JServ for mounting the Forms Servlet, (maybe default in 9i R2?) from the error log entry /servlet/f60servlet...
Maybe Jserv is not up and running on your host? It looks like Jserv hasn't mounted /servlet/ or aliased /servlet/f60servlet as the error log indicates that Apache is looking in the filesystem for these paths which is wrong.
But what do I know... :)
Regards
/Stefan -
Itunes Producer Problems Uploading - File not saving - file does not Exist.
Can someone please help me out, this problem is killing me. I've uploaded over 200 UPC Albums using Old G3 and Elderly ITunes Producer, but apple asked me to upgrade, so new machine to me Macmini maverics 10.9.? ITunes Producer 3.1.
So I click open ITunes producer 3.1. Click on make project from Audio
Files. Name and Save the project in Music-ITunes Producer-Playlists.
Plug in my external Flash drive and import the 40 Audio files for the
project. I am using an external flash drive as I can’t get ITunes Producer to
see my internal hard disk, I do not know if this is normal??
Go through the process of saving the project to Music – ITunes Producer –
Playlists – in this case 5060101121313
I then go through name all Tracks and make sure that all Data is correct.
Then when I finally go to either save the document or send it to you I get the
first Screen shot saying
"The Document "5060101121313" COULD NOT BE SAVED. The File does not exist".
As I say I have delivered 200 UPC’s to you with the old software and never
had any problems, I am in urgent need of making significant delivery to you so
would appreciate you help ASAP.
PaulI have been victorious. Now I am going to post my solution for all those that may have the same problem in the future. I'll even throw in a few key words so it will be more easily found by the search engine.
Connection conn = null;
try{
//connect to database
DAOManager dao = new DAOManager();
conn = dao.connectToDB();
String query = "update ASSIGNMENT set file_object = ?, filename = ?, filetype = ? where a_key = 1"; //sql query
PreparedStatement pstmt = conn.prepareStatement(query);
ByteArrayOutputStream baostream = new ByteArrayOutputStream();
//write to output stream
byte[] buffer = new byte[1024];
int len = -1;
while ((len = instream.read(buffer)) >= 0 )
baostream.write(buffer, 0, len);
baostream.flush();
byte[] filebytes = baostream.toByteArray();
baostream.close();
pstmt.setBytes(1,filebytes); //set blob
pstmt.setString(2,filename);
pstmt.setString(3,filetype);
pstmt.executeUpdate();
pstmt.close();
catch (SQLException e) {
System.out.println(Tools.getLoggingDate() + " upload() Error uploading file -- " + e);
e.printStackTrace();
catch (Exception e) {
System.out.println(Tools.getLoggingDate() + " upload() Error: " + e);
finally {
try{
conn.close();
}catch (SQLException e) {}
}Keywords: setBinaryStream(), setBytes(), MySQL, upload file, InputStream, Blob
Maybe you are looking for
-
How do I stop edge animate from looping in muse
I have an edge animation set to switch frames every px in muse but want it to stop playing at the last frame. How do I do this? it continuously loops..
-
I have iphone 4 and recently updated IOS to 7.0.4. After that, my iphone is keep going into 3G mode at home. I thought it was the problem with my internet or router. But my husband's iphone and our ipads are not having any issues. I turned off and tu
-
Explanation of functionality partner functions
Hi Can anybody explain me the functionality of the following button: XD02 -> General Data -> Contact Persons -> Partner Functions I didn't found a help on the function. When I push the button the following error comes up: "Partner is not assigned to
-
Pictures don't show in camera roll
Does anyone know why some pictures don't show up in the camera roll after I take a picture? The first time it happened I thought something was wrong and the picture didn't save. I looked in Photos and all the pictures I took were there but not all th
-
Hi <BR><BR>I Would Like to Know That How to get SUM of Attribute Members in Essbase Calc Script<BR><BR>for example<BR><BR>in entity dimension(named CostCenter), it has attribute member(member is Game)<BR><BR>then I want to know the value of sum of at