Results 1 to 9 of 9

Thread: Sending fax

  1. #1
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default Sending fax

    I have:
    * Ubuntu 10.10.
    * Kyocera FS-1118 MFP. It is connected to network as network printer and fax. I can't connect it directly to my computer, because there are network users, who use this printer and fax. Also, I sometimes go with my laptop somewhere.
    * String, that I want to send as fax.

    How can I send fax directly from my Java application?

    What I have tried:
    * Find driver. All I have founded, is printer (not fax) driver without fax support.
    * Find API. I found fax4j. When I call
    Java Code:
    FaxClientFactory.createFaxClient();
    the exception is thrown
    Java Code:
    Exception in thread "main" org.fax4j.FaxException: No internal SPI available.
    * Install HylaFAX. HylaFAX requires, that fax modem would be mounted to computer. I tried to find how to mount network fax, but I couldn't find anything.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default

    Yes, I checked. I can't find anything about this exception.

    Here is my class
    Java Code:
    package main;
    
    import org.fax4j.FaxClient;
    import org.fax4j.FaxClientFactory;
    
    public class Fax {
    	public static void main(String[] args) {
    		FaxClient faxClient = FaxClientFactory.createFaxClient();
    	}
    }

    Here is full exception message:
    Java Code:
    Exception in thread "main" org.fax4j.FaxException: No internal SPI available.
    	at org.fax4j.spi.adapter.AdapterFaxClientSpi.initializeImpl(AdapterFaxClientSpi.java:290)
    	at org.fax4j.spi.AbstractFaxClientSpi.initialize(AbstractFaxClientSpi.java:93)
    	at org.fax4j.spi.FaxClientSpiFactory.createFaxClientSpi(FaxClientSpiFactory.java:215)
    	at org.fax4j.FaxClientFactory.createFaxClientImpl(FaxClientFactory.java:178)
    	at org.fax4j.FaxClientFactory.createFaxClient(FaxClientFactory.java:163)
    	at org.fax4j.FaxClientFactory.createFaxClient(FaxClientFactory.java:149)
    	at main.Fax.main(Fax.java:13)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Comment the following line, and make sure that packages imported properly. I think it's okay because the stack trace point to your main method. Them make sure that fax machine is install and connected to your PC.

    Check with the documentation what's SPI and how to control it.

    Did you try those things?

  5. #5
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default

    I checked and I think, that my packages are imported properly. If everything is ok with my source code, then maybe there is a problem with connecting Kyocera FS 1118MFP to my computer?

    All I have founded, is a Linux driver for printer without any fax support.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default

    That's correct. I can't find any for that or similar Kyocera device.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Sorry for the late replay.

    Why don't you try out a possible drivers then. May be on a different machine, which is already configured with a fax.

  9. #9
    AshokAnde is offline Member
    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Default Re: Sending fax

    Hi I am also facing the same problem, When ever i am try to send Fax from Java application, it is saying , "NO Intenral SPI available", What does SPI means, and what we need to configure, pls help me out.

Similar Threads

  1. Sending Packets to IP
    By MrFish in forum Networking
    Replies: 0
    Last Post: 10-17-2010, 03:33 PM
  2. sending SMS between PC and mobile
    By Halayas in forum Sun Java Wireless Toolkit
    Replies: 6
    Last Post: 03-18-2010, 11:45 AM
  3. Sending sms on mobile
    By anjali in forum Advanced Java
    Replies: 7
    Last Post: 04-01-2009, 08:25 AM
  4. Sending out UDP pockets
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •