Got NullPointerException we I try to run the attachment example of Axis1.4.
Hi,
Enviroment:
OS: Ubuntu 7.04.
Server: Apache Tomcat6.
IDE: Eclipse3.2 + MyEclipse5.01
Axis1.4.
I have been trying to run the attachment example which locate ../samples.attachments.
I composed program arguments as below according to README file which is included in this sample.
java EchoAttachment
-hlocalhost
-lhttp://localhost:8080/axis/services/urn:EchoAttachmentsService
-saxis/servlet/AxisServlet
-p8080 /home/hut/wanglinghua.java
But these exceptions were printed on the console:
- Exception:
java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getInputStream(DataHandler.java:222)
at javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:658)
at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:115)
at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:60)
at org.apache.axis.attachments.AttachmentsImpl.getContentLength(AttachmentsImpl.java:438)
at org.apache.axis.Message.getContentLength(Message.java:512)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:373)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
- Exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getContent(DataHandler.java:501)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1055)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:493)
at org.apache.axis.Message.writeTo(Message.java:545)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
{http://xml.apache.org/axis/}hostname:hutwang
java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:512)
at org.apache.axis.Message.writeTo(Message.java:545)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
Caused by: java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getContent(DataHandler.java:501)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1055)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:493)
... 13 more
Received problem response from serverReceived problem response from server
AxisFault
faultCode: {http://xml.apache.org/axis/}
faultSubcode:
faultString: Received problem response from server
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Received problem response from server
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:497)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
{http://xml.apache.org/axis/}hostname:hutwang
Received problem response from server
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:497)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
Here, the required jar - activation.jar and mail.jar have been placed into eclipse build path.
Could anyone shed some light on this?
Thanks,
-Hut
Edited by: HutWang on Sep 24, 2007 2:25 AM
Edited by: HutWang on Sep 24, 2007 2:27 AM
Edited by: HutWang on Sep 24, 2007 2:29 AM
This is a dedicated forum for Sun WebServer. You may post your question in Tomcat. If you use our WebServer7 for your deployment, you may bring the case here.
Similar Messages
-
I am trying to reinstall Windows (would not launch). I removed the partition and started over. I downloaded the support files and Windows 7 iso file to a USB drive. However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode." I was successful before, what am I doing wrong this time?
Try a restart.
If that doesn't fix the problem, shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application unistaller. For each disable/delete, you will need to restart if you don't do them all at once.
Safe Mode
Safe Mode - About
General information.
Isolating issues in Mac OS X
Troubleshooting Permission Issues
Step by Step to Fix Your Mac -
Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. What shall I do?
Alauda_positos I would recommend reviewing your installation log files to determine the exact directory which the installer is unable to access. You can find details on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html. You are welcome to post any specific errors discovered to this discussion.
For information on how to adjust file permissions please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html. -
I have Geo Asian TV App on my IPad which was working fine before loading ios6. Now if try to run the video in this app, it says adobe reader or html5 required. Can you help
It may have used the YouTube app that is no longer included in iOS. Try downloading the YouTube app in the App Store and see if it works.
-
I try to run the CC Products in a new computer (the third one: one of the former two was stolen) but i can't: when it asks me to retry or close session on the others, I click on 'continue' but nothing happens. What can I do? Thank you for any help about it.
Thank you kglad, but one of the other two computers has been stolen from
me, I can't sign out on that one. Is there another way to solve the problem?
2015-04-12 16:47 GMT-03:00 kglad <[email protected]>:
I try to run the CC Products in a new computer (the third one: one of
the former two was stolen) but i can't created by kglad
<https://forums.adobe.com/people/kglad> in *Creative Cloud Download &
Install* - View the full discussion
<https://forums.adobe.com/message/7431492#7431492> -
I would appreciate if someone can explanation my long list of questions regarding
the deployment of EJB in cluster environment.
I can't run the cluster EJB example( Teller/Account) in a cluster(contains two
server2). I always get
java.rmi.RemoteException: Unable to
resolve examples.cluster.ejb.Account
Home. Resolved: 'examples.cluster.ejb'
Unresolved:'AccountHome'
Following is my setup:
Machine A: exampleServer:7001 (admin server)
Machine A: testServer1:8001 (Managed server)
Machine B: testServer1_B:8001(Managed server)
MyCluster : testServer1, testServer1_B
Test Client:
java examples.cluster.ejb.Client "t3://Machine A:8001"
======================
Q1: Should I use 8001 or 7001 as cluster port number?
Q2: What will happen when we click "apply" after select/unselect the server in
the "target", "server" tab?
Q3: And what will happen if we click deploy/undeploy check box in "configuration"
tab of EJB item?
Q4: I check the JNDI tree from all above three servers can't find out JNDI tree
doesn't reflect the change I did in Q2 or Q3.
Q5: What is the right way to deploy EJB components, should we select both cluster
and server in the "target" tab?
Q6: I got this message from one of the server when I try to undeploy/deploy ejb
object.
"examples.cluster.ejb.TellerHome_EO in the jndi tree is non clusterable
and you have tried to bind more
once? How could I make it clusterable?
Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI name in use"
from the server.
How could I fix it.
Thanks
First I can tell you that the ports have to be the same, be on the the
same network , i.e. Telnet into the other m/c. Next which you probably
have done is the properties files. Per-cluster ...
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 6/7/01, 6:59:48 AM, "James Hsu" <[email protected]> wrote regarding
Can't run the cluster example:
> I would appreciate if someone can explanation my long list of
questions regarding
> the deployment of EJB in cluster environment.
> I can't run the cluster EJB example( Teller/Account) in a
cluster(contains two
> server2). I always get
> java.rmi.RemoteException: Unable to
> resolve examples.cluster.ejb.Account
> Home. Resolved: 'examples.cluster.ejb'
> Unresolved:'AccountHome'
> Following is my setup:
> Machine A: exampleServer:7001 (admin server)
> Machine A: testServer1:8001 (Managed server)
> Machine B: testServer1_B:8001(Managed server)
> MyCluster : testServer1, testServer1_B
> Test Client:
> java examples.cluster.ejb.Client "t3://Machine A:8001"
> ======================
> Q1: Should I use 8001 or 7001 as cluster port number?
> Q2: What will happen when we click "apply" after select/unselect the
server in
> the "target", "server" tab?
> Q3: And what will happen if we click deploy/undeploy check box in
"configuration"
> tab of EJB item?
> Q4: I check the JNDI tree from all above three servers can't find out
JNDI tree
> doesn't reflect the change I did in Q2 or Q3.
> Q5: What is the right way to deploy EJB components, should we select
both cluster
> and server in the "target" tab?
> Q6: I got this message from one of the server when I try to
undeploy/deploy ejb
> object.
> "examples.cluster.ejb.TellerHome_EO in the jndi tree is non
clusterable
> and you have tried to bind more
> once? How could I make it clusterable?
> Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI
name in use"
> from the server.
> How could I fix it.
> Thanks
[att1.html]
-
Am getting the following error while running the servlet example
Hi,
am getting the following error while running the servlet example
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
edu.dao.StudentDao.insertStudent(StudentDao.java:18)
edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
Thanks
//sreekanthHi,
the following code i have written in StudentDao
package edu.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.apache.commons.dbutils.DbUtils;
import edu.model.Student;
import edu.util.DBUtil;
public class StudentDao {
public void insertStudent(Student student) {
String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
Connection connection = DBUtil.getConnection();
PreparedStatement preparedStatement = null;
try {
preparedStatement = connection.prepareStatement(stuQuery);
preparedStatement.setString(1,student.getStudentNo());
preparedStatement.setString(2, student.getStudentName());
preparedStatement.executeUpdate();
} catch(SQLException e){
System.out.println("..Sql exception......");
}finally {
DbUtils.closeQuietly(connection,preparedStatement,null);
} -
Help - running the Persistence Example
Hi All,
I am running on NW2004s SPS10
Please somebody has a Persistence example?? I can't run the SAP examples on my PDA (Dell AXIM X51v +Windows Mobile 2005) i found this information in the SAP Note 717510
<i>MDK: Links to MI client home page <b>are not working</b> in some example programs
Application is working fine but for the ME Home link for 3 MDK applications: MDK_persistence_query_sortJSP, MDK_persistence_queryJSP and MDK_persistence_simpleJSP.
( Changed at 30.04.2007 )</i>
I would like to run the MDK_persistence_simpleJSP
There is another Persistence example? Can somebody give me a link to download it. I want to learn how to use the persistence api, but without any running example is very difficult to test the code.
Best Regards,
Erick IlarrazaHi all! Thank a lot for your replies.
I run the MDK_PERSISTENCE_QUERYJSP in the Windows XP SAP Mobile Client, it runs Perfect!
But when i try to run it on my PDA it give me this error:
Error: 500
Location: /MDK_PERSISTENCE_QUERYJSP/jsp/menu.jsp Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format: /MI/webapps/MDK_PERSISTENCE_QUERYJSP/WEB-INF/lib/MDK_persistence_queryJSP.jar(persistenceexample2/PersistenceExample.class), wrong version: 48, expected 45
/MI/work/localhost_8080%2FMDK_PERSISTENCE_QUERYJSP/_0002fjsp_0002fmenu_0002ejspmenu_jsp_0.java:15: Class persistenceexample2.PersistenceExample not found in import.
import persistenceexample2.PersistenceExample;
^
2 errors
at org.apache.jasper.compiler.Compiler.compile()
at org.apache.jasper.servlet.JspServlet.doLoadJSP()
at org.apache.jasper.servlet.JasperLoader12.loadJSP()
at org.apache.jasper.servlet.JspServlet.loadJSP()
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary()
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service()
at org.apache.jasper.servlet.JspServlet.serviceJspFile()
at org.apache.jasper.servlet.JspServlet.service()
at javax.servlet.http.HttpServlet.service()
at org.apache.tomcat.core.ServletWrapper.doService()
at org.apache.tomcat.core.Handler.service()
at org.apache.tomcat.core.ServletWrapper.service()
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward()
at org.apache.tomcat.facade.RequestDispatcherImpl.forward()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
at javax.servlet.http.HttpServlet.service()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
at javax.servlet.http.HttpServlet.service()
at org.apache.tomcat.core.ServletWrapper.doService()
at org.apache.tomcat.core.Handler.service()
at org.apache.tomcat.core.ServletWrapper.service()
at org.apache.tomcat.core.ContextManager.internalService()
at org.apache.tomcat.core.ContextManager.service()
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
at org.apache.tomcat.service.TcpWorkerThread.runIt()
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
at java.lang.Thread.run()
But this has no sense!! since both Windows XP MI Client and PDA MI CLient are at the same version. So It run in my Desktop but not in my PDA.
I saw the menu.jsp file
They used the PersistenceExample class in two places:
At the beginning of the JSP: <b><%@ page import="persistenceexample2.PersistenceExample" %></b>
And here:
String value = dataBean.getTableContent(i, j);
if (i > 1) {
<b>value = PersistenceExample.encodeForHtml(value);</b>
if (value.trim().length() < 1){
value = " ";
From a point of view of Java, everything appear to be "OK"
The other error is about a "version" should i configured the application to Version 45 in the nwa when i deploy the application?
Best Regards,
Erick Ilarraza -
Running the heapTracker example
Hi there
I am trying to run the heapTracker example that is in the demo/jvmti directory, and I am having problems with it. When I try to run it with what it says in the readme file (java -Xbootclasspath/a:heapTracker.jar), I get the following error message:
ERROR: JNI: Cannot find heapTracker with FindClass
It seems like a small problem, but it is making me go crazy! Has anyone else ever encountered this before?
Cheers
SajidHi
Yeah, I managed to get it to work� I move the jar file into the same directory as the dll�s�seems a bit strange, but it worked.
A problem I am going to try and make some changes to the heaptracker, but I can not get it to compile, the errors I have listed below. It looks like I am missing a library or something, but I am not sure which. Has anyone else ever encountered a problem like this?
error LNK2019: unresolved external symbol fatalerror referenced in function _checkJvmtiError heapTracker.obj
error LNK2019: unresolved external symbol javacrw_demo@76 referenced in function _cbClassFileLoadHook@40 heapTracker.obj
error LNK2019: unresolved external symbol javacrw_demo_classname@12 referenced in function _cbClassFileLoadHook@40 heapTracker.obj
error LNK2019: unresolved external symbol stdoutmessage referenced in function parseagent_options heapTracker.obj
error LNK2019: unresolved external symbol gettoken referenced in function parseagent_options heapTracker.obj
Any help would be very much appreciated.
Thank You
Sajid -
In running the datalgr example, I get the error NIDAQ32.dll cannot start.... then program exits. Version of NI DAQ is 6.9.2, using MS C++.
Since this is a DAQ question more than a Measurement Studio for VC++ question, I'd recommend you repost it to the DAQ forum.
Cheers,
Azucena -
Help Running The SpeakHere Example
Hi,
I'm a newbie to iphone development coming from world of windows, so apologies in advance if it's a dumb question. I'm trying to run the SpeakHere example but so far unable to do so. The program compiles and launches, but freezes when I click 'record'. I tried to debug, and it seems to crash at:
recorder->StartRecord(CFSTR("recordedFile.caf"));
At least it doesn't go past this line (there's no error). So far I checked that audio input works in another app (garage band), gave the speakhere's sandbox full permissions, made sure I have the latest version of the os and sdk, and now not too sure what to do. Any help greatly appriciated.Problem Solved:
After discovering where to look for errors I found that the error was:
Error loading /Library/QuickTime/DivX Decoder.component...
The solution was to remove the decoder and encoder from the /Library/QuickTime folder. -
Why is the hour display set to 19 when I run the attached VI
Why is the hour display set to 19 when I run the attached VI?
Thank you.
Solved!
Go to Solution.
Attachments:
Untitled 1.vi 10 KBAre you in US Eastern Time? This looks like an offset due to time zone (EST is -5 hours). Setting the UTC constant to TRUE will fix that.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
I'm running Snow Leopard v 10.6 on a Macbook 4,1. I've got a 500 GB HD and 4GB of Ram. While trying to run the software update (to get me to 10.6.8, I think?) I keep getting an error message around 600 MB that says it's unable to be saved because the file might be corrupt and that it will try again when the software update is ran next time. Why am I getting this message? Is there a way to get the update (so I can eventually get to Lion), without going through the software update screen?
I'm going crazy with this. I've tried 4 times now and still keep getting the same message.Try downloading the stand alone installer here:
http://support.apple.com/kb/DL1399
In Safari Preferences, General tab, set "Save downloaded files to: select destop, if it is not in thed rop down select other, then selcet Desktop from the left sidebar. After the download completes click on the installer package on your desktop and follow the prompts.
Also if possible use an ethernet conection as it is less prone to interference, thus less prone to corruption, and usually faster.
Hope this helps -
I have got Japplet class i try to run it as application
i have got Japplet Class Which works fine with appletviwer and browser
but when i try to run as an aplication it give me these error
ican't call getCodeBase() on an application - it doesn't have an AppletContext But what else can i use instead of that:
My code
public class ChessPlayer extends JApplet{
mycanvas board;
init(){
// this refer to gif image which have been drawn in Canvas
board = new board (this)
public static void main(String[] args) {
ChessPlayer applet = new ChessPlayer();
JFrame frame = new JFrame("Chess Game");
//#frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
frame.getContentPane().add(applet);
frame.setSize(500, 200);
applet.init();
applet.start();
frame.setVisible(true);
class Board extends Canvas
{controler = new MediaTracker (useapplet);
pieces [1] = useapplet.getImage (useapplet.getDocumentBase() , "images/Flower
thank u in advanceJust use;-
ImageIcon icon = new ImageIcon("ChessPieceImage.jpg");
// with all images in the same folder -
Error 1073807331 when trying to Run the "servo" example in Labview.
Error -1073807331 occurred at Property Node (arg 2) in VISA Configure Serial Port (Instr).vi->LabVIEW Interface for Arduino.lvlib:Init.vi->LabVIEW Interface for Arduino.lvlib:Arduino Servo.vi
So, I can connect to the Arduino Mega 2560 in MAX and also in VISA, but when I try to run this example, I get the above error. with the explanation "The specified attribute is not defined or supported by the referenced resource."
the ONLY error i can see in VISA is this :
under Configuration/View attributes- "Interrupt in pipe status | VI_ATTR_USB_INTR_IN_STATUS | Invalid Property Value"
this is in red., all other text is in black.
Under "Input/Output" I can write to the board "*IDN?\n" and get a return of 6bytes which it appears happy with.
Query button appears happy as well.
as does "Read"
the "read status byte" button gives me "
Read STB Operation
Error
VISA: (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state)."
I am at a loss as to what to do about this as I cannot see a way to change this value.
Any help is greatly appreciated.
thanks
Jason LeeOK, well I know how to connect the arduino to my PC as well, its simple.
I have been playing around with the mega2560 for over a year, so it's not that.
I can connect to and talk to the 2560 from the arduino IDE, but not LabView. I did see both TX and RX activity tonight, and thought, "yay! its finally stopped being retarded", but as soon as I hit run, it fell back to the old"cannot find arduino"
the reason I was using VISA was because I couldn't get any joy from the serial/USB method.
If I somehow mange to let the magic smoke out of this, I doubt I'd be very upset bout it.
anyway, any other ideas?
Cheers
Jason
Maybe you are looking for
-
No computer will recognize iphone... LONG
Ok here we go I will describe what im experiencing as best as I can I bought an I phone 2g from ebay, auction stated iphone no longer charged, simple fix. got the phone sure as S*&^ it wouldnt, unless, I connected it to my ipod connector in my truck,
-
Is it possible to create a Solaris DVD?
Does anyone know if it's possible to create a Solaris 9 DVD from the installation cds? I find it rather impossible, I'm just wondering... Maybe a live Solaris cd/dvd?
-
Issue with displaying Unicode Characters returned by a webservice
Hi, We are developing a mobile application which provides multi language selection (Arabic & English). but we are having an issue with displaying returned JSON which has Arabic text. The output we get is as below. Our .net client throws the following
-
Hello, My organization is in the process of migrating mailboxes from Exchange 2003 to 2010. In addition to migrating we are also changing the login's in users AD objects. These users also have smart phones that are configured via activesync. I've com
-
EXEC SQL , PROBLEM WITH SELECT
Hi. I have a external database in which I do the next query... Data: cod_campana TYPE integer, departament TYPE STRING. EXEC SQL. connect to 'EX_PP' as 'ex_pp' ENDEXEC. EXEC SQL. set connection 'ex_pp' ENDEXEC. cod_campana = 27