java,serial,commRelated issues-Collection of common programming errors
Abhilash
java spring email javamail
I am trying to send email through my outlook.com account (mapped to a specific domain, my email id would be like [email protected] am getting the following exception.2014-03-14 00:27:55,314 [pool-1-thread-1] ERRORorg.springframework.scheduling.support.MethodInvokingRunnable -Invocation of method ‘sendMail’ on target class [classcom.sixthsense.lws.scheduler.TestMailSenderJob] failedorg.springframework.mail.MailSendException: Failed messages:com.sun.mail.smtp.SMTPSendFailedException: 501 5.5.4
Frank
java spring
I have the following Spring code, taken from a textbook, that’s returning a NotWritablePropertyException. I’m told I need setters for my Song class, which I thought I’d just done, but it’s apparently not working. I’ve edited my code below. Can anybody help? Here is the code.package com.springinaction.springidol;public class Singer implements Performer {private String name = “Someone”;private Song song;public Singer() {}public Singer(String song) {this.song.setTitle(song);}public Singer(Strin
Mj1992
java android
1.I was trying to pass an array of string from 1 activity to another but the application is giving “Application Stopped Unexpectedly”.I am new to android and I don’t know how to do it.2.Can you please tell me how to tackle these runtime errors and how to use logcat I’ve noidea?Code Activity A:private OnClickListener mylistener=new OnClickListener() {@Overridepublic void onClick(View arg0) {intent=new Intent(MsgSmsActivity.this,MsgSmsActivity2.class);MsgSmsActivity.this.startActivity(intent);inte
Sethiel
java hadoop hcatalog
My test code:public static void main(String [] args) throws HCatException {String metastoreUrl = “thrift://<censored>:9083”;String databaseName = “default”;String tableName = “test”;WriteEntity.Builder builder = new WriteEntity.Builder();WriteEntity entity = builder.withDatabase(databaseName).withTable(tableName).build();HCatWriter writer = DataTransferFactory.getHCatWriter(entity, HCatalogUtils.createConfigurationMap(metastoreUrl));HCatRecord record1 = new DefaultHCatRecord(2);record1.set
Mihir
java image image-processing java-2d
i have a tiff file 18000 * 18000 in Dimension and 1.20 GB in size. the tiff has 72 DPI.I want to convert this TIFF to PNG/JPEG using 400 DPI.I am using following code to do it public static void ConvertTiffToJpg(String str_TiffUrl,String str_JpgFileDestinationUrl) throws Exception {try {FileSeekableStream obj_FileSeekableStream = new FileSeekableStream(new File(str_TiffUrl));ImageDecoder obj_ImageDecoder = ImageCodec.createImageDecoder(“tiff”, obj_FileSeekableStream, null);RenderedImage obj_Ren
HD84335
java web-services jax-ws glassfish-3 myeclipse
I have a problem running JAX_WS Webservices with Glassfish application server. Previously, i used to use Apache tomcat which works fine with it. But now, having Glassfish, this problem is preventing the application from being deployed… please check it below:2013-04-04T13:09:23.028+0300 com.sun.xml.ws.wspolicy.com.sun.xml.ws.api.policy.ModelTranslator SEVERE: [failed to localize] WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(http://schemas.xmlsoap.org/ws/2004/08/addressing, com.sun.x
Jav_Rock
java android opencv computer-vision background-subtraction
I am working on a robotics project using an Android phone as the main processor and the camera to detect movement. I got the Android binary package from OpenCV and got it correctly installed. I can capture images using the OpenCV native camera and display them to the screen. I’m having problems using the background subtraction class, though. I can make a new BackgroundSubtractorMOG object in the constructor, but when I attempt to run the code below, it force quits I get the error “Only 1- and 3-
jjmartinez
java rest tomcat tomcat7 resteasy
I’m developing a Rest service with RestEasy. I need to deploy in Tomcat. And I think that I have problems in my web.xmlThis is my web.xml:<?xml version=”1.0″ encoding=”UTF-8″?><web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd” id=”WebApp_ID” version=”3.0″><display-name>MyServices</display-name> <!– Auto scan RE
CoolBeans
java hibernate spring junit
The error message is:- Error creating bean with name ‘agencyDetailsInterfaceService’ defined in class path resource .Stack Trace below:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘agencyDetailsInterfaceService’ defined in class path resource [spring/aas-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘$Proxy51 implementing com.qbe.us.aas.
theZenPebble
java hibernate junit h2
I have almost identical code in the setUp() method of three tests. When run individually, the tests all work, but when I run them as part of the complete set of tests, the last one fails.The “offending” code is:@Before public void setUp() throws Exception {AnnotationConfiguration configuration = new AnnotationConfiguration();configuration.addAnnotatedClass(User.class);configuration.setProperty(“hibernate.dialect”, “org.hibernate.dialect.H2Dialect”);configuration.setProperty(“hibernate.connection
MikeyB
windows-server serial
How do I enable a serial console on Windows (2008 and/or 2012) such that I can log into it like the Good Old Days of Real Servers and issue provisioning commands, ideally via PowerShell?$ cu -l /dev/ttyS0 Connected.Welcome to ad1.adlab.brazzers.comMicrosoft Windows [Version 6.1.7601] Copyright (C) 2009 Microsoft Corporation. All rights reserved.Login: Administrator Password: PS C:\Users\Administrator> New-NetIPAddress -InterfaceAlias eth0 -IPv4Address 192.168.101.11 -PrefixLength 24 -DefaultG
Hennes
bios windows-server-2003 serial cmd.exe
I am trying to find the serial number of a windows server 2003 R2.I used a lot of tools but i couldn’t find the serial number.Note that i want the serial number and not the product key.I also used the following command on cmd:wmic bios get serialnumberbut the result is serial number and then empty lines, which is unexpected from my experience. How can i find the serial number? What is wrong?
kfuglsang
arduino serial rf
I have a very simple setup with an Arduino Uno R3 connected to my Windows 7 x64 with Arduino 1.0.1.I have a RF receiver connected to the Arduino on the DI10 port using the SoftwareSerial library. I am using a AM-RRQ3-433 module. See rfsolutions.co.uk/acatalog/AM_Super-heterodyne_Receiver.htmlWhen I receive a byte from the RF receiver, I am simply writing it to the Serial (so that I can see it on my PC in the serial monitor). Doing so seems to conflict between SoftwareSerial and Serial, since the
Marve
postgresql primary-key serial
I run a small site and use PostgreSQL 8.2.17 (only version available at my host) to store data. In the last few months there were 3 crashes of the database system on my server and every time it happened 31 ID’s from a serial field (primary key) in one of the tables were missing. There are now 93 ID’s missing.Table:CREATE TABLE “REGISTRY” (“ID” serial NOT NULL,”strUID” character varying(11),”strXml” text,”intStatus” integer,”strUIDOrg” character varying(11), )It is very important for me that all
Tim
linux serial asterisk
I’m working on a patch for chan_dongle for Huawei e177 modems which has one way audio problem.For debugging purpose I decided to write an external test case to read and write audio from and to the modem but I was unable the receive the audio stream in any of the serial files after the modem was mounted. I use minicom to issue the commands, I pick up an incoming call using the relevant AT command but no bytes stream arrives to any file. The only output I receive is from the AT command in /dev/tty
Vlad Lazarenko
c++ sql postgresql key serial
What is the correct syntax to create a integer primary key auto incremental field in postgresql using C++?I started with db->ExecuteSQL(“CREATE TABLE mytable (\”mytableid\” INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,this compiles but the process crashes and no field is created.db->ExecuteSQL(“CREATE TABLE mytable (\”mytableid\” serial PRIMARY KEY NOT NULL,This works and does create the field correctly.Do I need the NOT NULL or is this not necessary with serial? Is this the best syntax and
aliz
linux terminal screen serial embedded
I have built a custom embedded system using debian 6.0.using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key combination. the thing is using this setup i need to attach a keyboard/monitor to device and reboot it, to be able to operate on it, which is so undesirable. i know linux supports terminals through serial port and i have a couple of them on the device, but i need to have all these processes output in a si
Tiago Queiroz
arduino serial
I have a PanStamp (arduino compatible) and everything was working fine until I change the amount of data I’m sending through serial.send_altitude is called every second using timer interruption (TimerOne library).This is the original function that sends data (and does not hang):void send_altitude() { cli();float_byte altitude; byte buffer[6];// Do one trash read to avoid fluctuations analogRead(ALT_SENSOR); delay(5); altitude.asFloat = getAltitude(ALT_SENSOR);buffer[0] = 0x05; /* Size */ buffer[
Marcel
arduino serial linux monitor eclipse
I like to program my Arduino using Eclipse. However, I still need the Arduino IDE to use the Serial port monitor.This is very inconvenient and breaks my work flowI tried to use RXTX but this would cause Eclipse to crash. I also tried to use a workaround using a SSH-Server but I didn’t succeed.Has anyone managed to monitor an Arduinos output from within Eclipse on a Linux x64 machine (I use Debian Testing), who could give some detailed instructions?Thank you in advance!!!
Tyilo
arduino serial
When executing the following code on my Arduino Micro, only the first line is printed:void crash(void) {abort(); }void setup(void) {Serial.begin(9600);while(!Serial.available()) {Serial.println(“Please input something to begin”);delay(500);}Serial.println(“First”); // Gets printeddelay(500); // Make sure Arduino is done writing to the serial connectionSerial.println(“Second”); // Doesn’t get printedcrash(); // Makes the Arduino device crash }void loop(void) {}I would like to something like this
stefan
bash find cluster comm
I have a script that’s supposed to get the list of files of two directories, get differences and execute some code for certain files.These are the commands to get the file lists:list_in=$(find input/ -maxdepth 1 – type f | sed ‘s/input\///’ | sort -u); list_out=$(find output/ -maxdepth 1 – type f | sed ‘s/output\///’ | sort -u);I execute the script in the correct directory, so this shouldn’t fail. The unprocessed files are determined bylist_todo=$(comm -23 <(echo “$list_in”) <(echo “$list_
Kevin
java serial comm
I have a problem with comm ports in JAVA. I’m using Java version, 1.5 because that version still have access to windows COMM ports (serials).The problem is that the command throws the exception:javax.comm.PortInUseException: Port currently owned by Unknown Windows ApplicationThe thing is that the application opens the comm port for the first time, then I close the comm when the user exits some window. But the user may return to that window, and therefore I try to open again the same port:I close
Web site is in building