ISA Error NullPointerException
Hi Experts!
i am facing a big issue. I have built a custom application for ISA B2B and suddenly I am not able to log in anymore because i get the following error:
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details: java.lang.NullPointerException: null
Exception id: [001A643650EE0075000000320000183000044F54BEB6F030]
I haven't done anything differnet from the usual process of deployment via NWDI to the CRM DEV server.
Can anybody help? it is urgent!
HI Sateesh -
i am following the procedure, but when i try to create re build and deploy i get hte following errors:
java.lang.NullPointerException
at com.sap.tc.devconf.impl.DevelopmentComponentNode.resync(DevelopmentComponentNode.java:963)
at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction$1.syncSelectedDCs(DcCreateProjectAction.java:456)
at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction$1.execute(DcCreateProjectAction.java:237)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Can you help?
Similar Messages
-
Error: NullPointerException
HI All ,
Error : NullPointerException .
I have got this above error in the Reciever comm channel of JMS Adapter ,
Could anyone answer detailly .
Regards.
Syed Nayeem.Umm, this is what my code looks like. I tried it, but it doesn't work.
import model.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import javax.swing.*;
public class ButtonPanel extends JPanel implements View
private Prison prison;
private LeftInputPanel leftInput = new LeftInputPanel(prison);
private DaysPanel days;
private MonthsPanel months;
private YearsPanel years;
private CrimePanel crime;
private AllocateListener aListener = new AllocateListener();
public ButtonPanel(Prison prison)
this.prison = prison;
setup();
build();
public void setup()
public void build()
JButton button = new JButton("Allocate Cell");
Dimension size = new Dimension(240, 70);
button.setPreferredSize(size);
button.setMinimumSize(size);
button.setMaximumSize(size);
button.addActionListener(aListener);
add(button);
update();
public void update()
leftInput.update();
private class AllocateListener implements ActionListener
public void actionPerformed(ActionEvent e)
Criminal criminal = new Criminal(leftInput.name());
Period period = new Period(days.days(), months.months(), years.years()); //nullPointerException here
criminal.set(new Crime(crime.getCrime()));
prison.add(criminal);
}Edited by: karen.tao on Oct 24, 2009 6:11 AM -
Xrpcc tool error: NullPointerException
im trying Hello class example.
//interface claas defination is
import java.rmi.Remote;
import java.rmi.RemoteException;
import javax.xml.rpc.server.ServiceLifecycle;
public class HelloClass implements HelloInterface, ServerLifecycle{
public String mystring = "i am server";
public void init(Object context){
public String CallMe(String StringPassed){
return(mystring+StringPassed);
// interface class defination is
public interface HelloInterface extends Remote{
public String CallMe(String PassedString) throws RemoteException;
//config.xml file as
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service targetNamespace="http://sunreg.org/wsdl"
typeNamespace="http://sunreg.org/wsdl"
name="HelloService"
packageName="Hello">
<interface name="HelloInterface"
servantName="HelloClass"/>
</service>
</configuration>
on running xrpcc tool it is giving error
error:NullpointerException
any idea why it error is givingTo get more info, try using the -verbose and -Xprintstacktrace options
on xrpcc. Also, xrpcc is being deprecated, you should start using wscompile which if functionally equivalent to xrpcc. -
Assign Resources to all ISA Error
Hey guys... Since this is the most indescriptive error ive ever seen im gunna need some help. Just built the computer and only have a master harddrive, and videocard in there. The D-Bracket is reading the "Assign Resources to all ISA" error which doesnt seem to stop the computer from doing things, but i can hear it crunching away at something. If i let it sit it will eventually respond like 10min later at which point it continues to run incredibly slow. I have tried clearing the CMOS and it works, but does not solve the problem. The keyboard is the only device hooked up and it is nonUSB. I know the keyboard is good because it does repsond to keypresses like i said, just very very very slowly. Any ideas on what is causing this and what i can do to fix it?
Thanks
BTW
Athlon 64 3000+
K8N Neo Platinum
Corsair TwinX 3200
ATI x800XT
Western Digital 80gig 7200RPM (set as master)
No FloppyProblem Solved
Heres what the problem was for those of you that also dont understand cryptic messages. I had my HD hooked up as the only device on the cable set as Master. Apparently the motherboard doesnt like it set that way. To solve the problem (in this case) just set the jumper to Cable Select and everything will be fine. The drive is a Western Digital so it might just be localized to that drive. I saw in my searches for a solution that 2 people had the same problem but caused by their cd drive. So if you happen across this error, check your jumpers it seems to be the root of the problem from what ive gathered/experienced. -
ISA Framework: NullPointerException Error
Hi all,
When i try to configure the products in the Basket,
I am reaching a Screen with error saying NullPointerException.
After searching the SAP Service site, I found a SAP note 677977. This note solves the problem but temporaryly. But i need a permenant Solution to avoid this Strange Error.
Is anybody has found a permenant Solution for this issue????
Thanks
KamSanthosh,
SAP is using the WORK folder to a maximum capacity of around 8MB. When the level reaches, we are not very sure when this Null Pointer Exception error wil raise. But this error raises as expected. After applying the said note, I an not facing any problem again until WORK folder reaches around 8MB.
Thanks
Kam -
ISA Error by running an application in JDeveloper 10.1.3
Hi every body
when i run my web application in oc4j( embeded in jdeveloper 10.1.3) I see this error "Error Code: 502 Proxy Error. The ISA Server denied the specified Uniform Resource Locator (URL). (12202) "
what's wrong?
by thanks
JavanehI am also facing the same issue on my laptop. I searched for forum but no luck.
appreciate if anybody can throw some light on this. -
Inbound File Adapter Error - NullPointerException
Hi,
We are on XI 3.0. We have a scenario of input file via inbound file adpater to R/3 using proxies.
When activating the communication channel (file adapter), an error is raised in the adapter monitor. The error states, "Error: Module Exception 'com.sap.aii.af.mp.processor.ModuleProcessorException' found, cause: java.lang.NullPointerException".
Does anyone have any ideas on this error?
Thanks in advance.
Best Regards,
DooHi,
Can you check the communication channel - "Module" tab. A module processor has to be specified here. For the File Adapter the default value for the Module Processor should be "localejbs/CallSapAdapter" and the Type will be "Local Enterprise Bean".
Warm regards,
Venki. -
Java error : NullPointerException while system copy
Hi All,
system: windowsNT 2003 with SQL 2005
error while heterogeneous backup of system (CRM system ABAP + Java)
SAPinit_dev.log
SEVERE: Error during export of EP_ATTR_HEADERS
Sep 29, 2010 7:22:32 PM com.sap.inst.jload.Jload logStackTrace
SEVERE: java.lang.NullPointerException
at com.sap.sql.jdbc.mss.MssSQLExceptionAnalyzer.getCategory(MssSQLExceptionAnalyzer.java:112)
at com.sap.sql.services.core.CoreServices.isDuplicateKeyException(CoreServices.java:133)
at com.sap.sql.jdbc.direct.DirectPreparedStatement.processSQLException(DirectPreparedStatement.java:1189)
at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeQuery(DirectPreparedStatement.java:285)
at com.sap.sql.jdbc.common.CommonPreparedStatement.executeQuery(CommonPreparedStatement.java:185)
at com.sap.inst.jload.db.DBTable.unload(DBTable.java:192)
at com.sap.inst.jload.Jload.dbExport(Jload.java:179)
at com.sap.inst.jload.Jload.executeJob(Jload.java:395)
at com.sap.inst.jload.Jload.main(Jload.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
Reply soon
jattxxxHi Jattxxx,
Which JDBC driver are you using?
There was a similiar problem when using the Microsoft SQL Server 2005 Driver for JDBC version 1.1 or an older version 1.2. Therefore, if you're using the MSSQL 2005 JDBC driver, I would recommend to replace it by a newer one of version 1.2 (*).
Best regards,
Guenther
The file "Microsoft SQL Server 2005 Driver for JDBC version 1.2" can be downloaded from:
http://service.sap.com/swcenter-3pmain
-> MS SQL Server -> JDBC Drivers and Tools. -
Internal Server Error (NullPointerException) when invoking a Web Service
I'm using SOA suite 10.1.3.3 (incl the latest patch set) on Windows XP.
I've created 3 web services using the wizard interface out of 3 existing WSDL files. The Java code inside the web services is just dummy code.
I'm testing the web services using the Test Web Service functionality in Oracle Enterprise Manager's Application Server Control.
The moment I fill in the data and press invoke, I get back the following fault:
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Internal Server Error (Caught exception while handling request: java.lang.NullPointerException)</faultstring>
</env:Fault>
</env:Body>
I know that control never reaches inside the services themselves.
I've even followed the online demo that shows users how to create, deploy and test a Web Service in JDeveloper to make sure that I wasn't doing anything silly.
What could be wrong? Please help.
Thanks in advance.Seems to be a problem in serialization??? What do I do?
When I invoke the web service from a web proxy client, this is the stack trace:
QueryGDSAsiaPackage.SearchAirline_fault: java.lang.NullPointerException
at QueryGDSAsiaPackage.runtime.SearchAirline_fault__LiteralSerializer.doDeserialize(SearchAirline_fault__LiteralSerializer.java:71)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at QueryGDSAsiaPackage.runtime.QueryGDS_Asia_PortType_searchAirline_Fault_SOAPSerializer.deserializeDetail(QueryGDS_Asia_PortType_searchAirline_Fault_SOAPSerializer.java:56)
at oracle.j2ee.ws.common.encoding.SOAPFaultInfoSerializer.doDeserializeSOAP11(SOAPFaultInfoSerializer.java:132)
at oracle.j2ee.ws.common.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFaultInfoSerializer.java:94)
at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:180)
at oracle.j2ee.ws.common.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:147)
at oracleesb.QueryGDA_Asia_proxy.runtime.QueryGDS_AsiaSOAP_Stub._readBodyFaultElement(QueryGDS_AsiaSOAP_Stub.java:346)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:321)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at oracleesb.QueryGDA_Asia_proxy.runtime.QueryGDS_AsiaSOAP_Stub.searchAirline(QueryGDS_AsiaSOAP_Stub.java:155)
at QueryGDSAsiaPackage.QueryGDS_AsiaSOAPClient.searchAirline(QueryGDS_AsiaSOAPClient.java:43)
at QueryGDSAsiaPackage.QueryGDS_AsiaSOAPClient.main(QueryGDS_AsiaSOAPClient.java:30)
Process exited with exit code 0. -
Build error = NullPointerException - RaveWebActionProvider.invokeAction
Whoa,... can't build my simple project in Studio Creator 2 Update 1 without getting this exception shown below.
Environment is:
Studio Creator 2 Update 1 (build 060823)
IDE Version: IDE/1 spec=5.9.1.3 impl=060823
Windows XP v5.1
Java 1.5.0_06
Could use some advice...
Thank you, Roger
*********** Exception occurred ************ at 5:40 PM on Sep 11, 2006
java.lang.NullPointerException
at com.sun.rave.jsf.project.ext.RaveWebActionProvider.invokeAction(RaveWebActionProvider.java:212)
at org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(MainProjectAction.java:90)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)David,
I've got it fixed. Here's what happened...
1) I uninstalled JSC and removed 'C:\Program Files\Sun\..., 'C:\Documents and Settings\<my_login_name>\.creator...', and 'C:\Documents and Settings\<my_login_name>\My documents\Creator\...
2) Downloaded and installed the Sun Download Manager and used it to download a new copy of the Studio Creator package. This was to make sure i had good JSC code to start with.
3) Several reinstalls failed after this as well. I was back to the "new project" issue described before. I found that i was clicking through an install error message that was telling me to rename 'C:\windows\system\productregistry'. This was seen as part of a previous install and was causing any subsequent installs to fail.
4) I cleaned up all the directories again, renamed 'C:\windows\system32\productregistry' and found the next install to be successful. I created a new test project and the build worked without error, which was my original problem.
Thank you very much for taking the time to help me David.
Sincerely, Roger -
'Assign resources to all ISA' Error (Neo2 Plat.)
finally put all my new components together on my new MSI Neo2 Platinum board. however, its locking up shortly after boot. Using the MSI D-Bracket, it's telling me its locking on the 'Assign resources to ISA' step. my component are below, but the only things i have plugged in or powered on are the SATA HD's, RAM, Vid Card, SB Audigy2.
amd athlon64 3000+
512MB Kingston HyperX 3200
12x8x16 Plextor DVDRW
72x Kenwood CDROM
40x12 Plextor CDRW
2x Western Digital 80GB HD (SATA)
Albatron geforce4 4600
SB Audigy2
any ideas as to what would be causing this? ive owned several MSI boards and never seen this error.got it to get past that stage, seems it was a cdrom. however, ive run into more problems with this setup than anything ive ever worked on. still working on it now. glad i didnt take apart this computer yet...
-
last night i was using my ipodtouch and all of a sudden it starteed to have a glitch then it said i need to connect it to itunes. so in the morning i did. when i plugged it in it said i needed to restore my ipod in order to use and get my data back from itunes when i hit retore it loaded then it said extrcting data after a few minutes a error came up and said it couldnt restore. i tried it a few more times but the same error kept coming up. now i can not use my ipod what do i do?
Seee:
iPhone Error 3194 - How to Fix iTunes Error 3194?
Fix Error 3194 from iTunes during iPhone restore
iTunes: Specific update-and-restore error messages and advanced troubleshooting -
Array Running Error NullPointerException
I m trying to create a class that will have an overload constructor which will passing a parameter of an Object array.....
public class Standings
private Team [] footBall;
/* public Standings()
footBall = footBall;
public Standings( Team [] footBallArray )
for(int i = 0; i < footBallArray.length; i++)
footBall[i] = footBallArray;
Then test it wit a prog which will create an object array then use the overload constructor...Team [] array = new Team[5];
array[0] = new Team("Alabama", 6, 6);
array[1] = new Team("Georgia", 7, 4);
array[2] = new Team("Tennessee", 8, 3);
array[3] = new Team("Vanderbilt", 4, 8);
array[4] = new Team("Mississippi", 1, 6);
// now instantiate the team calling the overloaded constructor
Standings temp = new Standings(array);
but it alway give me a NullPointerException... cuold some1 show me why... ThankxObviously the footBall[] is not instantiated
public Standings( Team [] footBallArray )
for(int i = 0; i < footBallArray.length; i++)
//------>footBall[i] = footBallArray;
modify your code add this statement be for the for looppublic Standings( Team [] footBallArray )
this.footBall = footBallArray;
for(int i = 0; i < footBallArray.length; i++)
OR you could try add these code before and inside the for loop public Standings( Team [] footBallArray )
this.footBall = new Team[footBallArray.length] //before for loop
for(int i = 0; i < footBallArray.length; i++) {
this.footBall[i] = new Team(); // inside the for loop but before your statement -
Strange error (nullPointerException)
i have a strange problem!
imports...
public class one
public one() {}
public Vector[] jpt()
Vector[] r = new Vector[2];
r[0] = new Vector();
r[0].addElement(new String("aaaa"));
r[0].addElement(new String("bbbb"));
r[1] = new Vector();
r[1].addElement(new String("cccc"));
return r;
public class two
public two()
one o = new one();
Vector[] r;
r = o.jpt(); //this give nullPointerException
if I change public Vector[] jpt() to public static Vector[] jpt() then the code works fine
and also, if I put the method jpt() into class two and access it like this then the code works fine
public class two
public two()
Vector[] r;
r = jpt(); //this give nullPointerException
public Vector[] jpt()
Vector[] r = new Vector[2];
r[0] = new Vector();
r[0].addElement(new String("aaaa"));
r[0].addElement(new String("bbbb"));
r[1] = new Vector();
r[1].addElement(new String("cccc"));
return r;
does anybody know whats happening??? :(Please use [ code ] tags and stick with the Java naming conventions.
If "static" makes the NPE go away, it means that despite of what you claim what the code is, o is uninitialized. -
Runtime Error - NullPointerException
I am not quite sure where to start
but I will do my best to not have it turn into ramble.
First I want to check for an "old" open DB connection
and close it if there is one open
Now where my error occurs:
Then in the while (connected == false)
loop, I delete all of the data out of the tables
because I do not want stale data appearing on the GUI.
For some reason this is where is throws my error.
If I take them out it runs fine.
The real strange deal is I have another program
set up to read from a processor the same way
and that one throws no errors at all.
So I am thinking (okay hoping) its just something small I am missing
Thank you very much for all of your time
January
import java.net.*;
import java.sql.*;
import java.util.*;
import java.io.*;
public class Example{
//SOMEWHWER AT THE BEGINNING OF THE CLASS
static PreparedStatement psDELtblRtFields;
static PreparedStatement psVIP_Connection_Down;
static PreparedStatement psDELETE_tblRtFieldsMsgBlkHeaders;
static PreparedStatement psDELETE_tblRtFieldsType1;
public static void processing_loop() {
//constants read from a config file
ServerSocket echoServer = null;
Socket clientSocket = null;
String IP_ADDRESS = VIP_IP_ADDRESS; // VIP computer
int SOCKET_NUMBER = VIP_DATA_SOCKET_NUMBER; //constants read from a config file
boolean connected = false; //variable to help robustness of connection
boolean socket_error = false;
// Writing to MySql Database declarations
java.sql.Connection conn = null;
String DELETE_tblRtFields = "UPDATE tblRtFields SET gps_sow=0, " +
"gps_week=0, intVipMode=0,DblOutputPower=0, DblFrequency=0, intVipBit=0, intTxFail=1," +
"intMonFail=1, intVote_mismatches=0, intVip_voter_fault=1, intAti_error_count=0," +
"intAti_fault=1, intMystery_msg_count=0, intMystery_msg_fault=1, "+
"intMissed_msg_count=0, intVip_mer_fault=1, intVip_no_xmit_fault=1, " +
"strTx_status=0, intTx_outrange=0, intVip_Tx_power_fault=1, intVip_Tx_power_offset=0, "+
"intMon_bit_results=1, intTx_bit_results=1, dblCurrent_Temp=0, intTemp_color=1, dblMon_power=0, " +
"strMon_status=0 WHERE ID = 1";
//DONE 12-17-04
String DELETE_tblRtFieldsType1 = " UPDATE tblRtFields SET gps_sow = 0, " + //DONE 12-17-04
"gps_week=0, intModz=0, intNum_of_meas=0, intMeas_type=0 "+
"WHERE ID=1";
//5 total entries
String DELETE_tblRtFieldsMsgBlkHeaders = "UPDATE tblRtFields SET gps_sow=0, "+ //DONE 12-17-04
"gps_week=0, strStation_id=0 "+
"WHERE ID=1";
// 3 total entries
String VIP_Connection_Down = "UPDATE tblIcs SET connection_up=0 WHERE connection_id=19";
// main processing starts here
try {
// register Database driver
Class.forName(SQL_DRV);
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
} finally {
try {
conn.close();
} catch
(Exception e) {}
} // end finally
while ( true ) { // this is the forever loop
if ( connected == true ) { //old connection - close it
try{
clientSocket.close();
connected = false;
System.out.println("Closing socket");
} catch (IOException ey){
System.out.println(ey);
continue;
}//end try
} //end if connected == true
//IT THROWS THE ERROR HERE, IF I TAKE ALL OF THE STUFF OUT
//(i.e. all of the prepared statements in that 2nd try block)
//THEN IT WORKS FINE.
while ( connected == false ) {
try{
try{
psDELtblRtFields.executeQuery();
psDELETE_tblRtFieldsType1.executeQuery();
psDELETE_tblRtFieldsMsgBlkHeaders.executeQuery();
psVIP_Connection_Down.executeQuery();
catch(SQLException ex){
System.err.println("SQLException for Blanking tblRtFields: " + ex.getMessage());
ex.printStackTrace();
// Connect to socket and listen to it
//CONSTANTS read from a config file
clientSocket = new Socket(IP_ADDRESS,SOCKET_NUMBER);
connected = true;
} catch (IOException e) {
System.out.println("Exception caught at line 2211 " + e);
System.out.println("Attempting to make new connection");
try{
Thread.currentThread().sleep(2000);
} catch (InterruptedException es){
//System.out.println(es);
if ( killFile.exists() ) {
System.out.println("VDL killed");
//WrapperManager.stop(0);
System.exit(0);
//continue;
}//end try socket connection
} //end while connected == false
while ( connected == true ) {
// the following code is simply to detect when the socket goes down
if ( socket_error == true ) {
socket_error = false; // initialize for next time
//break out of this loop
break;
try{
conn = DriverManager.getConnection(SQL_URL, USERNAME, PASSWORD);
//SQL statements
psVIP_Connection_Down = conn.prepareStatement(VIP_Connection_Down); //DONE 10-21-04
//RtFields
psDELtblRtFields = conn.prepareStatement(DELETE_tblRtFields); //DONE 10-21-04
psDELETE_tblRtFieldsType1 = conn.prepareStatement(DELETE_tblRtFieldsType1);
psDELETE_tblRtFieldsMsgBlkHeaders = conn.prepareStatement(DELETE_tblRtFieldsMsgBlkHeaders);
try{
// make input stream
is = new BufferedReader
(new InputStreamReader(clientSocket.getInputStream()));
try{ //get timeout seconds from maintConfigData file
clientSocket.setSoTimeout(SOCKET_TIMEOUT); //If no data is received from the socket in x amt of seconds...
catch (SocketException se){
System.err.println ("Unable to set socket option SO_TIMEOUT");
//OKAY ALL THE CRAP FROM HERE DOWN TO END OF LOOP IS JUST STUFF.............
// As long as we receive data, keep reading
while (true) {
try{
//Code here to read from socket and store data
} catch (RuntimeException ex){
System.out.println("RuntimeException ex: " + ex);
socket_error = true;
ex.printStackTrace();
break;
} // end while True
} catch (IOException e) {
System.out.println(e);
//e.printStackTrace();
break;
}//end try make input stream
}catch (SQLException ex){
System.err.println(
"SQLException: 2175" + ex.getMessage());
} //end while connected == true
} //end while true Main Loop
}//end processing_loop()
public static void main(String args[]){
Example ex = new Example();
ex.processing_loop();
}The null pointer exception should be providing you with a stack trace. That tells you the exact line that the problem is on.
Note also that your code is doing to much. You should have code (a class) that does the database stuff all by itself. And then other code that does the socket stuff (a class).
You are also catching exceptions and then continuing down the same path that would have happened if the exception had not occurred. That is problematic.
Maybe you are looking for
-
Can I install a program on an External Hard Drive?
I have an 500 GB external hard drive that I attach to my MBP to store movies and my aperture picture libraries. When I first got it, I created three Mac OS Extended (journaled) partitions, one for movies, one for pictures and the other one for "extra
-
Headphones versus speakers on a Mac Mini with Mac OSX 10.4.11
I just purchased a pair of headphones for my Mac Mini. I plugged the headphones into the headphone jack on the back of my Mac Mini. I pressed the Mute button to use the headphones and clicked on a music video but no sound came through the headphones.
-
Why do I have to login twice after sleep mode?
Until recently I have been able to login one time with a password to get to my desktop. Now I have to login twice and I have no idea why. I am running Yosemite, whatever the newest version is. I'm not too tech savvy, but have checked every setting I
-
Having troble to open my iTunes, all I get on my screen is half of it is black. I want to know if I delete iTunes after i have saved my playlits can I download iTunes agin and add my playlist, Thanks for your help, Upthefloor24
-
Make headphones default device for all sounds
HP Pavilion p7-1240 Desktop PC Running Windows 7 I just got this computer within the last month. Ever since I got it I've been having trouble with my sound. I will be playing a game or watching a video and the song randomly routes from my headphones