Gateway forwarding problem
Hi all,
I'm currently trying to build the following (rather simple) setup:
A local network of PCs is connected via a switch to an Ultra 10, running Solaris 9. (10.10.20.x)
On the 2nd interface of the Ultra 10 a router with broadband internet is connected. (192.168.123.x)
On the Ultra 10 currently only a Squid Proxy cache runs.
I plan to enable SunScreen on the Ultra 10 once everything works as planned.
Currently the client PCs can access the internet perfectly well through the Squid Proxy.
I thought, after enabling IP forwarding on the Ultra 10 the clients should be able to access the POP and SMTP servers of my internet ISP, but they can't get any connection to them.
Is my understanding of IP forwarding wrong here?
Do I need an application proxy for mail and other internet applications which don't go through the Squid proxy?
Or do I have a problem in address resolution, which requires some kind of NAT service on the SUN as well?
Sorry, if these are newbe kind of question. Any help appreciated.
Kind regards,
John Robie
Hi,
I did some research on the internet on that problem.
I figure that I need NAT enabled on that SUN gateway/firewall machine.
I found two possible ways to do that: either use the SunScreen Lite which comes with Solaris 9 or install and use an application called "IP Filter" instead.
Since I planned to activate SunScreen anyway, I'll go for that option.
Can anybody confirm that I'm heading into the right direction?
Cheers,
John Robie
Similar Messages
-
Fast forward problems with Zen Touch (1.01.03 AND PlayForSu
Device: Zen Touch
Firmware: .0.03
Some files cause fast forward problems. Suppose I fast forward to the end of the song. Then I reach the - 00:00.00 marker. HOWEVER, the song goes on and on. It doesn't stop, even if it should (these files aren't corrupt, they work properly on my pc). For e.g. this file causes problems: http://www.hollywoodsaloon.com/podcast/THS-ep9.mp3 and this file http://meandawg.com/audio/MDTop5_0002.mp3.
Anyone know if this is a common problem, and can I fix this by installing the playforsure firmware?Message Edited by Nicos on 07-27-200703:42 AM
Message Edited by Nicos on 07-27-200703:43 AM
Message Edited by Nicos on 07-27-200703:43 AM
Message Edited by Nicos on 07-27-200707:22 AMI just upgraded the firmware and it didn't help =(
Is there anyone who has the same problem? Maybe someone of you can download these files and try to ffwd to the end with a Zen Touch.Message Edited by Nicos on 07-27-200707:44 AM
Message Edited by Nicos on 07-27-200708:00 AM -
Help debugging standard Gateway configuration problem
I've got a Mac Pro running Lion Server.
It connects to a fixed IP / direct connection to the Internet on Ethernet 1.
The machine, and the services it supports all have good access to the Internet.
It is configured to support a LAN from Ethernet 2. Wifi connection is disabled.
I used the Gateway Assistant to set up, and:
Ethernet 2 is configured at 192.168.2.1, with DNS set manually to OpenDNS values. These are the same values as used on Ethernet 1's fixed IP connection (which works fine).
NAT is set to IP Forwarding and Network Address Translation, External Interface is Ethernet 1, and Port Mapping Protocol is enabled.
DHCP is set to distribute values to en1 (which is Ethernet 2) in range 192.168.2.2 to 192.168.2.127. DNS is set to 192.168.2.1.
The problem I have is, is that although client connections to Ethernet 2 set up pefectly, the connected machines have no connection to the internet: unable to see fqdns or ping IPs directly.
I must be doing something wrong... but can't see it. Hopefully someone else can...
Thanks in advance for whatever help anyone can provide.Here are the outputs: hope they are informative
Server - ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
ether 00:17:f2:00:8e:06
inet6 fe80::217:f2ff:fe00:8e06%en0 prefixlen 64 scopeid 0x4
inet 46.33.146.45 netmask 0xfffffff8 broadcast 46.33.146.47
inet 46.33.146.46 netmask 0xfffffff8 broadcast 46.33.146.47
media: autoselect (1000baseT <full-duplex,flow-control>)
status: active
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
ether 00:17:f2:00:8e:07
inet6 fe80::217:f2ff:fe00:8e07%en1 prefixlen 64 scopeid 0x5
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
media: autoselect (100baseTX <full-duplex,flow-control>)
status: active
en2: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 00:19:e3:0a:41:ae
media: autoselect (<unknown type>)
status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:16:cb:ff:fe:6c:6f:f6
media: autoselect <full-duplex>
status: inactive
vnic0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
ether 00:1c:42:00:00:08
inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255
media: autoselect
status: active
vnic1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
ether 00:1c:42:00:00:09
inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
media: autoselect
status: active
Server - nslookup
Server:
208.67.220.220
Address:
208.67.220.220#53
Non-authoritative answer:
45.146.33.46.in-addr.arpa
name = www.2gc.org.
Laptop / LAN - ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fd77:51b9:835:a2f3:62c5:47ff:fe08:7d12 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 60:c5:47:08:7d:12
media: autoselect (<unknown type>)
status: inactive
p2p0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2304
ether 02:c5:47:08:7d:12
media: autoselect
status: inactive
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=4<VLAN_MTU>
ether 58:55:ca:22:9a:af
inet6 fe80::5a55:caff:fe22:9aaf%en2 prefixlen 64 scopeid 0x7
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
media: autoselect (100baseTX <full-duplex,flow-control>)
status: active
Laptop - nslookup
Server:
192.168.2.1
Address:
192.168.2.1#53
45.146.33.46.in-addr.arpa
name = www.2gc.org. -
Hi all,
We're having problems getting IP forwarding working in OS X 10.7. What were trying to do is using a Mac Pro with two interfaces getting to act as a router between the two connected networks.
Setup:
Network A 192.168.1.0/24
Network B 192.168.2.0/24
Mac Pro with en0 in Network A and en1 in Network B
macpro$ ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
ether 00:25:00:ef:13:77
inet6 fe80::225:ff:feef:1377%en0 prefixlen 64 scopeid 0x4
inet 192.168.1.222 netmask 0xffffff00 broadcast 192.168.1.255
media: autoselect (100baseTX <full-duplex,flow-control>)
status: active
macpro$ ifconfig en1
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
ether 00:25:00:ef:28:32
inet6 fe80::225:ff:feef:2832%en1 prefixlen 64 scopeid 0x5
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
media: autoselect (100baseTX <full-duplex,flow-control>)
status: active
IP forwarding enabled:
macpro$ sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 1
Route added on client in network B:
sudo route add 192.168.1.0 192.168.2.2 255.255.255.0
Pinging an IP in network A from client in network B (not working):
client$ ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Routing table on client in network B:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.2.1 UGSc 26 0 en0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 5 133568 lo0
169.254 link#4 UCS 0 0 en0
192.168.1 192.168.2.2 UGSc 0 25 en0
192.168.2 link#4 UCS 5 0 en0
192.168.2.1 c8:6c:87:73:57:dd UHLWIir 27 50 en0 1179
192.168.2.2 0:25:0:ef:28:32 UHLWIi 5 3069 en0 790
192.168.2.101 7c:c5:37:e:2:66 UHLWIi 0 0 en0 333
192.168.2.102 127.0.0.1 UHS 0 0 lo0
192.168.2.106 f8:1e:df:86:dd:2 UHLWIi 0 2 en0 1024
192.168.2.255 ff:ff:ff:ff:ff:ff UHLWbI 0 6 en0
Are we missing something? How could this be debugged?
Thanks for any help!Yes, but the internet uplink is on network B in our case, so it does not really fit.
-
Fast forward problem in iTunes 6.0.1.3
Hello
I am using iTunes 6.0.1.3 on Windows XP Pro.
The situation is this. I have a song that is 7:30 long. When I play it normally it works just fine. However when I use the fast forward and advance to time mark 6:45 and start playing it is actually playing the part of the song that is at 6:00 (within a second or two), I let it go ahead and play and when it gets to 7:30 it just stops and jumps to the top of the menu tree (both it iTunes and on my ipod (40 gig 4g).
I have tried the fast forwarding in Music Match and Adobe Audition and it works just fine. I have tested the mp3 file with all the editors and players I have and it works great.
It appears there is some type of synch issue with fast forward and I don't really know where to start.
Any help would be appreciated.
Thank You.
Sony VGC RA810G Windows XP ProWell, I've noticed this problem at work (while using my work laptop on a network with other users -- some who have iTunes 5 and some iTunes 6) and at home (using a completely different laptop).
At first I thought it was a configuration problem on my work laptop, but now I'm thinking it has something to do with iTunes itself.
The weird thing is: People at work who use iTunes 5.0 can see the shared drives without a problem. Those with 6.0 cannot. So this problem is replicating itself in two completely different environments -- leading me to believe it's something in iTunes 6. Hmm....
Dell Inspiron 9100 Windows XP -
I will Paypal you $100 if you can resolve this Port Forward problem
Believe me when I tell you, If you are the person who fixes this problem, I will GLADLY Paypal you $100.
This is so unbelievable. Short story is, after 12 hours of paid support through Support RIX, 6 hours with TWC support, and 4 different modems there isn't a single person in these groups that can get ports forwarded on my Linksys E4200 router.
I am running a fresh copy of windows 7 with all updates and no anti virus installed. I purchased a Motorola ARRIS SURFboard modem 200 series DOCSIS 3.0 so I have no double router issues. Before I was using the TWC moden/routers in bridge mode.
I have no problem setting a static IP or configuring port forwarding. It doesn't matter if I have windows firewall on or off. I can't get an outside port checking website that can verify an open port.
I am trying to play Battlefield 4 using the port forwarding request they provide.
If I run a local port check program on my computer it will confirm the ports open. Ok, Fair enough. They tell me the outside port checking utilities will say the port is closed unless I am running the program that uses these open ports.
SO I run the game and check and it always says port closed. One of the ports I want to open is 80. It has to be open to get internet anyway but it still shows closed using the online port checking websites.
I connected the computer to the modem. No router. I keep getting ports closed or filtered when I check through 6 different port checking sites. Leads me to think their is some kind of block in the ethernet card software.
Its a Realtek PCIe GBE Family controller with a driver date of 8/26/2014. Latest one I could find.
I think its an ethernet card filter. Just my thoughts. Here is the current adapter card settings.
Advanced settings on Ethernet card
Auto Disable Gigabit/ Disabled
Flow Control/ RX & TX Enabled
Green Ethernet/ Enabled
Interrupt Moderation/ Enabled
IPv4 Checksum Offload/ RX & TX Enabled
Jumbo Frame/ Disabled
Large send Offload v2 (IPv4)/ Enabled
Large Send Offload v2 (IPv6)/ Enabled
Network address/ You can check the box for Value and add one. Currently its checked to Not present
Priority & VLAN/ Enabled
Receive buffers/ 512
Receive Side Scaling/ Enabled
Shutdown Wake-on-Lan Enabled
Speed and duplex/ Auto Negotiation
TCP Checksum Offload (IPv4)/ RX & TX Enabled
''''''''''''''''''''''''''''''''''''''(IPv6)/ RX & TX Enabled
Transmit buffers/ 128
UDP Checksum Offload (IPv4) RX & TX Enabled
'''''''''''''''''''''''''''''''''''''''(IPv6) RX & TX Enabled
Wake on Magic Packet/ Enabled
Wake on Pattern match/ Enabled
WOL & Shutdown Link Speed/ 10 Mbps First
I used a port tester downloaded from PCWinTech.com v3.0.0. It says the ports are open. When I close port 80 it says port 80 is closed. My problem is nothing outside my network can confirm an open port. It always states port closed.
The game I am playing is Battlefield-4. I have played all of the campigns without any problem but once online it crashes. The BF-4 community says I need to open 5 single ports and 5 port ranges. This is what I am trying to do.
We have tried an ARRIS router modem, a Ubee router modem (both in bridge mode) and are now using a motorola modem. All with the same problem. We checked the ports during game play and they all say closed.
I will post pictures of my current router settings.What model router do you have?
What Firmware version is currently loaded?
What region are you located?
What is your current model ISP modem your using now?
What ISP Modem service link speeds UP and Down do you have?
Check cable between Modem and Router, swap out to be sure. Link>http://en.wikipedia.org/wiki/CAT6 is recommended.
Check ISP MTU requirements, Cable is usually 1500, DSL is around 1492 down to 1472. Call the ISP and ask.
http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=88e63d78588142e6bb68e22d7faf2046_Configuring_the_M...
Router and Wired Configurations
Setup DHCP reserved IP addresses for all devices ON the router. This ensures each devices gets its own IP address when turned on and connected, eliminates IP address conflicts and helps in troubleshooting and maintain consistency for applications that need to connect as well as mapped drives.
Ensure devices are set to auto obtain an IP address.
If http://en.wikipedia.org/wiki/Ipv6 is an option on the router, select Local Connection Only.
If you set up port forwarding, disable uPnP and test.
When you check for port status, you have to be actively using the port before you scan check as you may get a false negative if your not using the port. If your using the port then check the status, you should get an accurate result.
I would try using Port Range Triggering instead of PF and set up the port as follows for your PC that your gaming with:
0 thru 65535. A bit less hassle to set up then all those different port rules.
PC 3rd Party Security Software Configurations
Turn off all anti virus and firewall programs on PC while testing. 3rd party firewalls are not generally needed when using routers as they are effective on blocking malicious inbound traffic.
Turn off all devices accept for one wired LAN PC while testing.
Disable any downloading client software managers, i.e. Torrents or similar. -
Oracle 8i Gateway Service problem for MS SQL Server 7.0
I am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
AT the MS-DOS prompt, enter:
SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
Would some one provide solution for this problem please.
Thanks and regards,
GhulamI am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
AT the MS-DOS prompt, enter:
SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
Would some one provide solution for this problem please.
Thanks and regards,
Ghulam -
Balance Carry-Forward Problem for Subledger Accounts
Hi Experts,
We are doing the Balance Carry-Forward this Year 2012 and we are having problems with the amount to be carry-over of AP/AR Subledgers for this year. We checked the C/F Balance for G/L and there are no problems.
When I go to tables KNC1 or LFC1, I see items for both years 2011 and 2012 with a Balance Carry-over value. So during my Balance-Carry Over calculation during debug, it gets the value in KNC1 or LFC1 for 2011 then subtracted with the value in KNC1 or LFC1 in 2012. Why is this happening? Supposedly the 2012 entry on KNC1 or LFC1 should not exist yet right?
Also the entry on 2012 C/F Balance should only be under the 2011 Posting as the Document Entry has the Posting Period 12 2011. Right now the Posted Entry is in C/F Balance 2011 and 2012 as well. Is this how the Balance C/F Posting works?
Please enlighten me on how SAP works on this one.
Thank you so much!Hi,
Why you need to do debugging for F.07?
If you have inconsistancy in your opening bal and closing balances, you can anyhow run the carryforward program again sequentially for 2010, 2011...for GL/AR/AP
Now check closing balance for FY 2011 and compare the same with opening bal of FY 2012.
Regards,
Srinu -
Leave Balance Carry forward problem
Hello experts,
Actually i found many threads which alredy posted but could not able to found solution for my scenario.
we are having PCRs and doing Time evaluation in negative time mangement for carry forwarding quota balance, and Balances are forwarding to next year properly.
But problem is, last year balance should be set by that remain amount and balance is transfered to next year.
e.g. if i have Entitilement as 53 and used 17 for the year 2010. now am doing time evaluation to transfer the remain balance that is 36 to next year, and its carry forwarding to 2011 is ok. Now i want that Entitlement 53 for 2010 will set to 17 also. So, the system will carry forward the balance as well as that balance is deducted from previous enttilement also, in short how much is transfered that much deducted from previous entitlement.
So, i need to change that PCR.
Note:This requirement is suggested because, there was a problem when we do leave encashment using infotype 0416, it will deduct the quota compansation amount from proper year with available quota.
Please help me..
-Jagdish
Edited by: Jagdish Rakholiya on Dec 28, 2011 11:55 AMJagadish,
in short how much is transfered that much deducted from previous entitlement.
it means you want to transfer the used leaves number to next year. is it?
its so confusing please elaborate simply.
regards,
mohammed -
Balance carry forward problem in Global company currency -USD (FS10)
Dear Experts,
We are facing the problem in balance carry forward since 2008 to 2011
We are maintaing two curriencies for one company code like 1.Loc.currency(SGD), 2.Global company currency(USD)
But system is carry forwarded 1.Loc.currency(SGD) correctly but problem is in Global company currency(USD)
System is not correctly forwarded Global company currency(USD) it is forwarding different amounts in USD
Like Global company currency(USD) 2008 carry forwarded amount : 45,890.64 (Account balance: 27,105.00-)
It shows Balance carried forward on: 2009 : 30,765.29- (Account balance : 45,867.87-)
It shows Balance carried forward on: 2010 : 32,814.91- (Account balance : 34,157.89-)
It shows Balance carried forward on: 2011: 124.75- (on 2010 Fiscal year system is picking only on March)
Pls help
Regards,
Hari PrasadDear Murali,
We are not using ECC-6 we are using 4.6B
Pls give the resolution based this 4.6B
Regards,
Hari -
Quantum Gateway Router Problems
Hello.
After installing my new quantum gateway router, I have had nothign but problems. The router will connect to the laptops and phones very reliably, but it never has a stable connection with either a ROKU 3 or Amazon Fire STick int he same room. I can watch the connection connect and disconnect over and over.
Range is not a problem, ans sometimes the connection will hold so long as the device is in use. But, if I come back the next morning it is anybody's guess whether my streaming devices will connect.
I have read many problems and complaints regarding this issue with this router. Any suggestions?im having the same problems man. I Cant even connect any device wirelessly to the new quantum router. I always get dns isnt resolving xbox server names for the x1. Plz someone tell us how to fix this.i tried basically EVERYTHING. port forwaring, static ip, changing the compatibility mode and everything but still no change. Is the router preset with a setting that restricts online connectivity? but it works only when its wired. Someone please help
-
Fios quantum gateway router problem
Hello, when I connect my coaxial cable and power adaptor to my old verizon mi424wr router, the internet works fine. But when I connect my coxial cable and the power adapter that came with the fios quantum gateway router, the internet doesn't work. On the router, the internet icon keeps blinking white for about a minute, then it just becomes a solid non-blinking red internet icon. Assisstance would be greatly appreciated.
Solved!
Go to Solution.Your problem may be that you didn't release your WAN IP address before switching routers. It's necessary to do so.
To release your IP address you could power off the new router, wait 2 hours, or overnight if that's more convenient, and then power the router back on.
Or to release the IP address more quickly, with the Actionec in place, follow the steps in this link:
http://forums.verizon.com/t5/FiOS-Internet/How-am-I-able-to-change-my-ip-address/m-p/703336#M47733
After releasing your WAN IP, wait about 10 minutes and then fire up the Quantum router. You should have a new WAN IP address and be connected back to the Internet. -
Mail.app forward problem
Hello,
i am experiencing a problem with mail.app
I have installed two email pop account which are working normally.
The problem is that. When trying to forward messages with ppictures or attachments (normal size) the messages stuck in outbox, the activity panel shows "done 100%" constantly but the messages is not being send. After a while you an option window to select other smtp server but the problem remains the same. If you try to send any message by "new mail" option then message is being send normally.
This is weird and annoying and i can not resolve it.
System has all the latest updates (10.6.2) and is a brand new iMac.
Please kindly advice.
Thank you for your attention.
Message was edited by: FreebulkersFreebulkers wrote:
Will this affect messages that i have for my accounts??
No
Will this erase them??
No
Will this action turn mail.app like starting for first time?
No
Should i backup anything??
If you have a backup, use it first. Otherwise the answer is that you should always have a backup
All you might lose is your account server/logins, any personal settings for the tool bar, color settings etc. It won't affect your messages. I've had to do this before and it's a typical method because the plist is the expected casualty point when something like this happens. The next time you run MAIL it will build a fresh plist and then you can make any specific changes that are needed. In terms of troubleshooting, it is one of the more risk free methods around.
If you want to be safe, simply move that file to the desktop long enough to test.
• If it doesn't help or if you think it makes something worse, trash the temporary replacement and then put the original back.
• If it fixes the issue, then you can trash it.
If you are at all reluctant, don't do it. -
GetRequestDispatcher/forward problem
Hi,
I have a problem with that code :
getRequestDispatcher(myJSP).forward(req,resp)
It execute very well, but my JSP desn't display... I'm sure the servlet and JSP codes are correct because it works fine in my local environment... it doesn't work only on the WAS server...
So, knowing that my SQL query take much time, could it be a timeOut problem ? on the WAS server or on the Appache Web server ?
Thanks
TeuFwhats in your local enviornment ?
Amlan -
Jsp forward problem, I think.....
I have a default.htm page that takes in a feild, EMP_NUM. Once the user
hits the Submit button, I run a select statement(select.jsp) to see if that
number exists. If it does then I forward the contents to correct.jsp, if the
number doesn't exist then I forward to failed.jsp.
Today is Tuesday, and last Friday I was working on this and everything
worked fine, in fact perfect. I came in this morning to do some more
testing, specifically catching errors in my try and catch, example - to make
sure they enter in a number, and after I type in a number and hit the submit
button, it trys to go to the next page, but displays nothing, the page is
blank. Where has before, when everything was working fine on Friday, my
correct.jsp page or my failed.jsp page would be displayed.
From Friday to Tuesday I had not made any changes to my files. The only
thing different, that I can think of, would be that on Friday I would have
stoppped weblogic and this morning I started weblogic again. This is why I
think this is a weblogic issue or syntax on my part. I have tried to restart
my computer, restart weblogic, and I even deleted the .java files that
weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
folder.
Below is my source code.
Please help!
Thanks, jl.
<% try {
<%@ include file = "db_conn.jsp"%>
<%
// A Statement object is what sends your SQL statement to the db
Statement stmt = conn.createStatement();
// Retrieve the user id number from the previous form.
int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
//SQL prepared statement
String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
EMP_NUM=?";
PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
psEMP_NUM.setInt(1, EMP_NUM);
ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
String NAME = "";
int CompanyKey = 0;
while (rsEMP_NUM.next()) {
NAME = rsEMP_NUM.getString("NAME");
CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
}// end of while
psEMP_NUM.clearParameters();
psEMP_NUM.close();
conn.close();
String sEMP_NUM = Integer.toString(EMP_NUM);
String sCompanyKey = Integer.toString(CompanyKey);
if (NAME.equals("")) {
request.setAttribute("EMP_NUM", sEMP_NUM);%>
<jsp:forward page="failed.jsp">
<% }// end of if
else {
request.setAttribute("NAME", NAME);
request.setAttribute("EMP_NUM", sEMP_NUM);
request.setAttribute("CompanyKey", sCompanyKey);%>
<jsp:forward page="creditcard.jsp">
<% }// end of else
}// end of try1
catch(Exception e) {
<% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
<font face="Arial" size="2" color="red"><center><strong>Please enter in a
EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
<%}// end of if
%>
</TD></TR></TABLE></DIV>
<font color="red">"<%=e.toString()%>"</font>
<%
}// end of catch1
%>
Sounds like you have some debugging to do. If you didn't reinstall WLS and it worked fine before,
then I doubt it is a WLS problem.
Is your page really blank? Try show source in your browser? I think you have some mismatched
<table> </table>. Try it in both IE and Netscape - one of them forgives you for mismatched table
tags.
Add some System.out.println() in your code to see what is being executed.
"james lorenzen" <[email protected]> wrote:
> I have a default.htm page that takes in a feild, EMP_NUM. Once the user
>hits the Submit button, I run a select statement(select.jsp) to see if that
>number exists. If it does then I forward the contents to correct.jsp, if the
>number doesn't exist then I forward to failed.jsp.
> Today is Tuesday, and last Friday I was working on this and everything
>worked fine, in fact perfect. I came in this morning to do some more
>testing, specifically catching errors in my try and catch, example - to make
>sure they enter in a number, and after I type in a number and hit the submit
>button, it trys to go to the next page, but displays nothing, the page is
>blank. Where has before, when everything was working fine on Friday, my
>correct.jsp page or my failed.jsp page would be displayed.
> From Friday to Tuesday I had not made any changes to my files. The only
>thing different, that I can think of, would be that on Friday I would have
>stoppped weblogic and this morning I started weblogic again. This is why I
>think this is a weblogic issue or syntax on my part. I have tried to restart
>my computer, restart weblogic, and I even deleted the .java files that
>weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
>folder.
>
>Below is my source code.
>Please help!
>Thanks, jl.
>
><% try {
> <%@ include file = "db_conn.jsp"%>
><%
> // A Statement object is what sends your SQL statement to the db
> Statement stmt = conn.createStatement();
>
> // Retrieve the user id number from the previous form.
> int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
>
> //SQL prepared statement
> String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
>EMP_NUM=?";
> PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
> psEMP_NUM.setInt(1, EMP_NUM);
>
> ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
>
> String NAME = "";
> int CompanyKey = 0;
> while (rsEMP_NUM.next()) {
> NAME = rsEMP_NUM.getString("NAME");
> CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
> }// end of while
>
> psEMP_NUM.clearParameters();
> psEMP_NUM.close();
> conn.close();
>
> String sEMP_NUM = Integer.toString(EMP_NUM);
> String sCompanyKey = Integer.toString(CompanyKey);
> if (NAME.equals("")) {
> request.setAttribute("EMP_NUM", sEMP_NUM);%>
> <jsp:forward page="failed.jsp">
><% }// end of if
> else {
> request.setAttribute("NAME", NAME);
> request.setAttribute("EMP_NUM", sEMP_NUM);
> request.setAttribute("CompanyKey", sCompanyKey);%>
> <jsp:forward page="creditcard.jsp">
><% }// end of else
>}// end of try1
>catch(Exception e) {
><% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
> <font face="Arial" size="2" color="red"><center><strong>Please enter in a
>EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
><%}// end of if
>%>
> </TD></TR></TABLE></DIV>
> <font color="red">"<%=e.toString()%>"</font>
><%
>}// end of catch1
>%>
>
>
Maybe you are looking for
-
During my IOS 8.3 update, my Iphone 5 went into recovery mode, and wont do anything else. It says to leave recovery mode, i need to restore my device, so i did and it says it can't restore it for some reason. What shall i do? (I havent even had the p
-
The email it is asking me to verify doesn't exist
I have an count under the email [email protected] , I want to change this to [email protected] because the .CO.UK version does not exist, therefore i can't verify the email for my account. Please help.
-
Audio is fine in Final Cut Pro but too low in Soundtrack Pro.
ok here goes! I'm using STP to clean up audio, road noise, fan noise, little buzz, and so on. I have a problem; the play back audio is low, so it makes it hard to hear to clean it. Has anyone else had this problem? I'm using a G4 17 power book, with
-
Invoking standard button functions manually
I'm working with a JFrame child window that operates on an open file. When the window closes, the file should be updated with the latest information that the user was editing. I have found that the "x" button generates the expected output, but closin
-
Exclude Sales Order line from ASCP
Hi, I have a model which is make at the factory. The same model can be used to purchase from outside. If it is purchased from outside, the Sales order line will be progressed to create a Purchase Order. If the purchase order is created then the deman