Error:arch: posix_spawnp: osascript: Bad CPU type in executable
Hi, i am new to these issues
I use to be able to excute my frank-cucmber on Lion and now when i move to mountain lion and I get the following error
error:arch: posix_spawnp: osascript: Bad CPU type in executable
i read on the interent that mountain lion is not supporting 32 bit
so how can i solve the problem so 32 bit will be supported?
You need a 64-bit version.
32-bit will never be supported on Mountain Lion.
Similar Messages
-
After upgrading from an eMac to an Intel Mac Mini, I noticed that I needed to reinstall Xcode. Once I reinstalled Xcode (v2.4), I made some changes to one of my applications. After testing it fully on my new Mac, I copied the .app file to my old eMac and attempted to re-run. In doing so, I received the following error message:
"You cannot open the application 'NAME OF APPLICATION' because it may be damaged or incomplete."
So, in Terminal, I navigated through the Package Contents to the actual executable and tried to run it. I, then, received the following error:
"Bad CPU type in executable."
How do I correct this error, so it will run on both of my Macs??
THANKS IN ADVANCE!!
WBELL
eMac Specs:
1GHz, 768MB DDR, OSX 10.4.x
Mini Specs:
1.5GHz Core Solo, 1024MB DDR2, OSX 10.4.x
Mac Mini Mac OS X (10.4.7) 1.5GHz Core SoloHere are a couple of things to check...
First, from your screen shot it appears that the main.m file is from an older AS Studio application (ie is this a project that was originally created some time ago... perhaps under Project Builder?). The main.m file that gets included with relatively new AS Stdio apps looks like this:
<pre>
extern void ASKInitialize();
extern int NSApplicationMain(int argc, const char *argv[]);
int main(int argc, const char *argv[])
ASKInitialize();
return NSApplicationMain(argc, argv);
</pre>
So you may want to copy/paste the main.m code from a newly created AS Studio app into your (older?) existing project. I'm not sure the above problem would cause the failure to build a Universal app, but changing code in main.m may get rid of the warnings you're seeing.
But also, the screenshot made me wonder if your target(s) needs to be converted to the newer "native" target format (this is different from the "conversion" that Xcode does to an older project file). With your project open click on Xcode's "Project" menu... is the option "Upgrade 'YourTargetName' to Native Target" or "Upgrade all Targets in Project to Native" available? If so, I think you must convert to native targets in order to build universal binaries.
Hope this helps,
Steve -
What does the message ``Bad CPU type in executable'' mean in terminal window?
All the time I have been using TEX on my computer to handle mathematical symbols.
I have several macintosh machines.
Usually I used tex on the terminal (rather than texshop or texwork).
Quite recently when I input ``platex filename.tex,’’
I received the message ``Bad CPU type in executable.’’
On another machine, I receive the message which says “platex” failed: the
PowerPC architecture is no longer supported.
I have no idea why this happens.
Will anyone help me?
It occured when I typed ``platex foo.tex,'' in an attempt to compile a tex file.PowerPC architecture is no longer supported.
This mean you have an old executable that was compiled for a Power PC Mac (the ones before they got the Intel chips). On systems running 10.6 (Snow Leopard) there was code called Rosetta that was able to run the PPC code on the Intel CPU, That went away in 10.7
Sounds like you recently upgraded to 10.8 from 10.6 or earlier and copied the binary to the new OS.
If you compiled the code yourself you need to recompile it for the new OS. If you installed the binary you need to go to the site you got the binary from and see if there is a newer version for Intel Macs. -
Hi all
I'm developing a java me xmpp client and when I try to create a secure socket connection I get the following error: java. io.IOException: Bad record type(60) or version (63.120). I have searched in many places but I don´t find any answer about that problem. Can anybody help me?
regardsHi,
Thank you for the quick response.
I tried that, I can connect so wls:/offline> nmConnect('weblogic','password','10.110.90.156','5556','ClassicDomain','/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain');
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/ClassicDomain>
but on
nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
Starting server AdminServer ...
Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
wls:/nm/ClassicDomain> nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
Starting server AdminServer ...
Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
wls:/nm/ClassicDomain>
And the AdminServer log shows security authentication error. Wondering why since I am not entering password when I do nmStart?
Do you have an idea?
Thank you
Anatoliy -
Error Messge: Final Cut Pro requires that your system have a CPU type of G5
I recently updated my OS to 10.5.8. I also downloaded AVID codec for quicktime. Then, when I went to open FCP on my MacBook Pro (2.6GHz Intel Core 2 Duo), I was hit with the error message Final Cut Pro requires that your system have a CPU type G5; this system has a CPU type of G4. I've never had a problem running FCP on this laptop. Any suggestions? Help!
Also, I found another person who posted with a similar problem and here's what he wrote, (but curiously, he doesn't state what the fix was to his problem).
After 1 and a half hours of support from Ireland it came out that some llibrary setting
was conflicting with the startup of FCP. Apple did not hear of this problem before. I wonder
how many macbookpro users have the same issue...
mac book pro 17" Mac OS X (10.5.7) -
RFC call from Delphi (Bad Variant Type error)
Well, I'm trying to call an RFC function from Delphi via ActiveX objects..
I have Codegear 2009 installed and it works without any problem..
But on another system with Delphi7 installed when I ran same code it gives "Bad Variant Type" error when assigning SapLogonControl's connection object to SapFunction's connection parameter... Both computers have same SAP installation. And on both systems ActiveX objects imported correctly on Delphi.
Here is the code:
unit logon1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, OleCtrls, StdCtrls, SAPFunctionsOCX_TLB,
Grids, SAPLogonCtrl_TLB;
type
TForm1 = class(TForm)
SAPFunctions1: TSAPFunctions;
Button2: TButton;
Grid: TStringGrid;
Edit1: TEdit;
Edit2: TEdit;
Label1: TLabel;
Label2: TLabel;
SAPLogonControl1: TSAPLogonControl;
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1 : TForm1 ;
Table, Funct, Connection : VARIANT ;
implementation
{$R *.DFM}
procedure TForm1.Button2Click(Sender: TObject);
begin
Connection := SAPLogoncontrol1.newConnection;
Connection.User := 'testuser';
Connection.System := 'CRD';
Connection.Client := '300';
Connection.ApplicationServer:= '10.1.1.10';
Connection.SystemNumber := '00';
Connection.Password := 'testpass';
Connection.Language := 'EN' ;
if Connection.LogOn(0,true) = true then
(* parameter "true" = SilentLogOn *)
begin
(* assign the existing connection to the *)
(* component SAPFunctions1 *)
SAPFunctions1.Connection := Connection; // It gives error on this line...
Funct := SAPFunctions1.add('ZGIS_TEST_FUNC');
end;
end;
end.
As I said while Codegear 2009 runs this code without any problem, Delphi 7 crashes on that assignment.. Also I tried outside Delphi, and the file compiled with Codegear works on both systems while the file compiled with Delphi 7 again crashes on buth systems...
Is there a problem with Delphi 7? Should I use at least Delphi 8 or something for compiling?Hi Hakan,
You must use Non-Unicode RFC library for Delphi 7.0.
( Bende Delphi 7.0 kullaniyorum. Ayni hatayi aldim. Unicode library kullanmistim. Kaldirip Non-Unicode olani kullandim. Su an hata yok. RFC cagirabiliyorum. )
Mustafa Yalcin -
RCU Database Coneection Details "Bad Packect Type" error
Hi,
I am installing oracle soa suite 11.1.1.2.0, In RCU wizard, shows "Bad Packect Type" error, anybody give me a details how to i solve this issue
I am providing following details
Databasetype: Oracle Database
Host: localhost
port: 5560
servicename: xe
username: sys
password: tiger
ROLE: SYSDBA
It shows Bad packet type,In Database connection details pageHi,
Here are some pre-RCU-run you can perform:
1) Check if you service is up and running.
2) Try to connect to the DB separately using a tool/IDE like SQL Developer, JDeveloper, Toad, etc.
3) Try to run RCU from a different machine. May be there are some Port conflicts.
Thanks,
Sanjay -
Bad CPU cause stop errors?
Does anyone know that a bad cpu cause stop errors in win2k ect.. or what would cause such errors? Bad memory?/
Hi,
It can be anything:
Bad CPU
Bad mounted CPU-cooler
Light powersupply
IDE cables wrong used
Harddisk broken
Mobo damaged
Metal standoff's left between the case and the board
Bad drivers
Broken videocard
Bad memory banks
Bad BIOS settings
There are probably a few more, but that's about what it can cause it.....
Start reading the trouble guide.... :D -
I'm working through Structure and Interpretation of Computer Programs, and I've run into some behaviour I don't understand.
The code:
(define (average x y)
(/ (+ x y) 2))
(define (refine r g)
(print "["r"]["g"]")
(average (/ r g) g))
(define (sqrt-guess rad guess)
(define oldguess guess)
(define guess (refine rad guess)) # problem line
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
It seems that when refine is called in the problem line the second argument is not being 'received' as I would expect.
#;1> (sqrt-guess 9 1)
[9][#<unspecified>]
Error: (/) bad argument type: #<unspecified>
Call history:
<syntax> (sqrt-guess 9 1)
<eval> (sqrt-guess 9 1)
<eval> [sqrt-guess] (refine r g)
<eval> [refine] (print "[" r "][" g "]")
<eval> [refine] (average (/ r g) g)
<eval> [refine] (/ r g) <--
I tried (define guess (refine rad oldguess)), same outcome. At this point, I figure it's some consequence of applicative-order processing that I don't understand. But things got more interesting when I added a standalone call to refine:
(define (sqrt-guess rad guess)
(define oldguess guess)
(refine rad oldguess) # new line
(define guess (refine rad oldguess)) # (define guess (refine rad guess)) also works
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
Now the code runs as expected and returns an answer. However, if I change "oldguess" to "guess" in the first refine line:
(define (sqrt-guess rad guess)
(define oldguess guess)
(refine rad guess)
(define guess (refine rad oldguess)) # (define guess (refine rad guess)) also fails
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
the original error re-occurrs. In every case the 'standalone' call to refine gets both arguments as expected; it's the one in "define guess" that has issues.
I'm not looking for help fixing the code, but for an explanation/breakdown of what's going on. Thanks.
Last edited by alphaniner (2013-06-20 13:20:34)I believe that redefining 'guess' is confusing the compiler.
You're right. That was my first thought too, but I swear I tried something like (define foo (refine rad guess)) which didn't work either. I just tried it again and it works just fine.
I haven't been introduced to let yet, and the way it's parenthesized I don't really understand how it works. I think of let in bash terms (ie. let x++) so maybe that's my problem. Anyway, I'll wait 'till I come across it in the text.
Using your suggestions I got it to work using only stuff I know:
(define (sqrt-guess rad guess)
(define newguess (refine rad guess))
(if (= newguess guess)
guess
(sqrt-guess rad newguess)))
Definitely cleaner. Thanks! -
Panic[cpu1]/thread=30002f12060: BAD TRAP: type=31
Sun V240 panic with t5he following output:
# tail -f /var/adm/messages
Sep 24 15:52:24 [10.64.47.16.183.179] agent[21415]: [ID 695539 daemon.alert] syslog Sep 24 15:52:24 agent *** aborting execution ***
Sep 24 15:52:24 [10.64.47.16.183.179] agent[21415]: [ID 695539 daemon.alert] syslog Sep 24 15:52:24 agent *** aborting execution ***
Sep 24 15:53:29 [10.64.47.16.183.179] agent[23844]: [ID 440145 daemon.alert] syslog Sep 24 15:53:29 agent syntax error in fscan+syslog.dat(1) at token '{'
Sep 24 15:53:29 [10.64.47.16.183.179] agent[23844]: [ID 440145 daemon.alert] syslog Sep 24 15:53:29 agent syntax error in fscan+syslog.dat(1) at token '{'
Sep 24 15:53:29 [10.64.47.16.183.179] agent[23844]: [ID 617052 daemon.alert] syslog Sep 24 15:53:29 agent *** aborting execution ***
Sep 24 15:53:29 [10.64.47.16.183.179] agent[23844]: [ID 617052 daemon.alert] syslog Sep 24 15:53:29 agent *** aborting execution ***
Sep 24 15:54:35 [10.64.47.16.183.179] agent[26272]: [ID 134417 daemon.alert] syslog Sep 24 15:54:35 agent syntax error in fscan+syslog.dat(1) at token '{'
Sep 24 15:54:35 [10.64.47.16.183.179] agent[26272]: [ID 134417 daemon.alert] syslog Sep 24 15:54:35 agent syntax error in fscan+syslog.dat(1) at token '{'
Sep 24 15:54:35 [10.64.47.16.183.179] agent[26272]: [ID 336262 daemon.alert] syslog Sep 24 15:54:35 agent *** aborting execution ***
Sep 24 15:54:35 [10.64.47.16.183.179] agent[26272]: [ID 336262 daemon.alert] syslog Sep 24 15:54:35 agent *** aborting execution ***
panic[cpu1]/thread=30002f12060: BAD TRAP: type=31 rp=2a100feac60 addr=20 mmu_fsr=0 occurred in module "md" due to a NULL pointer dereference
nfsd: trap type = 0x31
addr=0x20
pid=10465, pc=0x12e5de0, sp=0x2a100fea501, tstate=0x9980001603, context=0x751
g1-g7: 4, 2000, 1900000, 1fff, 1c00, 751, 30002f12060
000002a100fea980 unix:die+78 (31, 2a100feac60, 20, 0, 2a100feaa40, 107c400)
%l0-3: 00000000c0800000 0000000000000031 0000000001000000 0000000000002000
%l4-7: 000000000181a570 000000000181a400 0000000000000000 0000009980001603
000002a100feaa60 unix:trap+9d4 (2a100feac60, 0, 1fff, 5, 0, 1)
%l0-3: 0000000000000000 00000600084af8c0 0000000000000031 0000000000001c00
%l4-7: 0000000000000000 0000000000000001 ffffffffffffe000 0000000000000005
000002a100feabb0 unix:ktl0+48 (6, 0, 20, 70, 1905348, 1905000)
%l0-3: 0000000000000004 0000000000001400 0000009980001603 000000000101b304
%l4-7: 0000000000000000 0000000000000001 0000000000000000 000002a100feac60
000002a100fead00 7 (5500002004, 422, 0, ffffffff80200000, 1900000, 1)
%l0-3: 0000000000000004 0000000000000001 0000000000000008 0000000001904800
%l4-7: 000006000c4aadc0 000000000003ffff 000000000003fc00 0000000000000020
000002a100feadd0 specfs:spec_fsync+fc (6000c50a500, 10000, 60007e88fe0, 3, 0, 6000c50a000)
%l0-3: 000006000c18cb68 000006000c18cae0 0000000000002420 0000000000002000
%l4-7: 0000000000000000 000006000c4aadc0 0000000000000000 000006000c4aadc0
000002a100feafa0 genunix:fop_fsync+14 (6000c50a500, 10000, 60007e88fe0, f3, 0, 121cab0)
%l0-3: 0000060004a97580 0000000000002420 0000000000002000 0000000000000003
%l4-7: 0000060002234000 0000060004a97580 0000060004a97738 0000000000000062
000002a100feb050 nfssrv:rfs3_mknod+30c (2a100feb110, 2a100feb398, 600049e4840, 2a100feb3a0, 60007e88fe0, 2a100feb1a0)
%l0-3: 00000000ffffffff 0000060004ef8c00 ffffffffffffffff 0000000000002004
%l4-7: 0000000000000055 000002a100feb1a0 000002a100feb568 000002a100feb228
000002a100feb2b0 nfssrv:common_dispatch+444 (2a100feb698, 6000ac8fa80, 0, 600049e4840, 705a01b8, 7b32e4d4)
%l0-3: 0000000000001000 000000007059eb90 000000000000000b 000002a100feb398
%l4-7: 0000060007e88fe0 0000000000000000 0000000001901df8 000002a100feb398
000002a100feb5d0 rpcmod:svc_getreq+1c8 (6000ac8fa80, 60002324800, 6000b5501d0, 6000102dc80, 1902560, 6000b550040)
%l0-3: 0000000000000000 000006000b550040 0000000000000000 000006000ac8fad4
%l4-7: 0000060005218fc0 000000007b3271bc 0000000001872800 000006000b550360
000002a100feb720 rpcmod:svc_run+198 (6000b837980, 0, 0, 0, 6000b8379b8, 1)
%l0-3: 00000600084af8c0 000006000b8379c8 000006000ac8fa80 000006000102dc80
%l4-7: 0000000000000000 0000000000000000 000000000000000c 0000060002324800
000002a100feb7d0 nfs:nfssys+1c4 (c, 1, 7b2b3800, c, 1f8, 30)
%l0-3: 0000000000000000 0000000000000000 00000000cb050000 000000000000cb05
%l4-7: 0000000000000001 0000000000000000 0000000000000000 000000007b2b3938
syncing file systems... [1] 46 [1] 11 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 [1] 4 done (not all i/o completed)
dumping to /dev/md/dsk/d20, offset 859701248, content: kernel
100% done: 64894 pages dumped, compression ratio 5.02, dump succeeded
rebooting...
SC Alert: Host System has Reset
@(#)OBP 4.16.2 2004/10/04 18:22 Sun Fire V210/V240,Netra 240
Clearing TLBs
Loading Configuration
Membase: 0000.0012.0000.0000
MemSize: 0000.0000.4000.0000
Init CPU arrays Done
Init E$ tags Done
Setup TLB Done
MMUs ON
Scrubbing Tomatillo tags... 0 1
Block Scrubbing Done
Find dropin, Copying Done, Size 0000.0000.0000.6cb0
PC = 0000.07ff.f000.5ba8
PC = 0000.0000.0000.5c58
Find dropin, (copied), Decompressing Done, Size 0000.0000.0006.6870
Diagnostic console initialized
System Reset: CPU Reset
Probing system devices
jbus at 0,0 SUNW,UltraSPARC-IIIi (1503 MHz @ 9:1, 1 MB) memory-controller
jbus at 1,0 SUNW,UltraSPARC-IIIi (1503 MHz @ 9:1, 1 MB) memory-controller
jbus at 1f,0 pci
jbus at 1e,0 pci
jbus at 1c,0 pci
jbus at 1d,0 pci
Loading Support Packages: kbd-translator obp-tftp SUNW,i2c-ram-device SUNW,fru-device SUNW,asr
Loading onboard drivers:
/pci@1e,600000: Device 7 isa
/pci@1e,600000/isa@7: flashprom rtc i2c power serial serial serial rmc-comm
/pci@1e,600000/isa@7/i2c@0,320: i2c-bridge i2c-bridge motherboard-fru-prom chassis-fru-prom power-supply-fru-prom power-supply-fru-prom dimm-spd dimm-spd dimm-spd dimm-spd dimm-spd dimm-spd dimm-spd dimm-spd rscrtc nvram idprom gpio gpio gpio gpio gpio gpio
Probing memory
CPU 0 Bank 0 base 0 size 2048 MB
CPU 0 Bank 1 base 100000000 size 2048 MB
CPU 0 Bank 2 base 200000000 size 2048 MB
CPU 0 Bank 3 base 300000000 size 2048 MB
CPU 1 Bank 0 base 1000000000 size 1024 MB
CPU 1 Bank 2 base 1200000000 size 1024 MB
ChassisSerialNumber FN54050325
Probing I/O buses
/pci@1d,700000: Device 2 network network
/pci@1f,700000: Device 2 network network
/pci@1e,600000: Device 6 pmu i2c gpio
/pci@1e,600000/pmu@6/i2c@0,0:
/pci@1e,600000: Device a usb
/pci@1e,600000: Device d ide disk cdrom
/pci@1e,600000: Device 2 Nothing there
/pci@1e,600000: Device 3 SUNW,qlc fp disk
/pci@1c,600000: Device 2 scsi disk tape scsi disk tape
/pci@1c,600000: Device 1 Nothing there
/pci@1d,700000: Device 1 SUNW,qlc fp disk
BNZ - Bank of New Zealand
Rebooting with command: boot
Boot device: disk0:a File and args:
Loading ufs-file-system package 1.4 04 Aug 1995 13:02:54.
FCode UFS Reader 1.12 00/07/17 15:48:16.
Loading: /platform/SUNW,Sun-Fire-V240/ufsboot
Loading: /platform/sun4u/ufsboot
SunOS Release 5.10 Version Generic_127111-05 64-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
SC Alert: SC Request to send Break to host.
Type 'go' to resume
{1} ok
{1} okSystem can be boot into single user mode but fails when moved to multi-user mode.
Any ideas?
Cheers
--AndreasThis looks like it could be bug 6614416.
See [Sun Alert 241066|http://sunsolve.sun.com/search/document.do?assetkey=1-66-241066-1] . -
Unable to launch application from my machine:Bad MIME Type
Hi,
The following error message was printed when I tried to access the SwingSet2 demo from the Java Web Start site.
An error occurred while launching/running the application.
Title: SwingSet2
Vendor: Sun Microsystems, Inc.
Category: Download Error
Bad MIME type returned from server when accessing resource: http://java.sun.com/products/javawebstart/apps/SwingSet2.jnlp - text/html
Can you please suggest what is to be done to rectufy this problem?
Regards,
SatishBad MIME type returned from server when accessing
resource:
http://java.sun.com/products/javawebstart/apps/SwingSet
.jnlp - text/htmlit should return application/x-java-jnlp-file.
My guess is that you use proxy which messes up headers.
Otherwise try to reinstall Web Start, then enable the console and log output in Web Start's advanced preferences to get more clues what's going on.
Regards,
Marc -
Hi,
Can anyone tell me how to resolve this error
ORA-00600: internal error code, arguments: [ktbdchk1: bad dscn], [], [], [], [], [], [], []
ORA-06512: at "ProcName", line 7
ORA-06512: at line 17
thxMost of this type of errors (ORA-600) you need report to Oracle Support or check the metalink for released fix or possible workaround.
Anyway this error is fixed in:
10.1.0.4 patchset
9.2.0.7 patchset (released for Windows only, for other platforms expecting soon)
10gR2 (not released yet) -
This code is simply to prove my connection to SAP is working. So far, I'm unable to get it to work without getting the "Bad Variant Type" error.
<%@ Page Language="VB" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
Dim fc As Object
Dim sapConn As Object
Dim PARTNERS_TAB As Object
Dim RETURN_TAB As Object
Dim Z_BAPI_FIND_CUSTOMERS As Object
Dim msg As String
Dim fld_type As String
Dim count As Integer
Dim index As Integer
Dim index2 As Integer
Dim cnt_sold_to As Integer
Dim cnt_ship_to As Integer
Dim retcd As Integer
msg = "start" & "<BR>"
fc = CreateObject("SAP.Functions")
fc.LogLevel = 9
fc.LogFileName = "C:temperrors.txt"
sapConn = CreateObject("SAP.Logoncontrol.1")
fc.Connection = sapConn.NewConnection()
'Pass the name of the system
fc.Connection.System = "TST"
fc.Connection.SystemNumber = "02"
'Pass the name of the Server
fc.Connection.ApplicationServer = "server.fqdn.net"
'Pass the name of the Client
fc.Connection.client = 100
'Pass the name of the USER
fc.Connection.user = "username"
'Pass the name of the Password
fc.Connection.Password = "password"
'Pass the name of the Language
fc.Connection.language = "EN"
'Log On to the SAP System
retcd = fc.Connection.Logon(0, True)
If (retcd = False) Then
msg = msg & "SAP Logon Failed." & "<BR>"
Else
msg = msg & "logon success / setting vars" & "<BR>"
Z_BAPI_FIND_CUSTOMERS = fc.Add("Z_BAPI_FIND_CUSTOMERS")
Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_NAME") = "Customer Name"
Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_CITY") = "CHICAGO"
'Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_NBR")
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_NAME") = "Customer Name"
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_CITY") = "BAYONNE"
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_STATE") = "NJ"
'Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_NBR")
msg = msg & "calling func" & "<BR>"
If (Z_BAPI_FIND_CUSTOMERS.Call() <> True) Then
msg = msg & "func fail" & "<BR>"
Else
msg = msg & "func success" & "<BR>"
RETURN_TAB = Z_BAPI_FIND_CUSTOMERS.Tables("RETURN_TAB")
fld_type = RETURN_TAB.Value("TYPE")
If ((fld_type = "M") Or (fld_type = "N")) Then
msg = msg & fld_type & " " & RETURN_TAB.Value("MESSAGE") & "<BR>"
Else
msg = msg & "parameters are correct <BR>"
PARTNERS_TAB = Z_BAPI_FIND_CUSTOMERS.Tables("PARTNERS_TAB")
' Results
count = PARTNERS_TAB.Rows.Count
msg = msg & "partner rows: " & CStr(count) & "<BR>"
If (count > 2) Then ' we have more than one soldto or shipto
cnt_sold_to = 0
cnt_ship_to = 0
For index = 1 To PARTNERS_TAB.Rows.Count
If (PARTNERS_TAB.Value(index, "PARTN_ROLE") = "AG") Then
cnt_sold_to = cnt_sold_to + 1 ' PARTN_ROLE = "AG"
Else
cnt_ship_to = cnt_ship_to + 1 ' PARTN_ROLE = "WE"
End If
Next ' go to next record in partner_tab
msg = msg & "sold to: " & CStr(cnt_sold_to) & " ship to: " & CStr(cnt_ship_to) & "<BR>"
End If ' count of partners_tab > 2 we *may* need to do something about it here - fix me
msg = msg & "<table>"
For index = 1 To PARTNERS_TAB.Rows.count
msg = msg & "<tr>"
For index2 = 1 To 8
msg = msg & "<td>" & PARTNERS_TAB.Value(index, index2) & "</td>"
Next
msg = msg & "</tr>"
Next
msg = msg & "</table>"
'If ((cnt_sold_to = 1) And (cnt_ship_to = 1)) Then ' we only have one soldto and one shipto
' Results.Visible = False
'Else ' we have more than one shipto or soldto - fix me
End If
End If
End If
msg = msg & "<br>DONE!"
Response.Write(msg)
Response.End()
%>
The error occurs when I make the call to fc.add.It seems the fc.Connection and the RETURN_TAB.Value needed (row, field) to solve the problem.
For reasons I do not understand, I had to create a separate connection
object and assign the handle of it to the function control handle.
The RETURN_TAB.Value(row, field) was a syntax error on my part.
Here is the updated, working code:
<%@ Page Language="VB" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
Dim fc As Object
Dim sapConn As Object
Dim PARTNERS_TAB As Object
Dim RETURN_TAB As Object
Dim msg As String
Dim fld_type As String
Dim count As Integer
Dim index As Integer
Dim index2 As Integer
Dim cnt_sold_to As Integer
Dim cnt_ship_to As Integer
Dim retcd As Integer
msg = "start" & "<BR>"
fc = CreateObject("SAP.Functions")
fc.LogLevel = 9
fc.LogFileName = "C:temperrors.txt"
sapConn = CreateObject("SAP.Logoncontrol.1")
Dim conn As Object = sapConn.NewConnection()
'Pass the name of the system
conn.System = "TST"
conn.SystemNumber = "99"
'Pass the name of the Server
conn.ApplicationServer = "server.domain.com"
conn.MessageServer = "server.domain.com"
'Pass the name of the Client
conn.client = 999
'Pass the name of the USER
conn.user = "USER_NAME"
'Pass the name of the Password
conn.Password = "PASSWORD"
'Pass the name of the Language
conn.language = "EN"
'Log On to the SAP System
retcd = conn.Logon(0, True)
If (retcd = False) Then
msg = msg & "SAP Logon Failed." & "<BR>"
Else
fc.Connection.ConnectionHandle = conn.ConnectionHandle
msg = msg & "logon success / setting vars" & "<BR>"
Dim Z_BAPI_FIND_CUSTOMERS As Object = fc.Add("Z_BAPI_FIND_CUSTOMERS")
Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_NAME") = "CUSTOMER NAME"
Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_CITY") = "CITY"
'Z_BAPI_FIND_CUSTOMERS.Exports("SOLDTO_NBR")
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_NAME") = "CUSTOMER NAME"
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_CITY") = "CITY"
Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_STATE") = "ZZ"
'Z_BAPI_FIND_CUSTOMERS.Exports("SHIPTO_NBR")
msg = msg & "calling func" & "<BR>"
If (Z_BAPI_FIND_CUSTOMERS.Call() <> True) Then
msg = msg & "func fail" & "<BR>"
Else
msg = msg & "func success" & "<BR>"
RETURN_TAB = Z_BAPI_FIND_CUSTOMERS.Tables("RETURN_TAB")
fld_type = RETURN_TAB.Value(1,"TYPE")
If ((fld_type = "M") Or (fld_type = "N")) Then
msg = msg & fld_type & " " & RETURN_TAB.Value(1,"MESSAGE") & "<BR>"
Else
msg = msg & "parameters are correct <BR>"
PARTNERS_TAB = Z_BAPI_FIND_CUSTOMERS.Tables("PARTNERS_TAB")
' Results
count = PARTNERS_TAB.Rows.Count
msg = msg & "partner rows: " & CStr(count) & "<BR>"
If (count > 2) Then ' we have more than one soldto or shipto
cnt_sold_to = 0
cnt_ship_to = 0
For index = 1 To PARTNERS_TAB.Rows.Count
If (PARTNERS_TAB.Value(index, "PARTN_ROLE") = "AG") Then
cnt_sold_to = cnt_sold_to + 1 ' PARTN_ROLE = "AG"
Else
cnt_ship_to = cnt_ship_to + 1 ' PARTN_ROLE = "WE"
End If
Next ' go to next record in partner_tab
msg = msg & "sold to: " & CStr(cnt_sold_to) & " ship to: " & CStr(cnt_ship_to) & "<BR>"
End If ' count of partners_tab > 2 we *may* need to do something about it here - fix me
msg = msg & "<table>"
For index = 1 To PARTNERS_TAB.Rows.count
msg = msg & "<tr>"
For index2 = 1 To 8
msg = msg & "<td>" & PARTNERS_TAB.Value(index, index2) & "</td>"
Next
msg = msg & "</tr>"
Next
msg = msg & "</table>"
'If ((cnt_sold_to = 1) And (cnt_ship_to = 1)) Then ' we only have one soldto and one shipto
' Results.Visible = False
'Else ' we have more than one shipto or soldto - fix me
End If
End If
End If
msg = msg & "<br>DONE!"
Response.Write(msg)
Response.End()
%> -
SOAPExceptionImpl: Bad endPoint type
Hi,
I am using SoapClient to send out my web services. It is running normally in my environment, but when I uploaded the files onto a web hosting site and run it from there, i encountered the below error.
java.lang.RuntimeException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad endPoint type https://webservices.sabre.com/websvc at webservices.client.AvailWsdlClient.startConversation(AvailWsdlClient.java:149)
(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686) at java.lang.Thread.run(Thread.java:619) Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad endPoint type https://webservices.sabre.com/websvc at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:149) at webservices.client.SoapClient.sendSoapMessage(SoapClient.java:123) at webservices.client.AvailWsdlClient.startConversation(AvailWsdlClient.java:128) ... 23 more
I read up some forums and found this, http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6619327
Extracted from the url:
Such code as
SOAPConnection con = conFactory.createConnection();
con.call(message, new URLEndpoint("http://localhost/"));
worked well in java 5.0 but in java 6.0 it fails with "SOAPExceptionImpl: Bad endPoint type"
However, I tested with Java 6.0 and it still works.
Anyone has come across this error and can share your solution?
Thank you in advance.
Edited by: jduo on Mar 8, 2008 2:43 AMuse instead of URLEndpoint ([...|http://docs.sun.com/app/docs/doc/819-3669/bnbhy?l=en&a=view])
-
What is this error java.sql.SQLException: Bad format for number ?
Dear All,
I am reading few values from database. Then I get this error "MyError:Error : java.sql.SQLException: Bad format for number 'Sarawak' in column 6. " So what is this error referring to. I have checked the database column and its value fits according the data type. Any hints please?I have checked the database column and its value fits according the data type.Check again. Then check again. Keep checking until you find your error. You are trying to read a string containing "Sarawak" as a number. You have "getInt(6)" or other numeric type, and the 6th column in the select statement is not numeric.
Maybe you are looking for
-
How do you load a DVD on to a Mac Mini by using another MacBook Pro?
What is the procedure for using a MacBook Pro DVD drive to load a disc of data onto a Mac Mini computer?
-
Connecting usb to networked printer
Officejet Pro Plus 8600, Win 7 HP Printer works very well networked. How can I connect a USB cable to use the USB port without the printer defaulting to USB connection?
-
Reg Special Characters in The Names causing the problems EX: Bu00E1rbara u00E1u00EDu00F1u00E9
Hi Friends, In the Infotype 0002 I am able to observe the Special characters in the First Name & Last Name. When I run standard SAP report i.e. Birthday list and trying to save the output to the *clipboard option and paste it to the notepad*, I obs
-
I have a text file with a couple of thousands lines in it. Is there an easy way to convert this to a plist file? Thanks for the help.
-
Hi,<br /><br />I'm trying to write EXIF information into photos using Adobe Bridge and Extend Script. There were lots of scripts I found very useful as a start in this forum, but still I'm not able to write EXIF data.<br /><br />Found several approac